
OpenAlex Literature Search
FreeEfficiently query the OpenAlex scholarly database.
Free · Opens the source repo
What OpenAlex Literature Search does
The OpenAlex Literature Search skill allows users to interface with the OpenAlex scholarly database, providing access to a wealth of academic resources. With this skill, you can query for research papers, authors, institutions, topics, and more, making it an essential tool for researchers, students, and academics. The skill simplifies the process of finding relevant literature, resolving DOIs, and downloading open-access PDFs, thus streamlining the research workflow.
This skill operates primarily through a command-line interface (CLI), utilizing Python and Bash scripts to interact with the OpenAlex API. Users can perform a variety of operations, including searching for works by authors, filtering results based on specific criteria, and aggregating bibliometric data such as citation counts and h-index. The CLI is designed to handle retries and rate limiting effectively, ensuring a smooth user experience even under heavy usage.
To get started, users need to follow certain prerequisites, such as installing the uv skill and ensuring an .env file is set up with the necessary credentials. An optional OpenAlex API key can enhance the experience by providing higher rate limits. The skill emphasizes responsible usage by requiring users to check licensing terms for the papers retrieved, promoting ethical research practices.
Overall, the OpenAlex Literature Search skill is tailored for anyone engaged in academic research who needs quick and reliable access to scholarly information. Whether you are a student writing a thesis, a researcher conducting a literature review, or an academic looking to explore recent publications, this skill provides the tools necessary to navigate the vast landscape of academic literature efficiently.
When to use it
Use this skill when you need to search for research papers or authors, resolve DOIs, or download open-access PDFs.
When not to use it
This skill may not be suitable for users who require a graphical interface or those who are not comfortable using command-line tools.
What you can build with it
Finding an Author's Publications
Use the skill to resolve an author's name and filter their works, retrieving a list of publications along with citation counts.
Performing DOI Lookups
Quickly resolve DOIs to retrieve full metadata for academic papers, streamlining the process of citation management.
Aggregating Bibliometric Data
Analyze the impact of an institution by filtering works and grouping results by publication year to visualize trends.
How to install OpenAlex Literature Search
View source1. Install with the skills CLI
npx skills add google-deepmind/science-skills/literature_search_openalex --agent claude-code2. Or install it manually
Download the skill folder and drop it into ~/.claude/skills/ for all projects, or .claude/skills/ to scope it to one repo. Restart Claude Code so it picks up the new skill.
Anthropic's agentic coding CLI, and the reference implementation of Agent Skills. Drop a skill folder into ~/.claude/skills and Claude Code loads it automatically whenever a task matches the skill's description. Claude Code docs
Inside SKILL.md
Written by google-deepmindOpenAlex 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.
Frequently asked questions about OpenAlex Literature Search
Similar skills
Build Evidence Map
Create auditable maps for technical decisions and research.
Systematic Literature Review
Automate your systematic literature reviews with ease.
Nature Reference Verifier
Cross-verify academic references efficiently.
Nature Paper Card
Create evidence-grounded research cards for scientific papers.
Nature Literature Pipeline
Automate daily literature discovery and delivery.
Paperclip CLI
Efficiently search and read biomedical literature and regulatory documents.
