Skip to main content
All providers

PubMed (NCBI E-utilities)

ResearchUS

eutils.ncbi.nlm.nih.gov

Search and fetch bibliographic records across PubMed and the other NCBI databases through E-utilities.

Capabilities (18)

GET /v1/data/pubmed/annotations1 credit

Returns BioC JSON for one or more PMIDs: the title and abstract as plain text passages, each with the genes, diseases, chemicals, variants, species and cell lines found in it, normalised to NCBI Gene, MeSH, dbSNP and taxonomy identifiers with character offsets.

pmidsfull?
GET /v1/data/pubmed/einfo1 credit

With no database named, returns the list of every Entrez database. With db set, returns that database's record count, last build date, searchable field tags with their descriptions, and the names of every link it supports.

db?
GET /v1/data/pubmed/entity-lookup1 credit

Resolves a name or fragment to PubTator's normalised entities, returning the @TYPE_Name id, the biotype, the source database and accession (NCBI Gene id, MeSH descriptor, dbSNP rsid, taxonomy id) and which synonym matched.

queryconcept?limit?
GET /v1/data/pubmed/entity-search1 credit

Searches PubMed by normalised biomedical concept rather than by keyword and returns ranked articles with PMID, PMCID, title, journal, authors, DOI, date, a matching snippet and the entities the paper mentions, together with facet counts over genes, diseases and chemicals.

textpage?sort?
GET /v1/data/pubmed/fulltext1 credit

Returns the complete body text of a PubMed Central open-access article as BioC JSON: every passage tagged with its section type (TITLE, ABSTRACT, INTRO, METHODS, RESULTS, DISCUSS, REF), plus the DOI, the PMID and the licence the text is published under.

id
GET /v1/data/pubmed/fulltext-links1 credit

Returns the LinkOut records for a PubMed article: every publisher, repository and aggregator that hosts it, each with the resolved URL, the provider name, a categories list such as Full Text Sources or Medical, and an attributes list that says whether it is a free resource or subscription/membership/fee required.

id
GET /v1/data/pubmed/idconvert1 credit

Maps article identifiers onto each other: give it PMIDs, PMCIDs, DOIs or Manuscript IDs and it returns the full identifier set for each one, plus a release date and a status per record.

idsidtype?versions?showaiid?
GET /v1/data/pubmed/links1 credit

Returns the linksets Entrez holds for the given UIDs: UIDs in a target database, for example the PMC id of a PubMed article, the PMIDs citing it, the books that cite it, or the gene, protein and clinical-variant records it mentions.

dbfromdbidlinkname?cmd?
GET /v1/data/pubmed/linktypes1 credit

Lists which linksets actually exist for the given PMIDs (the target database, the machine linkname such as pubmed_pmc_refs, the human menu label and a priority) without fetching any of the linked UIDs.

id
GET /v1/data/pubmed/mesh-descriptor1 credit

Returns everything NLM records for one MeSH descriptor: its preferred term and every entry-term synonym, the tree numbers that place it in the hierarchy, the scope note defining it, and the qualifiers (subheadings) it may be combined with.

descriptor
GET /v1/data/pubmed/mesh-search1 credit

Searches the Medical Subject Headings vocabulary by label and returns the matching descriptors with their canonical D-number URIs.

labellimit?year?
GET /v1/data/pubmed/relations1 credit

Returns the entities that a given gene, chemical, disease or variant is linked to by a named relation across all of PubMed, each with the number of publications that support it.

e1typee2?
GET /v1/data/pubmed/search1 credit

Runs an Entrez query and returns the matching UID list with the total count, the translated query stack and paging offsets: identifiers only, no record content.

dbtermretmax?retstart?sort?field?datetype?mindate?maxdate?reldate?
GET /v1/data/pubmed/sentence-search1 credit

Semantic search over individual sentences from PubMed abstracts and PMC full text, returning 100 sentences with a similarity score, their PMID and PMCID, inline entity annotations, and the section they came from (RESULTS, METHODS, DISCUSS: null for abstract and unsectioned text).

queryrerank?
GET /v1/data/pubmed/similar1 credit

Returns the PMIDs PubMed considers related to the given article, each with the numeric similarity score that ranks them: the same computed neighbour set that drives the "Similar articles" panel on pubmed.ncbi.nlm.nih.gov.

id
GET /v1/data/pubmed/summary1 credit

Returns the document summary for one or more Entrez UIDs: for PubMed that is title, authors, journal, volume/issue/pages, publication and e-publication dates, article ids including DOI and PMC, publication types and the PubMed status. No abstract text.

dbidretstart?retmax?
GET /v1/data/pubmed/variant-literature1 credit

Returns the PubMed articles that discuss a given dbSNP variant, with PMID, PMCID, title, journal, authors, date and the matching text snippets from each paper.

rsidpage?
GET /v1/data/pubmed/variant-lookup1 credit

Resolves an rsID, gene name or HGVS string to the variants LitVar knows, each with its canonical LitVar id, rsID, gene, HGVS notation, recorded clinical significance and how many PubMed articles mention it.

query

Response example

The shape of data from pubmed/annotations (Article text with entity annotations (PubTator3)). A sample, not live data.

Example truncated, full shape in JSON from the API.

JSON
{
  "PubTator3": [
    {
      "_id": "33301246|None",
      "id": "33301246",
      "infons": {},
      "passages": [
        {
          "infons": {
            "journal": "N Engl J Med. 2020 Dec 31;383(27):2603-2615. doi: 10.1056/NEJMoa2034577. Epub ",
            "year": "2020",
            "article-id_pmc": "PMC7745181",
            "type": "title",
            "authors": "Polack FP, Thomas SJ, Kitchin N, Absalon J, Gurtman A, Lockhart S, Perez JL, Perez Marc G, Moreira ED, Zerbini C, Bailey R, Swanson KA, Roychoudhury S, Koury K, Li P, Kalina WV, Cooper D, Frenck RW Jr, Hammitt LL, Tureci O, Nell H, Schaefer A, Unal S, Tresnan DB, Mather S, Dormitzer PR, Sahin U, Jansen KU, Gruber WC"
          },
          "offset": 0,
          "text": "Safety and Efficacy of the BNT162b2 mRNA Covid-19 Vaccine.",
          "sentences": [],
          "annotations": [
            {
              "id": "1",
              "infons": {
                "identifier": "MESH:D000086382",
                "type": "Disease",
                "valid": true,
                "normalized": "[ 1 item ]",
                "database": "ncbi_mesh",
                "normalized_id": "D000086382",
                "biotype": "disease",
                "name": "COVID-19",
                "accession": "@DISEASE_COVID_19"
              },
              "text": "Covid-19",
              "locations": [
                "{ 2 keys }"
              ]
            }
          ],
          "relations": []
        },
        {
          "infons": {
            "type": "abstract"
          },
          "offset": 59,
          "text": "BACKGROUND: Severe acute respiratory syndrome coronavirus 2 (SARS-CoV-2) infection and the resulting coronavirus disease 2019 (Covid-19) have afflicted tens of millions of people in a worldwide pandemic. Safe and effective vaccines are needed urgently. METHODS: In an ongoing multinational, placebo-controlled, observer-blinded, pivotal efficacy trial, we randomly assigned persons 16 years of age or older in a 1:1 ratio to receive two doses, 21 days apart, of either placebo or the BNT162b2 vaccine candidate (30 mug per dose). BNT162b2 is a lipid nanoparticle-formulated, nucleoside-modified RNA vaccine that encodes a prefusion stabilized, membrane-anchored SARS-CoV-2 full-length spike protein. The primary end points were efficacy of the vaccine against laboratory-confirmed Covid-19 and safety. RESULTS: A total of 43,548 participants underwent randomization, of whom 43,448 received injections: 21,720 with BNT162b2 and 21,728 with placebo. There were 8 cases of Covid-19 with onset at least 7 days after the second dose among participants assigned to receive BNT162b2 and 162 cases among those assigned to placebo; BNT162b2 was 95% effective in preventing Covid-19 (95% credible interval, 90.3 to 97.6). Similar vaccine efficacy (generally 90 to 100%) was observed across subgroups defined by age, sex, race, ethnicity, baseline body-mass index, and the presence of coexisting conditions. Among 10 cases of severe Covid-19 with onset after the first dose, 9 occurred in placebo recipients and 1 in a BNT162b2 recipient. The safety profile of BNT162b2 was characterized by short-term, mild-to-moderate pain at the injection site, fatigue, and headache. The incidence of serious adverse events was low and was similar in the vaccine and placebo groups. CONCLUSIONS: A two-dose regimen of BNT162b2 conferred 95% protection against Covid-19 in persons 16 years of age or older. Safety over a median of 2 months was similar to that of other viral vaccines. (Funded by BioNTech and Pfizer; Clinica…",
          "sentences": [],
          "annotations": [
            {
              "id": "16",
              "infons": {
                "identifier": "MESH:D000086382",
                "type": "Disease",
                "valid": true,
                "normalized": "[ 1 item ]",
                "database": "ncbi_mesh",
                "normalized_id": "D000086382",
                

Ask with this source

A prompt for your agent that names this source and how to call it through the crw MCP.

  • Article text with entity annotations (PubTator3)

    Use PubMed (NCBI E-utilities) (pubmed) from fastCRW Pergamon, capability "Article text with entity annotations (PubTator3)" (annotations). You need the actual abstract text of a PMID as JSON, or the normalised biomedical entities inside a paper - E-utilities cannot give you either. Example options: pmids=33301246, full=true. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "pubmed" and capability "annotations". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>

  • Database directory and field list (einfo)

    Use PubMed (NCBI E-utilities) (pubmed) from fastCRW Pergamon, capability "Database directory and field list (einfo)" (einfo). You are composing an Entrez query and need to know which databases exist or which field tags and links a database accepts. Example options: db=pubmed. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "pubmed" and capability "einfo". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>

  • Biomedical entity lookup (PubTator3)

    Use PubMed (NCBI E-utilities) (pubmed) from fastCRW Pergamon, capability "Biomedical entity lookup (PubTator3)" (entity-lookup). You have a gene, drug, disease or species name as text and need its canonical identifier before running entity-search or relations. Example options: query=asthma, concept=disease, limit=5. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "pubmed" and capability "entity-lookup". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>

  • Entity-aware literature search (PubTator3)

    Use PubMed (NCBI E-utilities) (pubmed) from fastCRW Pergamon, capability "Entity-aware literature search (PubTator3)" (entity-search). You want papers about a concept rather than a string - every synonym of a gene or disease at once - or want the gene/disease breakdown of a result set. Example options: text=@GENE_BRCA1 AND @DISEASE_Breast_Neoplasms, page=2, sort=score desc. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "pubmed" and capability "entity-search". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>

Licence

Public domain information on the National Library of Medicine (NLM) Web pages may be freely distributed and copied.

https://www.ncbi.nlm.nih.gov/home/about/policies/

Attribution

Display this wherever you show the data. It arrives on every response as provenance.attribution_text.

Source: NCBI / PubMed

Cache: up to 3600s