---
title: "PubMed API: biomedical literature search as JSON"
description: "PubMed API for biomedical literature search with date ranges and sorting, plus full article records with abstract, authors and MeSH terms as JSON."
url: https://perceptlayer.com/apis/pubmed
---

[APIs](https://perceptlayer.com/apis) / [Apps and media](https://perceptlayer.com/verticals/apps) / PubMed

1 credit per call 2 endpoints 5 datapoints 

# PubMed API

PubMed API for biomedical literature search with date ranges and sorting, plus full article records with abstract, authors and MeSH terms as JSON.

[Get a free API key](https://perceptlayer.com/signup) Run it below

PubMed

GET /v1/pubmed/article?pmid=33283989 

```
{
  "success": true,
  "data": {
    "pmid": "33283989",
    "title": "CRISPR-Cas9 Gene Editing for Sickle Cell Disease and β-Thalassemia.",
    "abstract": "Transfusion-dependent β-thalassemia (TDT) and sickle cell disease (SCD) are severe monogenic diseases with severe and potentially life-threatening manifestations. BCL11A is a transcription factor that represses γ-globin expression and fetal…",
    "abstract_copyright": "Copyright © 2020 Massachusetts Medical Society.",
    "authors": [
      {
        "name": "Haydar Frangoul",
        "last_name": "Frangoul",
        "fore_name": "Haydar",
        "initials": "H",
        "affiliations": [
          "From the Sarah Cannon Center for Blood Cancer at the Children's Hospital at TriStar Centennial, Nashville (H.F., J.D.), and St. Jude Children's Research Hospital, Memphis (A.S.) - both in Tennessee; Vertex Pharmaceuticals (D.A., B.K.E., J.L…"
        ]
      },
      {
        "name": "David Altshuler",
        "last_name": "Altshuler",
        "fore_name": "David",
        "initials": "D",
        "affiliations": [
          "From the Sarah Cannon Center for Blood Cancer at the Children's Hospital at TriStar Centennial, Nashville (H.F., J.D.), and St. Jude Children's Research Hospital, Memphis (A.S.) - both in Tennessee; Vertex Pharmaceuticals (D.A., B.K.E., J.L…"
        ]
      },
      {
        "name": "M Domenica Cappellini",
        "last_name": "Cappellini",
        "fore_name": "M Domenica",
        "initials": "MD",
        "affiliations": [
          "From the Sarah Cannon Center for Blood Cancer at the Children's Hospital at TriStar Centennial, Nashville (H.F., J.D.), and St. Jude Children's Research Hospital, Memphis (A.S.) - both in Tennessee; Vertex Pharmaceuticals (D.A., B.K.E., J.L…"
        ]
      }
    ],
    "journal": "The New England journal of medicine",
    "journal_abbreviation": "N Engl J Med",
    "issn": "1533-4406",
    "volume": "384",
    "issue": "3",
    "pages": "252-260",
    "pub_date": "2021 Jan 21",
    "language": "eng",
    "publication_types": [
      "Clinical Trial",
      "Journal Article",
      "Research Support, Non-U.S. Gov't"
    ],
    "mesh_terms": [
      {
        "term": "Adult",
        "id": "D000328",
        "major": false
      },
      {
        "term": "Anemia, Sickle Cell",
        "id": "D000755",
        "major": false,
        "qualifiers": [
          "genetics",
          "therapy"
        ]
      },
      {
        "term": "CRISPR-Cas Systems",
        "id": "D064113",
        "major": true
      }
    ],
    "doi": "10.1056/NEJMoa2031054",
    "publication_status": "ppublish",
    "url": "https://pubmed.ncbi.nlm.nih.gov/33283989/",
    "notice": "Data from PubMed, courtesy of the U.S. National Library of Medicine (NLM). NLM does not endorse this service. NLM claims no copyright on abstracts, but publishers or authors may hold it: see abstract_copyright. NCBI disclaimer and copyright…"
  },
  "meta": {
    "request_id": "req_1c3a0ef8810e449cbdb5eee99181f24d",
    "credits_charged": 1,
    "credits_remaining": 487
  }
}
```

200 OK JSON X-Credits-Used: 1

Recorded from our API and shortened.

Sample data

## What one call returns

A recorded run of `article`: the fields and shapes you will get, shortened to 3 items.

| # | name string | last\_name string | fore\_name string | initials string | affiliations string\[\] |
| --- | --- | --- | --- | --- | --- |
| 1 | Haydar Frangoul | Frangoul | Haydar | H | \[1 item\] |
| 2 | David Altshuler | Altshuler | David | D | \[1 item\] |
| 3 | M Domenica Cappellini | Cappellini | M Domenica | MD | \[1 item\] |

Recorded from our API · 3 items shown · 5 datapoints per item GET /v1/pubmed/article?pmid=33283989

5 datapoints

### Identity

-   name string
-   last\_name string
-   fore\_name string

### Other

-   initials string
-   affiliations string\[\]

Playground

## Run this API

cURL shell 

```
curl "https://api.perceptlayer.com/v1/pubmed/article?pmid=33283989" \
  -H "X-API-Key: $API_KEY"
```

PubMed · 2 endpoints

## Endpoints

Every endpoint takes the same key. Open one for its parameters, the fields it returns and an example request.

| Endpoint | Required parameters | Returns | Cost |
| --- | --- | --- | --- |
| [GET `/v1/pubmed/article`](https://perceptlayer.com/apis/pubmed/article) | `pmid` | `pmid` `title` `abstract` `abstract_copyright` `authors` `journal` +13 more | 1 credit |
| [GET `/v1/pubmed/search`](https://perceptlayer.com/apis/pubmed/search) | `query` +6 optional | `pmid` `title` `authors` `author_count` `journal` `journal_abbreviation` +11 more | 1 credit |

Overview

## About the PubMed API

## What you can get

The PubMed API returns biomedical citations from PubMed, run by the U.S. National Library of Medicine (NLM), as JSON through 2 endpoints.

-   **Search:** `search` takes a `query` (PubMed search terms; field tags such as \[au\], \[ti\] and \[mh\] work), with `from_date` and `to_date` (YYYY, YYYY/MM or YYYY/MM/DD), `date_type` (publication, entrez or modified), `sort` (relevance, newest, author or journal), `page` and `per_page` (1 to 100, default 20). PubMed returns at most the first 9,999 results of a search.
-   **Article:** `article` takes a `pmid`, for example 33283989.

The recorded search for "crispr sickle cell" found 510 articles ( `total`), each with `pmid`, `title`, `authors` (up to 10) with `author_count`, `journal` and `journal_abbreviation`, `pub_date`, `epub_date`, `volume`, `issue`, `pages`, `doi`, `publication_types`, `languages`, `has_abstract` and `url`. The first result was PMID 33283989 in The New England journal of medicine, with 26 authors.

The recorded `article` for that PMID adds the full `abstract`, `abstract_copyright` ("Copyright © 2020 Massachusetts Medical Society."), `authors` with `last_name`, `fore_name`, `initials` and `affiliations`, `issn`, `language`, `publication_status` and `mesh_terms`, each with `term`, `id`, `major` and `qualifiers`. An author's `orcid`, the article's `keywords` and its `pmcid` come back when the record has them.

## How a call works

Search, then fetch the article: `GET /v1/pubmed/search?query=crispr+sickle+cell&sort=relevance&per_page=10` with your key in the `X-API-Key` header returns each article's `pmid`, which `article` takes, for example `GET /v1/pubmed/article?pmid=33283989`. Check `has_more` before asking for the next `page`. A PMID PubMed doesn't have answers 404. Answers come from a cache for up to an hour. Every successful call costs 1 credit; failed calls cost nothing.

Apps and media JSON REST MCP

### More apps and media APIs

[Apple App Store](https://perceptlayer.com/apis/apple-app-store) [Apple Podcasts](https://perceptlayer.com/apis/apple-podcasts) [arXiv](https://perceptlayer.com/apis/arxiv) [Audible](https://perceptlayer.com/apis/audible) [Bandcamp](https://perceptlayer.com/apis/bandcamp) [Chrome Web Store](https://perceptlayer.com/apis/chrome-web-store) [CISA KEV](https://perceptlayer.com/apis/cisa-kev) [ClinicalTrials.gov](https://perceptlayer.com/apis/clinicaltrials) [Coursera](https://perceptlayer.com/apis/coursera) [crates.io](https://perceptlayer.com/apis/crates-io) [Crossref](https://perceptlayer.com/apis/crossref) [Discogs](https://perceptlayer.com/apis/discogs)

Use cases

### Let a research agent find recent papers on a topic and quote their abstracts with the right copyright line

`Use the PubMed API to let a research agent find recent papers on a topic and quote their abstracts with the right copyright line` 

### Pull MeSH terms for a set of PMIDs to tag or cluster a literature review

`Use the PubMed API to pull MeSH terms for a set of PMIDs to tag or cluster a literature review` 

### Track new publications by an author or on a MeSH heading with a date range and \`sort=newest\`

`` Use the PubMed API to track new publications by an author or on a MeSH heading with a date range and `sort=newest` `` 

### Resolve a PMID from a clinical trial or citation to its DOI, journal and authors

`Use the PubMed API to resolve a PMID from a clinical trial or citation to its DOI, journal and authors` 

FAQ

## Questions

**Is this the official PubMed API?**

No. Perceptlayer is an independent service, and NLM does not endorse it. NCBI's E-utilities, which serve PubMed, are free to call directly, with a limit of 3 requests a second per IP without an NCBI key and 10 with one. This API calls E-utilities on your behalf and adds one key for every source on Perceptlayer, parsed JSON in one response shape instead of XML, a cache of up to an hour, and no charge for failed calls.

**Can I reuse the abstracts?**

Check each one. NLM claims no copyright on PubMed abstracts, but publishers or authors may hold copyright in them. When a record carries a copyright line, \`article\` returns it as \`abstract\_copyright\`, and every response includes this \`notice\`: "Data from PubMed, courtesy of the U.S. National Library of Medicine (NLM). NLM does not endorse this service. NLM claims no copyright on abstracts, but publishers or authors may hold it: see abstract\_copyright." The notice also links to NCBI's disclaimer and copyright page.

**Does \`search\` return abstracts?**

No. Search results carry \`has\_abstract\` to say whether one exists; \`article\` returns the full abstract for one PMID.

**How far can I page through a search?**

To the first 9,999 results, a PubMed limit. Narrow a larger search with field tags or \`from\_date\` and \`to\_date\`.

**Should I build a PubMed scraper instead?**

You can, but a PubMed scraper is code you maintain: page changes break it, requests get blocked, and PubMed's terms govern how you collect data. The PubMed API gives you 2 endpoints of named JSON fields for 1 credit per successful call, and failed calls cost nothing. A scraper makes sense only for data these endpoints don't return, so check the response in the playground on this page first.

## Try the PubMed API with 100 free credits

No credit card. Failed calls are never billed.

[Get a free API key](https://perceptlayer.com/signup) [Read the docs](https://docs.perceptlayer.com)
