pmc-oai-api
Skill by brycewang-stanford
Explains how to harvest article metadata from PubMed Central through its OAI-PMH service. It covers the ListRecords, GetRecord and ListSets calls for researchers, librarians and text mining teams.
Install pmc-oai-api
Built from the published package, never by AI.
git clone --depth 1 https://github.com/brycewang-stanford/Auto-Empirical-Research-Skills /tmp/Auto-Empirical-Research-Skills && mkdir -p ~/.claude/skills && cp -r /tmp/Auto-Empirical-Research-Skills/skills/43-wentorai-research-plugins/skills/literature/fulltext/pmc-oai-api ~/.claude/skills/pmc-oai-apiRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/brycewang-stanford/Auto-Empirical-Research-Skills /tmp/Auto-Empirical-Research-Skills && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/Auto-Empirical-Research-Skills/skills/43-wentorai-research-plugins/skills/literature/fulltext/pmc-oai-api ~/.gemini/antigravity-cli/skills/pmc-oai-apiAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This guide describes the PubMed Central (PMC) OAI-PMH service, which provides a standard HTTP interface for harvesting article metadata from the PMC full-text archive run by the U.S. National Library of Medicine. It covers three endpoints: ListRecords for bulk harvesting with optional date and set filters, GetRecord for a single article by its OAI identifier, and ListSets for discovering available collections. Requests use plain HTTP GET, and responses are XML with pagination through resumption tokens.
No API key or registration is required, but users should follow NCBI usage guidelines and stay within the rate limit of 3 requests per second. The guide includes Python examples for incremental harvesting and building a local search index. It is aimed at biomedical researchers, systematic reviewers, bioinformaticians, medical librarians and text mining specialists.
Written from the project's SKILL.md and checked against it.
What it can do
- ListRecordsHarvests article metadata in bulk, with optional date range and set filters.
- GetRecordRetrieves the full metadata record for one PMC article by its OAI identifier.
- ListSetsLists the available sets, such as journals and open-access subsets, used to filter harvests.
What you need
- Python with the requests library (for the Python examples)
- curl (for the command-line examples)
Try asking
- Harvest PMC metadata records from June 2024 in Dublin Core format
- Get the OAI record for PMC article 7096803 with its title and authors
- List the available PMC journal sets I can filter my harvest by
Good to know
- Rate limit of 3 requests per second; excess requests may cause temporary IP blocking.
- NCBI asks users to identify themselves with an email address or an NCBI API key.
- Bulk harvesting should use resumptionToken pagination rather than parallel requests.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/43-wentorai-research-plugins/skills/literature/fulltext/pmc-oai-api/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to pmc-oai-api
All alternatives →Searches arXiv for scientific papers and preprints, extracts their metadata and abstracts, and downloads PDF or HTML full text. Suited to users who need research papers, literature or specific arXiv IDs.
Downloads AlphaFold predicted structures and PAE matrices for a UniProt ID, then reports pLDDT confidence, domain boundaries and disorder. Built for users who already have a UniProt accession.
Queries the QuickGO and Evidence & Conclusion Ontology REST API to map genes to Gene Ontology terms. Built for researchers doing functional annotation and GO hierarchy exploration.
Connects an AI assistant to Peloton to browse fitness classes, check live and archived schedules, and manage workouts. Built for Peloton users who want to plan rides from their assistant.
Queries NCBI Gene through the E-utilities and Datasets API. It helps researchers search genes by symbol or ID, retrieve gene details, and run batch lookups for annotation and functional analysis.
Prepares and launches nf-core/pacsomatic runs for matched tumor-normal PacBio HiFi data starting from unaligned BAM files. It generates samplesheets and pinned launch artifacts, then runs locally or submits to a scheduler.
Compare with literature-search-arxiv, alphafold-database-fetch-and-analyze or quickgo-database
pmc-oai-api: common questions
Does the PMC OAI-PMH service need an API key?
No. The source says the service is freely accessible without any API key, token or registration. NCBI does ask users to include an email address or register for an API key.
What metadata formats does PMC OAI-PMH support?
The source lists oai_dc, pmc and pmc_fm as values for the metadataPrefix parameter.
How many requests can I send per second?
The source sets a limit of 3 requests per second across NCBI E-utilities and OAI services. It says an NCBI API key allows up to 10 requests per second.
How do I install pmc-oai-api?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is pmc-oai-api free?
The code is published under the NOASSERTION licence. The service it connects to may have its own pricing.
Is pmc-oai-api safe to use?
It scores 73 of 100. Grades: maintenance A, licence F, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to pmc-oai-api?
Similar skills: literature-search-arxiv, alphafold-database-fetch-and-analyze, quickgo-database, peloton.
