Back to Skills

literature-search-openalex

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.

2,586stars268forksUpdated 8/4/2026

Security Assessment

Safe(92/100)
Security Score92/100

About literature-search-openalex

literature-search-openalex lets an agent query the OpenAlex scholarly database for research papers, authors, institutions, topics, sources, publishers, funders, geo-locations, and keywords. It solves the problem of programmatic academic literature discovery and bibliometrics — searching papers, resolving DOIs, finding an author's publications, aggregating citation counts and h-index/impact metrics, exploring the research taxonomy, and downloading open-access PDFs — through a single bundled CLI (scripts/openalex_cli.py) run via uv, which handles retries and rate limiting.

The CLI exposes resolve (name to ID candidates), get (full metadata for one entity), filter (search/filter with --filter, --search, --sort, --select, --group-by, --sample), download-pdf, and rate-limit commands across many entity types. The skill enforces disciplined behavior: always resolve a name to an ID before filtering, never fabricate OpenAlex IDs or DOIs, use the CLI rather than raw curl/urllib, keep output small with --select and small page sizes, and list the source URLs of all papers used. It documents rate limits and per-operation costs for the free 'polite pool' versus the Premium API. Notably, it requires the operator to notify the user to check OpenAlex terms and the license of retrieved papers, records that notification in a .licenses file, and uses a separate credentials skill's safe protocol to check for and request the optional OPENALEX_API_KEY (stored in a home-directory .env) rather than embedding secrets.

It targets researchers, data scientists, and science-focused agents performing systematic literature review, citation analysis, author/institution profiling, or DOI resolution. Extensive reference files document the queryable fields for works, authors, institutions, sources, topics, publishers, funders, geo/language, and type enumerations.

FAQ

Do I need an API key?

No. The skill works without a key using the free 'polite pool', though rate limits and budget are very limited. An optional OPENALEX_API_KEY enables the Premium API with higher rate limits and is requested through the credentials skill's safe protocol and stored in a home-directory .env file.

How does it avoid fabricating references?

Core rules forbid inventing OpenAlex IDs or DOIs — you must resolve or get them — and require reporting empty results accurately, plus listing the source URLs of all papers used in the output.

What are the prerequisites?

uv installed and on PATH (via the uv skill), a .env file in the home directory, and network access to OpenAlex. A .licenses notification file is created and the user is prompted to review OpenAlex terms and each retrieved paper's license.

How are queries kept efficient and within budget?

Use --select and small --per-page values (5–10) for overviews, pipe filter output to a file and slim it with jq, and prefer free singleton get calls over costlier --search/resolve and download-pdf operations.

Can it download PDFs?

Yes, via the download-pdf command (which requires an API key and falls back to alternative pdf_url locations), and it advises verifying downloaded PDFs are not empty or corrupted and respecting each paper's license.

All Files

12 files
references/citation.bib0.3 KB
View
references/publishers_funders.md2.4 KB
View
references/type_values.md3.4 KB
View
references/topics.md1.1 KB
View
SKILL.md7.2 KB
View
references/geo_and_language.md1.8 KB
View
references/taxonomy.md2.7 KB
View
references/works.md15.9 KB
View
references/authors.md3.4 KB
View
references/institutions.md2.6 KB
View
references/sources.md3.6 KB
View
scripts/openalex_cli.py19.7 KB
View

Install literature-search-openalex

Download and extract the skill files to your .claude/skills/ directory.

Quick Setup:

  1. Copy the skill folder to .claude/skills/
  2. Claude will automatically detect and use the skill