literature-search-openalex
google-deepmind/science-skills
Query OpenAlex scholarly database for papers, authors, institutions, and bibliometric data.
What is literature-search-openalex?
Search the OpenAlex academic research database to find papers, resolve DOIs, download open-access PDFs, explore author publication histories, and aggregate citation metrics. Use this when you need to locate academic literature, verify citations, or analyze research trends across institutions and topics.
- Query works, authors, sources, institutions, topics, and other scholarly entities
- Resolve author/institution names to OpenAlex IDs before filtering
- Download open-access PDFs for papers with available content
- Aggregate bibliometric data including citation counts, h-index, and impact factors
- Filter and sort results by publication year, citations, open-access status, and custom expressions
- Sample random results and group data by field for trend analysis
How to install literature-search-openalex
npx skills add https://github.com/google-deepmind/science-skills --skill literature-search-openalex- uv must be installed and on PATH (see uv skill)
- Create or verify .env file exists in home directory
- (Optional but recommended) Obtain OPENALEX_API_KEY from OpenAlex.org account settings for higher rate limits
- Review OpenAlex terms at https://developers.openalex.org/ and check licenses of retrieved papers
How to use literature-search-openalex
- 1.Resolve a name to an OpenAlex ID using: uv run scripts/openalex_cli.py resolve <entity> <query>
- 2.Use the returned ID in filter commands: uv run scripts/openalex_cli.py filter <entity> --filter "field:id"
- 3.For DOI lookups, use: uv run scripts/openalex_cli.py get works "https://doi.org/..."
- 4.Limit output with --select and --per-page flags to keep results manageable
- 5.Pipe large result sets to a file and use jq to extract only needed fields before reading into context
- 6.Download PDFs with: uv run scripts/openalex_cli.py download-pdf <work-id> <output-path>
Use cases
- Find all papers published by a specific researcher and rank by citation count
- Look up a paper by DOI and retrieve its full metadata and open-access PDF
- Discover papers from a particular institution published in a given year
- Perform bulk DOI lookups for up to 100 papers at once
- Analyze publication trends across institutions by grouping results by publication year
- Researchers conducting literature reviews
- Students writing thesis or research papers
- Librarians and information specialists
- Data analysts studying research trends
- Anyone needing to verify or retrieve academic citations
literature-search-openalex FAQ
No, the skill works with the free "polite pool" without a key, but an API key enables the Premium API with much higher rate limits (~10 req/s vs very limited). Obtain one at OpenAlex.org account settings.
Use the safe credentials protocol in the credentials skill to check for and request the OPENALEX_API_KEY, then add it to your .env file.
First resolve the author name to an ID: uv run scripts/openalex_cli.py resolve authors "Name". Then filter works by that ID: uv run scripts/openalex_cli.py filter works --filter "authorships.author.id:ID" --sort "cited_by_count:desc"
Yes, use the download-pdf command if you have an API key. The skill will attempt to download from the primary source and fall back to alternative PDF URLs if needed.
Try broader search terms (up to 3 retries), use alternate spellings or abbreviations, or verify the entity exists by using resolve first. Never fabricate results—report empty responses accurately.
Full instructions (SKILL.md)
Source of truth, from google-deepmind/science-skills.
name: literature-search-openalex description: > Query the OpenAlex scholarly database for research papers, authors, institutions, topics, sources, publishers, funders, geo-locations, and keywords. Use when searching academic papers, resolving DOIs, downloading open-access PDFs, finding an author's publications, aggregating bibliometric data (citation counts, h-index, impact factor), exploring the research taxonomies, or performing DOI lookups.
OpenAlex Skill
Prerequisites
uv: Read theuvskill and follow its Setup instructions to ensureuvis installed and on PATH.- User Notification: If .licenses/literature_search_openalex_LICENSE.txt does not already exist in the workspace root directory then (1) prominently notify the user to check the terms at https://developers.openalex.org/ and to always check the license of the papers retrieved by the skill for any restrictions, then (2) create the file recording the notification text and timestamp.
.envfile: Make sure the.envfile exists in your home directory. Create one if it does not exist.OPENALEX_API_KEY(optional but recommended): Enables the OpenAlex Premium API with higher rate limits. The skill works without it (using the free "polite pool"). You can obtain a key at OpenAlex.org → account settings. You MUST use the safe credentials protocol in thecredentialsskill to check for and request this key if this skill looks relevant to the user's request.
Core Rules
- List Sources. If this skill is used, ensure this is mentioned in the output AND list the URLs of all papers that were used in producing the output.
- Resolve before filter. NEVER filter by name. Always
resolvea name to an ID first, then use that ID in--filter. - Use the CLI only. Never call the API via
curl/urllib. The CLI handles retries and rate limiting. - No fabrication. Never invent OpenAlex IDs or DOIs. Use
resolve/getto look them up. Report empty results accurately. - API key. If a command returns 401/429 or you need high-volume queries,
you MUST use the safe credentials protocol in the
credentialsskill to check for and request theOPENALEX_API_KEYto help the user add it to their.envfile. - Keep output small. Always use
--selectand--per-page 5–10for overview queries. Pipefilteroutput to a file (> results.json), then slim withjqbefore reading into context.
Rate Limits
- With key: ~10 req/s, $1/day free budget.
- Without key: Very limited, $0.01/day budget.
| Operation | Cost |
|---|---|
Singleton get | Free |
filter | $0.0001 |
--search / resolve | $0.001 |
download-pdf | $0.01 |
CLI Reference
uv run scripts/openalex_cli.py [--api-key KEY] <command> [flags]
Entity types (shared across commands): works, authors, sources,
institutions, topics, domains, fields, subfields, sdgs, countries,
continents, languages, keywords, publishers, funders, work-types,
source-types, institution-types, licenses
Commands
resolve <entity> <query> — Name → ID candidates. Returns id,
display_name, hint. Use --per-page N for more candidates.
get <entity> <id> — Full metadata for one entity. Accepts short ID
(W2741809807), full URL, or DOI URL. Use --select to limit fields.
filter <entity> — Search/filter entities. Key flags are:
--search <query>: Full-text search (10× cost of--filter)--filter <expr>: Filter expressions. Use,for AND and|for OR.--sort <field:dir>: Sort results (e.g.,cited_by_count:desc)--select <fields>: Limit the fields returned in the output.--group-by <field>: Aggregate results by a specific field.--per-page <N>: Number of results per page (default 25, max 100).--page <N>: Specify the page number to retrieve.--sample <N>: Get a random sample of up to 10,000 results.--seed <N>: Seed for reproducible sampling.
download-pdf <work-id> <output-path> — Download PDF (requires API key).
Falls back to alternative pdf_url locations if primary fails. Whenever you
download a PDF, verify it is not empty or corrupted.
rate-limit — Check current rate limit status (requires API key).
Search Tips
- If
resolvereturns no matches, try alternate spellings or abbreviations. - If
--searchreturns 0 results, try broader terms (max 3 retries). - If
resolvereturns multiple candidates, present them to the user withdisplay_nameandhintfor manual selection.
Entity References
Consult references/ for valid filter, sort, and group-by fields per entity:
- Works — Authors — Sources
- Institutions — Topics — Taxonomy
- Geo & Language — Publishers & Funders
- Type Values
Common Workflows
# Author's works (resolve → filter)
uv run scripts/openalex_cli.py resolve authors "Geoffrey Hinton"
uv run scripts/openalex_cli.py filter works \
--filter "authorships.author.id:A5108093963" \
--sort "cited_by_count:desc" --per-page 10 > papers.json
cat papers.json | jq '[.results[] | {id, title: .display_name, year: .publication_year, citations: .cited_by_count}]'
# DOI lookup
uv run scripts/openalex_cli.py get works "https://doi.org/10.1038/s41586-021-03819-2"
# Bulk DOI lookup (up to 100)
uv run scripts/openalex_cli.py filter works \
--filter "doi:10.1234/a|10.1234/b|10.1234/c" --per-page 100 > results.json
# Institutional impact by year
uv run scripts/openalex_cli.py resolve institutions "MIT"
uv run scripts/openalex_cli.py filter works \
--filter "authorships.institutions.id:I63966007" \
--group-by "publication_year" > mit_by_year.json
# Random sample
uv run scripts/openalex_cli.py filter works \
--filter "publication_year:2023,is_oa:true" \
--sample 100 --seed 42 > results.json
Error Handling
| Code | Meaning | Action |
|---|---|---|
| 401 | Unauthorized | You MUST use safe credentials |
| : : : protocol in credentials skill : | ||
| : : : to help user add API key to : | ||
: : : .env : | ||
| 403 | Plan upgrade needed | Inform user; see |
| : : : https://openalex.org/pricing : | ||
| 404 | Not found | Verify ID; try resolve |
| : : : first : | ||
| 429 | Rate limited | Wait and retry; you MUST use |
| : : : safe credentials protocol in : | ||
| : : : credentials skill to help : | ||
: : : user add API key to .env : |
Known premium-only filters: from_updated_date, to_updated_date.
Never fabricate results on empty responses — report accurately and suggest alternate search terms.
Related skills
More from google-deepmind/science-skills and the wider catalog.

ncbi-sequence-fetch
Retrieve protein and nucleotide sequences from NCBI databases using E-utilities.

openfda-database
Query FDA adverse events, recalls, drug labels, and regulatory data across 28 openFDA API endpoints.

opentargets-database
Query Open Targets Platform for target-disease associations, drug discovery, and therapeutic target identification.

pdb-database
Search and download experimentally-determined 3D biomolecule structures from the RCSB Protein Data Bank.

protein-sequence-msa
Align multiple protein sequences with EBI Clustal Omega to assess similarity and conservation.

protein-sequence-similarity-search
Search for homologous protein sequences using MMseqs2 or BLAST to find matches and infer function.