How to Scrape PubMed Articles and Abstracts
Export PubMed titles, abstracts, authors, journals, MeSH terms, DOIs, and PMIDs through the official NCBI API without brittle page scraping.

PubMed is easy to search manually and awkward to turn into a repeatable dataset. Copying result pages loses structured author, affiliation, publication-type, and subject-heading fields. HTML selectors also add failure points that the source does not require.
The PubMed Research Scraper uses NCBI's official E-utilities endpoints. Give it one or more PubMed expressions, choose a sort order, and optionally set publication dates. Each dataset row can contain the PMID, DOI, title, abstract, authors, affiliations, journal, ISSN, publication date, MeSH terms, keywords, and canonical PubMed URL.
Build a reproducible export
Start with the exact search expression used in your review. PubMed field tags such as [Title], [Author], and [MeSH Terms] work in the query. Save that expression with the run input so another researcher can reproduce the scope later.
Export JSON for pipelines or CSV for screening. Deduplicate on PMID, not title: titles can change between early publication and final indexing. Missing abstracts or identifiers should remain null rather than being guessed. That distinction matters when the dataset supports evidence reviews, competitive intelligence, or model evaluation.
Choose inputs that match the research question
Use one query for one documented concept set. Combine synonyms with OR, join distinct concepts with AND, and use field tags when the distinction matters. Apply publicationFrom and publicationTo only when the review protocol calls for them; a narrow date filter can hide older foundational work.
Start with a small result limit and inspect the titles before scaling. A query that returns technically valid but irrelevant rows will only become a larger irrelevant dataset. Save the exact input with the export, including sort order and retrieval date, because PubMed's index changes over time.
Understand the output grain
Each dataset item represents one PubMed article identified by PMID. Authors, affiliations, publication types, MeSH headings, and keywords are arrays because one article can have many of each. Keep that one-row-per-paper table as the canonical layer and create exploded analysis tables downstream.
Useful validation checks include:
- PMID is present and unique in the exported batch.
- The canonical URL resolves to the matching PubMed record.
- Publication dates are parsed without inventing missing month or day values.
- Missing abstracts, DOIs, affiliations, and MeSH terms remain null or empty.
- The number of rows does not exceed the requested cap after cross-query deduplication.
Respect NCBI and downstream evidence limits
The Actor rate-limits requests and uses the official E-utilities service instead of scraping rendered pages. Keep scheduled workloads bounded and identify your integration as required by NCBI. For large or recurring retrieval programs, review the current E-utilities usage guidance and use an API key if the source requires it for higher request rates.
PubMed is a bibliographic index, not a full-text license. Abstracts and metadata do not grant rights to redistribute an article's full text. Follow DOI or PMC links separately and check the applicable license before collecting full content.
Finally, retrieval is not evidence synthesis. Publication types and MeSH terms help route records, but they do not replace risk-of-bias assessment, protocol-defined screening, or clinical judgment. Preserve the raw fields and source URL so every later conclusion remains auditable.
Frequently asked questions
Does the scraper parse PubMed web pages?
No. It uses NCBI E-utilities, the official interface for PubMed search and record retrieval.
Which identifiers are included?
Results include PMID and, when the article supplies them, DOI and PMC identifiers.
Related
100 free credits, no credit card.
About 30 real searches. Add the MCP to Claude or Cursor in two minutes.