# Get all works by a specific authorhttps://api.openalex.org/works?filter=author.id:A5023888391&sort=-publication_date# Get highly cited works by an authorhttps://api.openalex.org/works?filter=author.id:A5023888391,cited_by_count:>10&sort=-cited_by_count
# Works from Harvardhttps://api.openalex.org/works?filter=institutions.id:I136199984&sort=-publication_date# Open access works from MIT since 2020https://api.openalex.org/works?filter=institutions.id:I63966007,open_access.is_oa:true,publication_year:>2019
# Works about machine learninghttps://api.openalex.org/works?filter=topics.id:T10000&sort=-cited_by_count# Keyword search for "CRISPR"https://api.openalex.org/works?search=CRISPR&sort=-relevance_score
Use countries_distinct_count to find works with authors from multiple countries — the standard scientometric definition of international collaboration.
# Indian articles co-authored with at least one non-Indian institutionhttps://api.openalex.org/works?filter=institutions.country_code:IN,countries_distinct_count:>1,type:article
# Count works per year (2020-2024)https://api.openalex.org/works?filter=publication_year:2020-2024&group_by=publication_year# Count open access works per yearhttps://api.openalex.org/works?filter=publication_year:2020-2024,open_access.is_oa:true&group_by=publication_year
# All OA works from 2024https://api.openalex.org/works?filter=publication_year:2024,open_access.is_oa:true# Gold OA works (published in OA journals)https://api.openalex.org/works?filter=open_access.oa_status:gold# Works with CC-BY licensehttps://api.openalex.org/works?filter=best_oa_location.license:cc-by
# Works with downloadable PDFshttps://api.openalex.org/works?filter=has_content.pdf:true# Works with abstractshttps://api.openalex.org/works?filter=has_abstract:true
# Top journals by work counthttps://api.openalex.org/sources?filter=type:journal&sort=-works_count&per_page=20# Open access journalshttps://api.openalex.org/sources?filter=type:journal,is_oa:true&sort=-works_count
Use the OR operator (|) to fetch up to 100 IDs at once:
# Get multiple works by DOIhttps://api.openalex.org/works?filter=doi:https://doi.org/10.1234/a|https://doi.org/10.1234/b|https://doi.org/10.1234/c&per_page=100# Get multiple authors by ORCIDhttps://api.openalex.org/authors?filter=orcid:0000-0001-2345-6789|0000-0002-3456-7890&per_page=100
# Highly cited OA articles about cancer from 2023https://api.openalex.org/works?search=cancer&filter=publication_year:2023,type:article,open_access.is_oa:true,cited_by_count:>50&sort=-cited_by_count
Discover research funded by a specific organization or grant.
# Step 1: Find a funder by namehttps://api.openalex.org/funders?search=national+institutes+of+health# Step 2: Filter works funded by that funder (NIH = F4320306076)https://api.openalex.org/works?filter=awards.funder_id:F4320306076&sort=-publication_date# Step 3: Narrow to works acknowledging a specific grant numberhttps://api.openalex.org/works?filter=awards.funder_id:F4320306076,awards.funder_award_id:R01-GM123456# Step 4: Combine with other filters — e.g., funded OA works from 2024https://api.openalex.org/works?filter=awards.funder_id:F4320306076,publication_year:2024,open_access.is_oa:true&sort=-cited_by_count
Navigate the parent-subsidiary structure of publishers.
# Step 1: Search for a publisher by namehttps://api.openalex.org/publishers?search=elsevier# Step 2: Get the publisher and check hierarchy_level and lineage# (hierarchy_level 0 = top-level parent, 1+ = subsidiary)https://api.openalex.org/publishers/P4310319965# Step 3: List all subsidiaries of a parent publisherhttps://api.openalex.org/publishers?filter=parent_publisher:P4310319965&sort=-works_count# Step 4: Get only top-level publishers, sorted by outputhttps://api.openalex.org/publishers?filter=hierarchy_level:0&sort=-works_count&per_page=20
Trace the citation network around a single work using its referenced_works, cited_by_api_url, and related_works fields.
# Step 1: Get a work and inspect its citation fieldshttps://api.openalex.org/works/W2741809807# Response includes:# "referenced_works": ["https://openalex.org/W...", ...] ← outgoing citations# "cited_by_api_url": "https://api.openalex.org/works?filter=cites:W2741809807"# "related_works": ["https://openalex.org/W...", ...] ← semantically similar# Step 2: Follow outgoing citations (referenced_works)# Batch-fetch the works this paper cites using the OR operatorhttps://api.openalex.org/works?filter=openalex:W2100837269|W2134720587&per_page=100# Step 3: Follow incoming citations (cited_by_api_url)# Use the cites filter to find all works that cite this onehttps://api.openalex.org/works?filter=cites:W2741809807&sort=-publication_date# Step 4: Explore related works# Fetch semantically similar works returned in the related_works fieldhttps://api.openalex.org/works?filter=openalex:W2052533833|W1982351946&per_page=100
Assemble a collection of full-text PDFs for analysis or AI synthesis.
Content downloads require an API key and cost $0.01 per file. See authentication for details.
# Step 1: Find works with downloadable PDFs using the has_content filterhttps://api.openalex.org/works?search=CRISPR&filter=has_content.pdf:true,publication_year:2023-2024# Step 2: Download a single PDFcurl -L "https://content.openalex.org/works/W3038568908.pdf?api_key=YOUR_KEY" -o W3038568908.pdf# Step 3: For bulk downloads, use the CLI toolpip install openalex-officialopenalex download \ --api-key YOUR_KEY \ --output ./results \ --filter "default.search:CRISPR,has_content.pdf:true,publication_year:2023-2024"
Download programmatically in Python:
import requests# List of work IDs from Step 1work_ids = ["W4388482763", "W4386073691", ...]for work_id in work_ids: r = requests.get( f"https://content.openalex.org/works/{work_id}.pdf", params={"api_key": "YOUR_KEY"}, allow_redirects=True ) with open(f"{work_id}.pdf", "wb") as f: f.write(r.content)
Downloading more than a few thousand files? Use the CLI tool for parallel downloads and automatic retries.