PubMed Search Scraper
Pricing
from $0.03 / 1,000 pubmed articles
PubMed Search Scraper
Search PubMed and export public article metadata, abstracts, authors, journals, DOI, MeSH terms, and keywords.
Pricing
from $0.03 / 1,000 pubmed articles
Rating
0.0
(0)
Developer
Fetch Cat
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
0
Monthly active users
24 days ago
Last modified
Categories
Features
Share
Search PubMed and export public biomedical article metadata, abstracts and subject terms as a dataset. Use the results for literature reviews, journal tracking and research discovery. This Actor does not download full-text papers or provide medical advice.
Quick start
- Enter a PubMed query and a small article limit.
- Keep abstract enrichment enabled when you need abstracts, MeSH terms and keywords.
- Run the Actor and download the dataset as JSON, CSV or Excel.
{"query": "cancer immunotherapy","maxItems": 10,"sort": "relevance","includeAbstracts": true,"dateRange": "5_years"}
Prefer a video guide? This short Apify walkthrough shows you how to set up and run an Actor. It uses a different Actor, but the setup steps are the same.
Ready-to-run examples
Choose an existing public example with a preconfigured search:
- Cancer immunotherapy literature — Search recent literature with abstract enrichment.
- Nature Medicine AI research — Combine an AI query with a journal filter.
- GLP-1 obesity clinical trials — Narrow a literature search by publication type.
What you get
- Research discovery: Article titles, PMIDs, authors, journals, publication dates and DOI values.
- Evidence review: Available abstracts, article types, MeSH terms, keywords and language.
- Repeatable exports: PubMed URLs, the original query and collection timestamps for downstream bibliographies or retrieval workflows.
Only public PubMed records are supported. You do not need a PubMed login, cookies or an NCBI API key. A search export is not a systematic-review completeness guarantee.
Who is it for?
- Researchers and students: Build a bounded starting bibliography for a biomedical topic.
- Evidence-review teams: Export available abstracts and subject terms for screening in your own review process.
- Research-tool builders: Feed public article metadata into bibliographies, databases or retrieval workflows.
Input settings
| Setting | JSON key | Purpose |
|---|---|---|
| Search query | query | Required nonempty PubMed query. Supports PubMed Boolean and field-tag syntax. |
| Maximum articles | maxItems | Save up to 1–10,000 articles. Form default is 10. Omitted raw API input uses 25. |
| Sort order | sort | relevance, pub_date, most_recent, first_author or journal. |
| Abstract enrichment | includeAbstracts | Defaults to true. Disable for metadata-only output. |
| Publication dates | dateRange | any, 1_year, 5_years, 10_years or custom. |
| Date bounds | minDate, maxDate | Dates in YYYY, YYYY/MM or YYYY/MM/DD form. Custom requires at least one bound. |
| Journal | journal | Optional journal-name filter. |
| Author | author | Optional author-name filter. |
| Publication type | articleType | Optional type such as Review or Clinical Trial. |
| Resume offset | resumeFromIndex | Optional absolute search offset, default 0. |
Detailed settings and date interactions are explained in the input form. Set maxItems explicitly in integrations for a predictable limit.
Output data
The following is a synthetic shape-only example, not a collected article:
{"pmid": "00000000","articleTitle": "Illustrative article title","abstract": null,"authors": [],"journal": null,"publicationDate": null,"doi": null,"articleTypes": [],"meshTerms": [],"keywords": [],"language": null,"url": "https://pubmed.ncbi.nlm.nih.gov/00000000/","sourceQuery": "cancer immunotherapy","scrapedAt": "2026-10-25T00:00:00.000Z"}
| Fields | Meaning |
|---|---|
pmid, url | PubMed identifier and article link. |
articleTitle, authors | Title and available author names. Authors are an array. |
journal, publicationDate, doi | Nullable bibliographic values. Dates retain the source's text format. |
abstract | Available abstract text, or null. |
articleTypes | Available publication types from metadata and optional enrichment. |
meshTerms, keywords | Arrays of available subject headings and keywords. |
language | Source language code, or null. |
sourceQuery, scrapedAt | Original query and run collection timestamp. |
Disabling includeAbstracts leaves abstract and language null, and meshTerms and keywords empty. Basic publication types can still be present. Missing metadata is not replaced with invented values. A missing title uses a PMID-based label.
Download your results
Open your run's dataset, choose Export and select JSON, CSV or Excel. JSON keeps nested fields together. CSV and Excel are useful when you want to review the records in a spreadsheet.
See Apify's download and export guide for the available formats and field options.
Pricing
This Actor uses pay-per-event pricing. The start event is charged once after required input validation. The result event is charged for each article saved to the dataset.
A valid search with no matches can still incur the start event, but has no saved-article events. Apify platform usage may be charged separately.
See the live Pricing tab for current rates and discounts.
Tips for best results
- Start with a small search. Set
maxItemsexplicitly, then refine your query, dates, author, journal or publication type before collecting more. - Check advanced queries in PubMed first. Boolean operators and field tags can help narrow a literature search.
- Keep abstract enrichment enabled when needed. Abstracts, MeSH terms and keywords depend on source availability.
- Compare exports in your own workflow. The Actor does not track changes between runs.
Limits and caveats
- Source limits apply: Very broad searches may exceed PubMed's accessible search window.
maxItemsis a ceiling, not a promise of that many records. - No matches: A completed search with no matching IDs returns an empty dataset. Source or execution failures may fail the run instead.
- No full text: PubMed does not supply abstracts, DOI values or subject terms for every article. Full-text papers, references and citation counts are not collected.
- Interrupted runs: Saved rows remain available. If
PENDING_WORKis present, use itsnextIndexasresumeFromIndexwith the same query, filters and sort. Results can change between runs. Resuming is not duplicate-free. - Public records only: This independent tool is not an official PubMed service. It does not provide medical advice or guarantee systematic-review completeness.
Automation and integrations
Save your settings for next time
Once you have an input that works for you, save it as an Apify task. This keeps your settings together so you can use them again without filling in the form from scratch.
Run on a schedule
Need fresh results regularly? You can schedule the Actor or a saved task to run at a time that suits you.
Each scheduled run collects the data again. If you want to compare results or highlight changes, add that step in your own workflow.
Send results to your other tools
Use n8n, Make or Zapier to connect this scraper to the rest of your workflow. For example, you could pass its results to an AI assistant or add records to a spreadsheet. Follow the Apify integration guides for your chosen tool.
For a custom connection, an Apify webhook can notify your app when a run finishes or fails. Your app can then fetch the results or handle the failure.
API usage
Want to collect this data from your own app or automation? The examples below send input to the scraper and show how to collect its results.
The Node.js and Python examples wait for the run to finish before reading its results. The cURL example starts the run and returns its details. Wait for that run to finish, then use its defaultDatasetId to fetch the results.
For setup instructions, see Apify's JavaScript client guide, Python client guide and Actor runs API reference.
cURL
curl -X POST 'https://api.apify.com/v2/acts/fetch_cat~pubmed-search-scraper/runs' \-H "Authorization: Bearer $APIFY_TOKEN" \-H 'Content-Type: application/json' \-d '{"query":"cancer immunotherapy","maxItems":10,"includeAbstracts":true}'
Node.js
import { ApifyClient } from 'apify-client';const client = new ApifyClient({ token: process.env.APIFY_TOKEN });const run = await client.actor('fetch_cat/pubmed-search-scraper').call({query: 'cancer immunotherapy', maxItems: 10, includeAbstracts: true});const { items } = await client.dataset(run.defaultDatasetId).listItems();console.log(items);
Python
import osfrom apify_client import ApifyClientclient = ApifyClient(os.environ['APIFY_TOKEN'])run = client.actor('fetch_cat/pubmed-search-scraper').call(run_input={'query': 'cancer immunotherapy', 'maxItems': 10, 'includeAbstracts': True})items = client.dataset(run['defaultDatasetId']).list_items().itemsprint(items)
MCP and AI agents
You can ask your AI assistant to collect data with PubMed Search Scraper and help you work with the results. The scraper returns the data, and your assistant can then summarize it, compare records or prepare notes.
Connect your assistant through the Apify MCP server. MCP gives your assistant a way to find this scraper, run it and read the results. Follow the official setup and sign-in guide for your app.
Easier setup with an Apify plugin
If you use a supported coding assistant, the official Apify plugin can set up the connection for you. It connects your assistant to Apify and includes instructions for common tasks. Follow the guide for your particular app.
Use Apify AI in Console
Prefer to keep everything in Apify? Open Apify AI in Console and ask it to find Fetch Cat's PubMed Search Scraper. You can describe the data you want and ask questions about the results.
Apify AI is currently in beta. It asks for confirmation before starting an Actor, and normal run charges apply.
Choose your assistant
- Claude and Claude Code (Anthropic): Apify setup guide.
- ChatGPT and Codex (OpenAI): Apify setup guides.
- Grok Bot (xAI): Apify plugin guide.
- Gemini CLI (Google): MCP server setup guide. Use the server URL below with the HTTP configuration supported by Gemini CLI.
Connect just this scraper
To keep your setup focused on this scraper, add this server configuration to a compatible MCP client:
{"mcpServers": {"apify": {"url": "https://mcp.apify.com?tools=fetch_cat/pubmed-search-scraper"}}}
Sign in to Apify when your client asks. If your client uses a Bearer token instead, follow its setup guide and keep the token in its secure configuration. Configuration formats vary by app, so use the linked guide if your client needs a different format.
Use Apify's general server
Already connected to the general Apify MCP server at https://mcp.apify.com? You can use it to find this scraper without adding another server. Ask your assistant to use PubMed Search Scraper by Fetch Cat, or give it the identifier fetch_cat/pubmed-search-scraper.
Your assistant can check the available settings and retrieve the results from the returned run. If the run is still working, it should follow that run rather than start it again. Both connection options use Apify's hosted service.
Example requests
- “Find up to ten recent PubMed articles about cancer immunotherapy with available abstracts, then summarize the findings with PMID links.”
- “Search PubMed for artificial intelligence articles in Nature Medicine and collect up to ten records for a reading list.”
- “Collect up to ten PubMed clinical-trial articles about GLP-1 treatments for obesity and help me compare their available abstracts.”
Normal Apify charges apply. Check the live Pricing tab before asking your assistant to run a larger batch.
Pay with x402
If your AI agent has a funded wallet, it can pay for Apify usage through x402. This experimental option lets an agent use Apify without a conventional account.
Apify AGI provides a prepaid API token with a spending cap after payment. Your agent can use that token to run this scraper through the Apify API or an authenticated MCP connection.
Some MCP setups also support paying for each request directly. That is a different payment option, so check the official guide for its availability.
Follow the official guide for wallet setup, supported payment options and current terms. Apify handles the payments. Keep wallet keys and payment tokens in your agent's secure configuration.
Other ways for agents to pay
Apify also supports MPP for prepaid access through AGI and Skyfire for eligible Actors. If your agent already uses one of these, see the agentic payment guide to choose the right setup.
FAQ
Can I search PubMed by author or MeSH terms?
Yes. Use author for an author-name filter and PubMed field-tag syntax in query for a MeSH or other advanced search. Check the query in PubMed first if terminology is unfamiliar.
Can I export PubMed search results as CSV or use an API?
Yes. Download the dataset as CSV, Excel or JSON, or read it through the Apify API. This is an independent export tool, not an official PubMed service.
Why did I get fewer articles or empty fields?
Filters may match fewer articles than requested, and source search limits can restrict broad queries. Abstract and subject-term availability varies. Check includeAbstracts before expecting enriched fields.
Does sort guarantee a stable order across runs?
No. Sort is passed to PubMed, and rows follow the returned PMID order. Source relevance and the index can change. Saved result offsets are not permanent article identifiers.
Related Actors
- arXiv Paper Search Scraper — Discover preprints alongside biomedical literature.
- Web Page to Markdown Extractor — Convert accessible research pages to text.
- Website Content Crawler Lite — Collect supporting public website content.
- YouTube Transcript Scraper — Work with research-talk transcripts.
- Reddit Scraper — Explore public discussions separately from scholarly evidence.
Support and feedback
For custom additions or integrations, email hello@fetchcat.dev.
Found an error or have a feature request? Open an issue with the run URL, a non-sensitive input example and what you expected.
Need help sharing it? See Apify’s guide to sharing a run when reporting an issue. Sharing a run can give the developer access to its input, logs and results, so use a run that contains no sensitive data. Please leave out API tokens, passwords, cookies, private documents and personal data. Use a public sample URL or a redacted example instead.
Tried this scraper? We'd love to hear how it worked for you. Leave a review to help others choose the right tool and help us improve it. Your feedback means a lot to us.
Made with care for curious people, AI agents and the possibilities in data. ♥