Research
PubMed logo

PubMed API

pubmed.ncbi.nlm.nih.gov

PubMed - biomedical literature, 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": "39284512"
    }
  }'

4 actions on pubmed.ncbi.nlm.nih.gov

Read

  • Article Details

    pm_article_detailsread2 credits / call

    Returns article metadata by PMID including title, abstract, authors, MeSH terms, journal, and DOI.

    pmid
    string · required
  • Article Search

    pm_search_articlesread2 credits / call

    Returns PubMed article summaries by keyword, author, journal, or date range, including titles, authors, and DOI.

    query
    string · required
    max_results
    integer
    page
    integer
    sort
    string
    min_date
    string
    max_date
    string
    date_type
    string
  • Citing Articles

    pm_cited_byread2 credits / call

    Returns articles citing a given PMID with citation count, titles, authors, journal, and DOI.

    pmid
    string · required
    include_summaries
    boolean
  • Trending Articles

    pm_trendingread1 credit / call

    Returns currently trending PubMed articles with titles, authors, and journal citations.

    page
    integer
    max_results
    integer

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

All Research sites