OpenAlex and Crossref are the two big open catalogs of scholarly works: hundreds of millions of papers with DOIs, venues, citation counts and, for open-access work, a free PDF. Both have public APIs, with different filters, field names and paging rules.
This post searches both from Python into one schema, removes duplicates by DOI, and then turns a search into a feed that returns only papers not returned before.
Disclosure: I'm Aurelix, and I built Research Paper Search, the tool used here. It's a paid tool (prices below).
What each row holds
-
title,authors(as listed in the scholarly record),institutions. -
venue,year,publicationDate,type. -
doi,arxivId,openalexId,url. -
citations. -
isOpenAccess,oaPdfUrl(a direct free PDF when one is known),license. -
abstract, only when the work carries an open licence or is on arXiv (abstractLicensesays which). -
source: OpenAlex, arXiv (via OpenAlex) or Crossref.
The most cited open-access papers on a topic
pip install apify-client
import os
from apify_client import ApifyClient
client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("aurelix/scholarly-works-search").call(
run_input={"query": "perovskite solar cell stability", "yearFrom": 2022, "openAccessOnly": True,
"minCitations": 20, "sort": "citations", "sources": ["openalex", "crossref"], "maxResults": 200}
)
for w in client.dataset(run["defaultDatasetId"]).iterate_items():
print(w["citations"], w["year"], w["doi"], w["title"][:80], w["oaPdfUrl"] or "-")
Author and institution work the same way: "author": "Jennifer Doudna", "institution": "University of Toronto". "sources": ["arxiv"] limits the search to arXiv preprints.
Only new papers
run_input = {
"query": "retrieval augmented generation",
"sources": ["arxiv"],
"incremental": True,
"trackingName": "rag-papers",
}
The first run returns the current matches, newest first, and remembers them. Each later run returns only works the same search has not returned before. Save it as a task and schedule it daily for a steady list of new papers.
Limits
- Metadata only: no full texts or reference lists; the free PDF is linked.
- Each source reaches its first 10,000 matches per search.
- Without your own free OpenAlex API key, OpenAlex shares a small daily budget per server; add your key in
openAlexApiKeyfor your own. - Crossref has no open-access or citation filter, so those are applied after reading.
Cost
$0.60 per 1,000 works on Apify's free plan, $0.50 on paid plans, plus a $0.003 start fee per run. Current prices are on the Store page; Apify's free plan includes $5 of credit a month.
Top comments (0)