Skip to content
Docs

PubMed search

One page of full PubMed records for a query, in PubMed's own ranking.

POST/v1/pubmed/search
2 creditsTry it2 per page (an empty page and failed requests are free)

Each article carries the title, the labelled abstract (abstract_sections, plus the joined abstract), authors with affiliations and ORCID, the journal block, doi/pmcid, publication types, MeSH terms and the canonical article link.

term is PubMed's query language verbatim (field tags, MeSH, booleans); query_translation in the answer is PubMed's own expansion of it. total is the full match count; next_page is set while more remain. An empty result is a normal empty page and is not charged.

Request

POSThttps://api.scrapercompany.com/v1/pubmed/search

Authenticate with your API key in the x-api-key header (see Authentication).

Run this request on your own API key from this page, with the values you type. Signed out? Sign in or get an API key.

Body

JSON object. Unknown fields are rejected with 422.

  • termstringrequiredmin length 1, max length 1000

    PubMed query, in PubMed's own syntax: words, phrases, field tags (cancer[Title], "cold water"[MeSH]), and AND/OR/NOT all pass through verbatim.

  • pageintegerdefault 1min 1, max 1000

    Result page, from 1.

  • page_sizeintegerdefault 10min 1, max 100

    Records per page; each is a full PubMed record.

  • sortstringdefault relevance

    Result order.

    One ofrelevancepub_dateauthorjournal

  • date_fromstring | nullpattern ^\d{4}(/\d{2}(/\d{2})?)?$

    Earliest publication date: YYYY, YYYY/MM or YYYY/MM/DD.

  • date_tostring | nullpattern ^\d{4}(/\d{2}(/\d{2})?)?$

    Latest publication date, same formats as date_from.

Example request

curl -X POST "https://api.scrapercompany.com/v1/pubmed/search" \
  -H "x-api-key: $SCRAPERCOMPANY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "term": "cold-water immersion"
  }'

Response

200 — One page of full PubMed records, in PubMed's ranking. Metered responses carry x-credits-charged and x-credits-remaining headers (see credit headers).

200 response
{
  "search_parameters": {
    "engine": "pubmed_search",
    "term": "cold-water immersion",
    "page": 1,
    "page_size": 10,
    "sort": "relevance"
  },
  "articles": [
    {
      "pmid": "39879231",
      "title": "Effects of cold-water immersion on health and wellbeing: A systematic review and meta-analysis.",
      "abstract": "BACKGROUND: Cold-water immersion (CWI) has gained popularity as a health and wellbeing intervention among the general population.\n\nOBJECTIVE: This systematic review and meta-analysis aimed to evaluate the psychological, cognitive, and physiological effects of CWI in healthy adults.…",
      "abstract_sections": [
        {
          "label": "BACKGROUND",
          "text": "Cold-water immersion (CWI) has gained popularity as a health and wellbeing intervention among the general population."
        },
        {
          "label": "OBJECTIVE",
          "text": "This systematic review and meta-analysis aimed to evaluate the psychological, cognitive, and physiological effects of CWI in healthy adults."
        }
      ],
      "copyright": "Copyright: © 2025 Cain et al. This is an open access article distributed under the terms of the Creative Commons Attribution License…",
      "authors": [
        {
          "name": "Tara Cain",
          "last_name": "Cain",
          "fore_name": "Tara",
          "initials": "T",
          "orcid": "0009-0005-3566-9972",
          "affiliations": [
            "Alliance for Research in Exercise Nutrition and Activity (ARENA), Allied Health and Human Performance, University of South Australia, Adelaide, Australia."
          ]
        }
      ],
      "journal": {
        "title": "PloS one",
        "iso_abbreviation": "PLoS One",
        "issn": "1932-6203",
        "issn_type": "Electronic",
        "volume": "20",
        "issue": "1",
        "pub_date": "2025"
      },
      "publication_date": "2025-01-29",
      "year": 2025,
      "doi": "10.1371/journal.pone.0317615",
      "pmcid": "PMC11778651",
      "pii": "e0317615",
      "publication_types": [
        "Journal Article",
        "Systematic Review"
      ],
      "mesh_terms": [
        {
          "descriptor": "Humans",
          "ui": "D006801",
          "major_topic": false,
          "qualifiers": []
        },
        {
          "descriptor": "Cold Temperature",
          "ui": "D003080",
          "major_topic": true,
          "qualifiers": []
        }
      ],
      "keywords": [],
      "languages": [
        "eng"
      ],
      "publication_status": "epublish",
      "history": {
        "received": "2024-08-06",
        "accepted": "2025-01-01",
        "pubmed": "2025-01-29"
      },
      "reference_count": 50,
      "conflict_of_interest": "The authors have declared that no competing interests exist.",
      "link": "https://pubmed.ncbi.nlm.nih.gov/39879231/"
    }
  ],
  "total": 1963,
  "query_translation": "\"cold-water\"[All Fields] AND (\"immersion\"[MeSH Terms] OR \"immersion\"[All Fields])",
  "next_page": 2,
  "meta": {
    "source": "pubmed",
    "elapsed_s": 0.42
  }
}
Arrays are shortened to their first items.

Errors

Errors return a JSON body with a detail field. Failed requests are not charged. See Errors for the full list and retry advice.

StatusMeaningRetry?
401Unauthorized

Missing or invalid API key.

{"detail":"missing or invalid API key"}
No, fix the request
402Payment Required

Not enough credits for this request: the account's credits mode is enforce (mode in GET /v1/billing) and the request costs more than the available credits. Nothing is run or charged.

{"detail":"insufficient credits: this request costs 5, 0 available. Credits renew 2026-11-01."}
No, fix the request
422Unprocessable Content

Request validation failed. detail is a list of problems for schema errors, or a string for semantic checks performed by the endpoint.

{"detail":[{"loc":["body","name"],"msg":"Field required","type":"missing"}]}
No, fix the request
429Too Many Requests

Too many requests: the key's requests-per-minute limit was exceeded, or (in enforce credits mode) the plan's concurrent-request limit. No rate-limit or Retry-After headers are sent; back off and retry.

{"detail":"rate limit 60/min exceeded"}
Yes, with backoff
503Service Unavailable

Temporarily unavailable: a dependency of this endpoint is down, or the upstream source changed its contract. Retry later.

{"detail":"database unavailable: OperationalError"}
Yes, with backoff

Try it

Press Try it above to run this request on your own key, with the values you type (sign in first). For a no-code walkthrough, use the workspace’s guided Try it.

  1. Export your key: export SCRAPERCOMPANY_API_KEY=sk_... (no key yet? start a free trial).
  2. Copy the cURL example above and run it in a terminal.

Credits

2 credits per successful call (2 per page (an empty page and failed requests are free)). Failed, blocked and empty results are free.

Questions about this page?

Send the page link and your question, and the team will answer.

Email support