Discover/PubMed API
live

PubMed APIPubmed.com

Search and retrieve biomedical research metadata from PubMed via 3 endpoints. Get abstracts, MeSH terms, authors, affiliations, DOIs, and related articles.

Endpoint health
verified 1d ago
search_articles
get_article
get_related_articles
3/3 passing latest checkself-healing
Endpoints
3
Updated
2d ago

What is the PubMed API?

The PubMed API gives programmatic access to NCBI's biomedical literature index through 3 endpoints covering search, full article metadata retrieval, and related-article discovery. The search_articles endpoint supports PubMed's full query syntax including boolean operators and field tags, returning paginated results with PMIDs, titles, authors, journals, DOIs, and publication types. get_article exposes structured abstracts, author affiliations, MeSH terms, and keywords for any single article by PMID.

Try it
Page number for pagination (1-based).
Sort order for results.
Search query using PubMed query syntax. Supports boolean operators (AND, OR, NOT), field tags ([ti] for title, [au] for author, [mh] for MeSH), and phrase matching with quotes.
Maximum publication date filter in YYYY/MM/DD or YYYY format.
Minimum publication date filter in YYYY/MM/DD or YYYY format.
Number of results per page (1-100).
api.parse.bot/scraper/07de3ca0-5779-4a0c-a45b-316eb5ebe6c5/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Call it over HTTPgrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/07de3ca0-5779-4a0c-a45b-316eb5ebe6c5/search_articles?page=1&sort=relevance&query=CRISPR+gene+editing&max_date=2026&min_date=2020&per_page=5' \
  -H 'X-API-Key: $PARSE_API_KEY'
Python SDK · recommended

Typed, relational, agent-ready

A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.

  • Fully typed · autocompletes
  • Objects link to objects
  • Typed errors & pagination

Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:

uv add parse-sdk
uv run parse init
uv run parse add --marketplace pubmed-com-api

uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.


"""Walkthrough: PubMed SDK — search papers, get details, find related work."""
from parse_apis.pubmed_com_api import PubMed, Sort, ArticleNotFound

client = PubMed()

# Search for articles on a topic, sorted by relevance
for article in client.article_summaries.search(query="CRISPR gene editing", sort=Sort.RELEVANCE, limit=3):
    print(article.title, article.journal, article.pub_date)

# Drill into the first result for full details (abstract, affiliations, MeSH)
summary = client.article_summaries.search(query="deep learning radiology", limit=1).first()
if summary:
    detail = summary.details()
    print(detail.title, detail.doi)
    for author in detail.authors[:2]:
        print(author.name, author.affiliation)

# Get a specific article by PMID
try:
    paper = client.articles.get(pmid="31295471")
    print(paper.title, paper.journal)
    print(paper.keywords)
except ArticleNotFound as exc:
    print(f"Article not found: {exc.pmid}")

# Find related articles from an instance
if paper:
    for related in paper.related(limit=3):
        print(related.title, related.journal)

print("exercised: article_summaries.search / summary.details / articles.get / article.related")
All endpoints · 3 totalmissing one? ·

Full-text search across PubMed's biomedical literature index. Returns paginated article summaries matching the query term, with optional date range and sort order filtering. Results are auto-iterated; each article summary includes PMID, title, authors, journal, publication date, DOI, and publication types.

Input
ParamTypeDescription
pageintegerPage number for pagination (1-based).
sortstringSort order for results.
queryrequiredstringSearch query using PubMed query syntax. Supports boolean operators (AND, OR, NOT), field tags ([ti] for title, [au] for author, [mh] for MeSH), and phrase matching with quotes.
max_datestringMaximum publication date filter in YYYY/MM/DD or YYYY format.
min_datestringMinimum publication date filter in YYYY/MM/DD or YYYY format.
per_pageintegerNumber of results per page (1-100).
Response
{
  "type": "object",
  "fields": {
    "page": "integer",
    "query": "string",
    "articles": "array of article summaries with pmid, title, authors, journal, pub_date, doi, pub_types",
    "per_page": "integer",
    "total_pages": "integer",
    "total_results": "integer"
  },
  "sample": {
    "data": {
      "page": 1,
      "query": "CRISPR gene editing",
      "articles": [
        {
          "doi": "10.1016/j.lfs.2019.116636",
          "pmid": "31295471",
          "title": "CRISPR-Cas9 system: A new-fangled dawn in gene editing.",
          "authors": [
            "Gupta D",
            "Bhattacharjee O"
          ],
          "journal": "Life sciences",
          "pub_date": "2019 Sep 1",
          "pub_types": [
            "Journal Article",
            "Review"
          ]
        }
      ],
      "per_page": 3,
      "total_pages": 8253,
      "total_results": 24757
    },
    "status": "success"
  }
}

About the PubMed API

Search and Filter PubMed Literature

The search_articles endpoint accepts PubMed query syntax — including boolean operators (AND, OR, NOT) and field tags such as [ti] for title searches — and returns paginated article summaries. You can narrow results using min_date and max_date parameters (formatted YYYY/MM/DD or YYYY), control page size with per_page (1–100 results), and choose sort order. Each result in the articles array includes the article's pmid, title, authors, journal, pub_date, doi, and pub_types. Pagination metadata (total_results, total_pages, page) is returned alongside results.

Full Article Metadata

The get_article endpoint retrieves detailed metadata for a single article by its numeric PMID. The response includes a structured abstract (with labeled sections where applicable), an authors array where each entry carries both name and affiliation, a keywords array, MeSH-derived terminology, issn, journal, doi, pub_date, and pub_types. This level of detail is suited for tasks like building citation databases, extracting institutional affiliation data, or training NLP models on structured scientific text.

Related Article Discovery

The get_related_articles endpoint uses NCBI's computed similarity scores to surface topically related papers for a given pmid. The related_articles array returns summaries — pmid, title, authors, journal, pub_date, doi — and the response includes a count field and the source_pmid for reference. The limit parameter accepts 1–100. Note that very recently published articles may not yet have precomputed similarity relationships in NCBI's system, so this endpoint may return no results for articles indexed in the last few days.

Reliability & maintenanceVerified

The PubMed API is a managed, monitored endpoint for Pubmed.com — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when Pubmed.com changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.

This isn't an official Pubmed.com API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.

Last verified
1d ago
Latest check
3/3 endpoints passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • Build a literature review tool that queries PubMed by keyword and date range, grouping results by journal or publication type.
  • Populate a citation database with structured author affiliations and DOIs retrieved via get_article.
  • Train biomedical NLP models using labeled abstract sections and MeSH terms from bulk PMID lookups.
  • Recommend related reading in a research platform using get_related_articles similarity scores.
  • Track publication trends in a disease area by filtering search_articles with min_date/max_date and aggregating pub_types.
  • Extract institutional co-authorship networks from the authors array, which includes per-author affiliations.
  • Monitor new publications for a specific topic by running recurring queries with a rolling date window.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does PubMed have an official developer API?+
Yes. NCBI provides the Entrez Programming Utilities (E-utilities) at https://www.ncbi.nlm.nih.gov/books/NBK25501/. The Parse PubMed API exposes a structured, normalized interface over the same underlying data without requiring familiarity with E-utilities parameters or XML response parsing.
What does get_article return beyond what search_articles provides?+
search_articles returns a summary per article: pmid, title, authors, journal, pub_date, doi, and pub_types. get_article adds the full abstract text (with section labels), per-author affiliation strings, MeSH terms, keywords, and ISSN. If you need abstract content or institutional data, you need to call get_article with the PMID.
Can I retrieve full-text article content through this API?+
Not currently. The API returns metadata and abstracts; full-text article bodies, figures, and supplementary materials are not included. You can fork this API on Parse and revise it to add a full-text endpoint targeting PubMed Central articles where open-access content is available.
Are there cases where get_related_articles returns no results?+
Yes. NCBI's related-article similarity scores are computed periodically, not in real time. Articles published very recently may not yet have computed relationships, in which case the related_articles array will be empty and count will be zero. This is a freshness constraint of the underlying similarity index.
Does the API expose citation counts or impact metrics for articles?+
Not currently. The response fields cover bibliographic metadata (title, authors, journal, dates, abstract, MeSH terms, keywords) but do not include citation counts, h-index data, or journal impact factors. You can fork this API on Parse and revise it to add citation metrics from a compatible data source.
Page content last updated . Spec covers 3 endpoints from Pubmed.com.
Related APIs in HealthcareSee all →
drugs.com API
Search for drugs and pill identifications, get detailed information about FDA approvals and drug interactions, and find medications by condition or letter. Look up side effects, dosages, and potential drug interactions to make informed health decisions.
pubmed.ncbi.nlm.nih.gov API
Search and retrieve biomedical literature from PubMed and NCBI databases. Supports keyword search, advanced field-tag queries, clinical filters, citation matching, date filtering, publication type filtering, and direct E-utilities access.
pmc.ncbi.nlm.nih.gov API
Search millions of full-text biomedical research articles and access their metadata, citations, and related papers from PubMed Central. Find articles by topic, discover similar research, explore journal collections, and retrieve detailed citation information to support your literature review and research.
ncbi.nlm.nih.gov API
Search and retrieve biomedical literature from NCBI databases including PubMed, PubMed Central, and MeSH. Supports full-text extraction, metadata lookup, and research filtering.
clinicaltrials.gov API
Search and retrieve comprehensive information about clinical trials worldwide, including study details, eligibility criteria, locations, and outcomes data. Access structured metadata and statistics to find relevant research studies matching your specific medical conditions or research interests.
blast.ncbi.nlm.nih.gov API
Compare DNA and protein sequences against NCBI's massive biological databases to find matching sequences and analyze genetic similarities. Submit alignment jobs, monitor their progress, and retrieve detailed results in structured format to support genomics research and sequence analysis.
zocdoc.com API
Search for doctors and medical practices on Zocdoc by specialty and location. Retrieve provider profiles, accepted insurance, office locations, patient reviews, and appointment availability.
mayocliniclabs.com API
Search and browse Mayo Clinic Laboratories' medical test catalog to retrieve detailed information on thousands of available tests, including descriptions, specimen requirements, clinical and interpretive data, performance characteristics, fees and codes, and setup details. Use autocomplete and alphabetical browsing to quickly locate specific tests or explore the full catalog.