Request
https://api.zapi.ink/v1/research:pubmed/abstractSend your key in the x-api-key header. The response is JSON in the { project, data, timestamp } envelope, and an identical request is served from cache for 5 minutes.
Parameters
| Name | Type | In | Required | Description |
|---|---|---|---|---|
| id | string | query | Yes | Comma-separated PMIDs, max 200 per call Example: 33301246,32109013 |
Code examples
curl -X GET "https://api.zapi.ink/v1/research:pubmed/abstract?id=33301246%2C32109013" \ -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
const res = await fetch("https://api.zapi.ink/v1/research:pubmed/abstract?id=33301246%2C32109013", { method: "GET", headers: { "x-api-key": "zpi_xxxxxxxxxxxxxxxxxxxxxxxx" }, }); const data = await res.json(); console.log(data);
import requests res = requests.get( "https://api.zapi.ink/v1/research:pubmed/abstract", params={"id":"33301246,32109013"}, headers={"x-api-key":"zpi_xxxxxxxxxxxxxxxxxxxxxxxx"}, ) print(res.json())
Example response
{ "project": "research:pubmed", "data": { "db": "pubmed", "count": 2, "items": [ { "pmid": "33301246", "content": "1. N Engl J Med. 2020 Dec 31;383(27):2603-2615. doi: 10.1056/NEJMoa2034577. Epub \n2020 Dec 10.\n\nSafety and Efficacy of the BNT162b2 mRNA Covid-19 Vaccine.\n\nPolack FP(1), Thomas SJ(…" }, { "pmid": "32109013", "content": "2. N Engl J Med. 2020 Apr 30;382(18):1708-1720. doi: 10.1056/NEJMoa2002032. Epub \n2020 Feb 28.\n\nClinical Characteristics of Coronavirus Disease 2019 in China.\n\nGuan WJ(1), Ni ZY(1)…" } ], "format": "text", "provider": "pubmed" }, "timestamp": "2026-08-30T00:49:24Z" }
Frequently asked questions
How do I call the PubMed Abstract API?
Send a GET request to https://api.zapi.ink/v1/research:pubmed/abstract?id=33301246%2C32109013 with your Zapi key in the x-api-key header. Parameters — required: id. The response is JSON in the { project, data, timestamp } envelope.
What does the PubMed Abstract API return?
efetch db=pubmed&rettype=abstract&retmode=text, pre-bound. The example response has the fields db, count, items, format, provider. Each item in items has fields such as pmid, content.
Is the PubMed Abstract API free?
Yes. It is on the Zapi free tier: 600 Zap a month with one API key and no credit card. Each call costs 1 Zap. Paid plans raise the limits.
Can an AI assistant call the PubMed Abstract API?
Yes. Add the Zapi MCP server (https://mcp.zapi.ink/mcp) to Claude, Cursor or another MCP client and ask in plain words; it calls run_scraper with scraper "pubmed" and endpoint "abstract".
What other PubMed API endpoints are there?
It has 4 endpoints. Besides Abstract: Databases, Search, Summary.
