PubMed Scraper - Search API for Abstracts, Citations & MeSH
Pricing
from $1.00 / 1,000 run start fees
PubMed Scraper - Search API for Abstracts, Citations & MeSH
PubMed research search that exports one row per paper: title, journal, authors, dates, DOI, PMC id, citation count and, where published, abstract, MeSH terms and keywords, as CSV or JSON. No NCBI API key. For literature reviews and AI datasets.
Pricing
from $1.00 / 1,000 run start fees
Rating
0.0
(0)
Developer
SR
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
20 days ago
Last modified
Categories
Features
Share
PubMed Scraper
PubMed Scraper is a PubMed search API for researchers, analysts and developers: run a PubMed search or look up citations by PMID, and get one structured row per article. Get article titles, journals, authors, publication dates, DOI and PMC identifiers, publication types, abstracts, MeSH terms and author keywords in a dataset you can export or use in an automation.
Use it to build a literature review, monitor new papers on a drug or topic, or collect PubMed abstracts for an AI or text-mining dataset. The Actor reads NCBI's official E-utilities. When its search service is unavailable, searching falls back to the public PubMed search page; citation metadata and abstracts still come from E-utilities. No NCBI API key or login is required. A search returns citations in PubMed's requested order, while a PMID lookup returns the records available for those identifiers. The original dataset field names and default options are preserved.
PubMed Scraper input: search query or PMIDs
Provide a query using PubMed search syntax, or provide pmids to retrieve known citations. Valid PMIDs take precedence when both are supplied. PMID input can be a list of strings or a string separated by spaces, commas or semicolons. Invalid identifier entries are ignored; existing valid identifiers are still processed.
The search form is prefilled with semaglutide obesity, but query has no default value. An API run with neither a query nor valid PMIDs succeeds with an empty dataset and a bad_input error record. This lets a workflow inspect the error without treating an empty literature search as a crashed run.
| Field | Default | Meaning |
|---|---|---|
query | No default | A PubMed search expression. |
pmids | No default | PubMed identifiers to retrieve instead of searching. |
include_abstracts | true | Request abstracts, MeSH terms and keywords. |
sort | relevance | relevance, date, pub_date, Author or JournalName. |
date_from | No restriction | Earliest publication date, as YYYY/MM/DD. |
date_to | No restriction | Latest publication date, as YYYY/MM/DD. |
limit | 100 | Maximum citations, from 1 to 5000. |
retries | 3 | Attempts per metadata request, from 1 to 6. |
Use fielded terms and Boolean expressions to narrow a search. Date restrictions apply to publication dates, and either date boundary can be supplied independently. PubMed interprets the search expression; the Actor retains the publication dates as returned rather than inventing a day for a record that provides only a year or season.
The historical date option is passed to E-utilities unchanged. E-utilities may ignore it and use its default ordering; on the public PubMed search fallback, date selects Most recent. Select pub_date when you specifically need publication-date order. Turning off include_abstracts skips the separate enrichment request and leaves its three output fields null.
Output: PubMed abstracts, citations, summary and errors
The default dataset contains one row per citation, deduplicated by pmid. The position field starts at one and follows the result order across the complete run. The public search fallback collects up to 100 search positions per step, continuing automatically until the requested limit or the end of the results. Existing Apify callers do not need to manage continuation tokens.
| Field group | Dataset fields |
|---|---|
| Identity | pmid, doi, pmc_id, url |
| Article | title, abstract, publication_types, language |
| Journal | journal, journal_abbrev, issn, volume, issue, pages |
| Authors | authors, first_author, last_author |
| Dates | pub_date, epub_date |
| Subject | mesh_terms, keywords |
| Impact and order | citations_in_pmc, position |
Every original field remains present even when its value is null. doi retains the capitalization provided by NCBI; language retains the original publication language code. url remains the article's PubMed page. Additional fields include source, engine, fetched_at, query, year, venue, cited_by_count, work_url, doi_normalized and language_iso639_1. These support combining citations with other academic datasets while retaining the original values.
work_url points to the lowercase DOI URL when a DOI is available, otherwise to the PubMed page. The original DOI comes from the typed articleids entry, not the prefixed elocationid string. pmc_id identifies a PubMed Central record; it does not guarantee a direct PDF URL. citations_in_pmc counts citing articles in PubMed Central, rather than citations throughout the entire scientific literature.
The key-value store contains summary, including the citations returned, totalFound, DOI and PMC coverage, abstract coverage, elapsed time and error count. egressNote identifies whether searching used E-utilities or the public PubMed search page. totalFound is null for a PMID lookup. When the requested limit samples a larger search result, samplingNote explains the difference. If no citations match, the summary retains the available search count and elapsed time.
When errors occur, the errors record contains a list of objects with a code and message. The existing codes are bad_input, no_results and fetch_failed. A source failure can leave some batches unavailable while other citations remain usable. The run summary also includes partial and warnings when requested work could not be completed.
Example output row
A real row from a run with query aspirin cardiovascular prevention, sort JournalName, date_from 2019/01/01, date_to 2019/06/30, include_abstracts false and limit 250. Because abstracts were switched off, abstract, mesh_terms and keywords are null:
{"pmid": "31154631","title": "Aspirin Versus Clopidogrel Monotherapy for the Treatment of Patients with Stable Coronary Artery Disease: A Systematic Review and Meta-Analysis.","journal": "Advances in therapy","journal_abbrev": "Adv Ther","pub_date": "2019 Aug","epub_date": "2019 Jun 1","authors": ["Yuan J", "Xu GM", "Ding J"],"first_author": "Yuan J","last_author": "Ding J","volume": "36","issue": "8","pages": "2062-2071","doi": "10.1007/s12325-019-01004-6","pmc_id": "PMC6822863","issn": "0741-238X","language": "eng","publication_types": ["Comparative Study", "Journal Article", "Meta-Analysis", "Systematic Review"],"citations_in_pmc": 21,"abstract": null,"mesh_terms": null,"keywords": null,"url": "https://pubmed.ncbi.nlm.nih.gov/31154631/","position": 10}
With include_abstracts left at true, the same row also carries the abstract text, the MeSH headings and the author keywords where PubMed has them.
Abstracts, MeSH terms and missing values
Abstracts are optional enrichment. If their source request fails, the citation metadata is retained, abstract, mesh_terms and keywords can remain null, and abstractFetchFailures reports the affected citation count. Such a failure does not discard citations that have already been retrieved.
An empty abstract can also be correct source data. Letters, editorials, comments and news items often have no published abstract. Check publication_types before treating a null abstract as an extraction failure. The summary includes legitimatelyNoAbstract and noAbstractNote when these categories explain missing abstracts. This count describes publication types; it is not a promise that every other article contains an abstract.
Pricing and free-plan limits
Pricing is unchanged: $0.001 per run start, plus $0.001 per citation delivered. A run delivering 100 citations costs $0.101 in Actor event charges. The start fee applies even when input is invalid or no citations match. An empty result produces no citation charge.
Non-paying Apify users receive at most 10 citations per run. Citation charges count only those delivered rows, after the free-plan limit. Paying users can request up to 5000 citations. The charge for citations is applied once after delivery; collecting a large result in several steps does not introduce extra run-start fees.
Use cases for a PubMed scraper
- Monitor new literature by joining scheduled results on
pmid. - Screen papers for a systematic review using abstracts and MeSH headings.
- Track publication activity for a drug, device, researcher or research topic.
- Join DOI-bearing citations with other academic indexes.
- Identify records with a PubMed Central identifier for further open-access research.
- Build a PubMed abstracts dataset for text mining, classification or retrieval-augmented generation.
- Feed citation lists into a spreadsheet, a reference manager or a BI tool through the Apify API, webhooks or integrations.
PubMed research search: abstracts to CSV
If you look for a PubMed research search that ends in a spreadsheet, this is the short path: enter a query, run the Actor and download the dataset as CSV, with the abstract, journal, authors, DOI and MeSH terms in separate columns. Use the same run for a PubMed papers list on a topic, or feed PMIDs from another tool to enrich them with metadata.
PubMed scraper vs the PubMed API and the PubMed website
The PubMed website is built for reading one search at a time. Its export options are useful for a handful of records, but a recurring search, a list of identifiers or a dataset of thousands of abstracts quickly becomes manual work.
The PubMed API (NCBI E-utilities) is free and powerful, but you have to chain several endpoints yourself: one call to search, another to fetch summaries, a third to fetch abstracts in XML, plus paging, request spacing and retries. Each response has its own shape, and the DOI, PMC id and dates are spread across differently structured fields.
This Actor does that chaining for you and returns one flat, consistent row per citation. You keep the PubMed search syntax you already know, get the same field names on every run, and can export the dataset as JSON, CSV, Excel or XML, or read it from the Apify API in Python, JavaScript or any other language. Scheduling, storage and integrations come from the Apify platform, so a weekly literature watch needs no server of your own.
FAQ
Do I need an NCBI API key?
No. The Actor uses the publicly available E-utilities and spaces requests according to NCBI's published unauthenticated request limits.
Why is an abstract null?
The publication may have no abstract, enrichment may be disabled, or the abstract request may have failed. Check publication_types, include_abstracts and the summary's abstractFetchFailures before drawing a conclusion.
Does an empty search fail the run?
No. No matches, missing input and recoverable source failures produce a successful empty run with an explanatory error record. The existing run-start fee remains applicable, with no citation event charged.
Can I join repeated runs reliably?
Use pmid for PubMed identity. position reflects the order within a run and may change as PubMed adds or reorders citations. The DOI fields provide a second join key when NCBI supplies one.
Can I request more than 100 citations?
Yes. Increase limit up to 5000. The Actor collects larger results automatically and keeps positions continuous. Source failures are reported in the summary; non-paying users remain limited to ten delivered citations.
Can I export PubMed results to Excel or CSV?
Yes. Every run stores its citations in a dataset that you can download as JSON, CSV, Excel, XML or HTML from the run page, or fetch through the Apify API. List fields such as authors and publication_types are kept as arrays in JSON.
Can I call this PubMed API from Python?
Yes. Start the Actor with the Apify API client for Python or JavaScript, or with a plain HTTP request, pass the same input fields as in the form, and read the dataset items when the run finishes.