PubMed · Schema

ESearch Response

Schema for the JSON response from the NCBI E-utilities ESearch endpoint.

BiomedicalLife ScienceResearchLiteratureCitationsAbstractsMeshGenomicsPubMedNCBI

Properties

Name Type Description
header object Response header metadata.
esearchresult object Main search result container.
View JSON Schema on GitHub

JSON Schema

esearch-response.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/pubmed/main/json-schema/esearch-response.json",
  "title": "ESearch Response",
  "description": "Schema for the JSON response from the NCBI E-utilities ESearch endpoint.",
  "type": "object",
  "properties": {
    "header": {
      "type": "object",
      "description": "Response header metadata.",
      "properties": {
        "type": { "type": "string", "description": "Response type identifier.", "example": "esearch" },
        "version": { "type": "string", "description": "ESearch version.", "example": "0.3" }
      }
    },
    "esearchresult": {
      "type": "object",
      "description": "Main search result container.",
      "properties": {
        "count": {
          "type": "string",
          "description": "Total number of records matching the query.",
          "example": "42317"
        },
        "retmax": {
          "type": "string",
          "description": "Number of UIDs returned in this response.",
          "example": "20"
        },
        "retstart": {
          "type": "string",
          "description": "Index of the first UID returned.",
          "example": "0"
        },
        "querykey": {
          "type": "string",
          "description": "Integer query key assigned on the History server (only present when usehistory=y).",
          "example": "1"
        },
        "webenv": {
          "type": "string",
          "description": "Web environment string for use with History server (only present when usehistory=y)."
        },
        "idlist": {
          "type": "array",
          "description": "List of UIDs matching the search query.",
          "items": { "type": "string" },
          "example": ["36328499", "36328500", "36328501"]
        },
        "translationset": {
          "type": "array",
          "description": "Details of any query translation performed by Entrez.",
          "items": {
            "type": "object",
            "properties": {
              "from": { "type": "string", "description": "Original search term." },
              "to": { "type": "string", "description": "Translated Entrez query term." }
            }
          }
        },
        "translationstack": {
          "type": "array",
          "description": "Stack representation of the query translation.",
          "items": {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "term": { "type": "string" },
                  "field": { "type": "string" },
                  "count": { "type": "string" },
                  "explode": { "type": "string" }
                }
              },
              { "type": "string", "enum": ["AND", "OR", "NOT", "GROUP"] }
            ]
          }
        },
        "querytranslation": {
          "type": "string",
          "description": "Full Entrez query translation used for the search.",
          "example": "\"neoplasms\"[MeSH Terms] OR \"cancer\"[All Fields]"
        },
        "errorlist": {
          "type": "object",
          "description": "Lists any errors encountered during the search.",
          "properties": {
            "phrasesnotfound": {
              "type": "array",
              "items": { "type": "string" },
              "description": "Search phrases that produced no results."
            },
            "fieldsnotfound": {
              "type": "array",
              "items": { "type": "string" },
              "description": "Specified fields that were not recognized."
            }
          }
        },
        "warninglist": {
          "type": "object",
          "description": "Lists any warnings generated during the search.",
          "properties": {
            "phrasesignored": {
              "type": "array",
              "items": { "type": "string" }
            },
            "quotedphrasesnotfound": {
              "type": "array",
              "items": { "type": "string" }
            },
            "outputmessages": {
              "type": "array",
              "items": { "type": "string" }
            }
          }
        }
      },
      "required": ["count", "retmax", "retstart", "idlist"]
    }
  },
  "required": ["esearchresult"]
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/esearch-response"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.