PubMed API
pubmed.ncbi.nlm.nih.gov
PubMed — search biomedical literature, list article summaries, fetch full article details with abstracts, authors, MeSH terms, and keywords.
- Actions
- 4
- Category
- Research
- Login
- Not required
- Output
- JSON
Call the PubMed API
Submit a task, then poll the job until it settles. This example runs pm_article_details.
curl -X POST https://api.anakin.io/v1/wire/task \
-H "X-API-Key: $ANAKIN_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"action_id": "pm_article_details",
"params": {
"pmid": "<pmid>"
}
}'4 actions on pubmed.ncbi.nlm.nih.gov
Read
PubMed Article Details
pm_article_detailsread1 credit / callFetch full article metadata by PMID — title, structured abstract with section labels, all authors with affiliations, MeSH terms, keywords, journal info, DOI.
- pmid
- string · required
PubMed Cited By
pm_cited_byread1 credit / callGet articles that cite a given PMID — citation count and citing article summaries with titles, authors, journal, DOI.
- pmid
- string · required
- include_summaries
- boolean
PubMed Trending
pm_trendingread1 credit / callGet currently trending articles on PubMed — titles, authors, journal citations.
- page
- integer
- max_results
- integer
Search PubMed Articles
pm_search_articlesread1 credit / callSearch PubMed by keywords, author, journal, or date range. Returns article summaries with titles, authors, journal, DOI in a single call.
- query
- string · required
- max_results
- integer
- page
- integer
- sort
- string
- min_date
- string
- max_date
- string
- date_type
- string
PubMed API questions
- Is there an API for PubMed?
- PubMed does not offer a public data API for this, but Anakin Wire provides 4 maintained endpoints for pubmed.ncbi.nlm.nih.gov. You call Anakin's REST API with an action ID and parameters and get structured JSON back; Anakin handles the browser, proxies, anti-bot, and parsing.
- How do I scrape PubMed data?
- POST to https://api.anakin.io/v1/wire/task with your API key, the action ID, and its parameters, then poll GET /v1/wire/jobs/{id} until the job settles. There is nothing to install and no scraper to maintain — when pubmed.ncbi.nlm.nih.gov changes its markup, Anakin updates the action.
- Do I need a PubMed account?
- No. Every PubMed action listed here runs anonymously — no account and no credentials required.
- What does the PubMed API cost?
- Usage-based credits, charged per call and refunded automatically when a job fails. New accounts start with 300 free credits and no card. See anakin.io/pricing for the current rates.
More Research APIs
arXiv
arXiv — search papers by keywords/author/category, fetch full paper metadata, get daily new submissions by category.
Semantic Scholar
Semantic Scholar — search academic papers, fetch paper metadata with citations and TLDR, search authors, get author profiles with h-index and papers.