PubMed Article Search
POST /api/v1/pubmed/articles/search
Search PubMed by keyword and get matching biomedical articles with titles, authors, journal, publication date, abstract, keywords, publication types, DOI and free full-text links.
Overview
Search PubMed by keyword and get matching biomedical articles with titles, authors, journal, publication date, abstract, keywords, publication types, DOI and free full-text links.
POST /api/v1/pubmed/articles/search
Method: POST Path: /api/v1/pubmed/articles/search Category: Research & Public Records
Request Parameters
Endpoint Parameters
| Name | Type | Requirement | Description |
|---|---|---|---|
| limit | integer | Optional | Maximum number of results to return (1-100). |
| page | integer | Optional | Results page (each page holds up to `limit` results). |
| query | string | Required | Search keywords or a PubMed query, e.g. "crispr gene therapy" or "covid-19[ti] AND vaccine". |
| sort | string | Optional | Result order - relevance (best match first) or date (newest first). |
| year_from | integer | Optional | Only return articles published in or after this year, e.g. 2020. |
| year_to | integer | Optional | Only return articles published in or before this year, e.g. 2024. |
Request Example
PubMed Article Search Request Examples
curl -X POST "https://api.dataguru.cc/api/v1/pubmed/articles/search" \ -H "Authorization: Api-Key YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{"limit": "20", "page": "1", "query": "example", "sort": "relevance", "year_from": 1, "year_to": 1}'
Response Example
200 OK
Typical 200 OK JSON response structure with envelope metadata.
{ "query": "string", "query_translation": "string", "sort": "relevance", "page": 0, "total_results": 0, "returned_results": 0, "results": [ { "pmid": "1234567890", "title": "string", "abstract": "string", "authors": [ "string" ], "journal": "string", "journal_abbreviation": "string", "volume": "string", "issue": "string", "pages": "string", "pub_date": "2026-01-01T12:00:00Z", "pub_date_iso": "string", "year": 0, "doi": "string", "pmcid": "1234567890", "publication_types": [ "string" ], "language": [ "string" ], "keywords": [ "string" ], "url": "https://example.com/...", "doi_url": "https://example.com/...", "pmc_url": "https://example.com/..." } ], "error": "string", "_metadata": { "request_id": "3f6c1a2e-8b4d-4c1e-9a7f-2d5e6b7c8d9e", "execution_time_ms": 842, "endpoint": "PubMed Article Search", "mode": "live", "format": "json", "timestamp": "2026-01-01T12:00:00+00:00" } }
Response Schema
Fields returned in a successful response. Nested fields use dot notation and `[]` marks items of a list. Fields that are not required can be missing or `null` when the source does not provide them. Every response also includes a `_metadata` block.
Response Fields
| Field | Type | Required | Description |
|---|---|---|---|
| query | string | Yes | Search keywords or PubMed query that was searched. |
| query_translation | string | No | How PubMed interpreted the query (expanded terms and fields). |
| sort | string | No | Result order used. |
| page | integer | Yes | Results page returned. |
| total_results | integer | Yes | Total number of matching articles PubMed reports. |
| returned_results | integer | Yes | Number of articles returned. |
| results | array<object> | Yes | |
| results[].pmid | string | Yes | PubMed ID, e.g. '31452104'. |
| results[].title | string | Yes | Article title. |
| results[].abstract | string | No | Full abstract text (structured abstracts as 'LABEL: text' lines); empty when the article has none. |
| results[].authors | array<string> | Yes | Author names in byline order. |
| results[].journal | string | Yes | Journal (or book) title. |
| results[].journal_abbreviation | string | No | Abbreviated journal title, e.g. 'Nat Med'. |
| results[].volume | string | No | |
| results[].issue | string | No | |
| results[].pages | string | No | Page range, e.g. '149-167'. |
| results[].pub_date | string | No | Publication date as printed, e.g. '2019 Aug 28'. |
| results[].pub_date_iso | string | No | Publication date as YYYY, YYYY-MM or YYYY-MM-DD. |
| results[].year | integer | null | No | Publication year. |
| results[].doi | string | No | DOI, when known. |
| results[].pmcid | string | No | PubMed Central id of the free full text, e.g. 'PMC6543210', when available. |
| results[].publication_types | array<string> | No | e.g. 'Journal Article', 'Review', 'Randomized Controlled Trial'. |
| results[].language | array<string> | No | Language codes, e.g. 'eng'. |
| results[].keywords | array<string> | No | Author keywords. |
| results[].url | string | Yes | PubMed article page URL. |
| results[].doi_url | string | No | Publisher link via DOI, when known. |
| results[].pmc_url | string | No | Free full-text link on PubMed Central, when available. |
| error | string | No | Present only when the search failed. |
Asynchronous Requests
Long-running requests can be processed in the background. Add `?async=true` (or the `Prefer: respond-async` header) to receive a `job_id` immediately, then poll the job until its status is `COMPLETED`.
Async Workflow
curl -X POST "https://api.dataguru.cc/api/v1/pubmed/articles/search?async=true" \ -H "Authorization: Api-Key YOUR_API_KEY" # 202 Accepted { "success": true, "status": "SUBMITTED", "job_id": "0ca215ce-244f-4b28-b481-dc1b551983c8", "status_url": "/api/v1/jobs/0ca215ce-244f-4b28-b481-dc1b551983c8/" }
Batch Processing
To run many requests at half price, upload them as a CSV file: one row per request, with the parameter names above as the header row. Rows run in the background within 24 hours (up to 7 days for large files) and each successful row costs 50% of the price below. Poll /api/v1/batches/{batch_id}/ for progress and download results.json when it has finished. See the Batch Processing guide for details.
Batch Workflow
query,limit,page,sort,year_from,year_to example,20,1,relevance,1,1
Pricing & Rate Limits
Endpoint Pricing
$0.0012 / per successful request (USD)
Consumed per successful call: 1 request unit(s), 1 credit(s).
Endpoint Rate Limits
Common Errors
Common HTTP Errors
| Status | Code | Description |
|---|---|---|
| 400 | VALIDATION_ERROR | A required parameter is missing or malformed. |
| 401 | UNAUTHORIZED | Missing or invalid API key. |
| 402 | INSUFFICIENT_BALANCE | Your balance cannot cover this request. |
| 403 | ENDPOINT_DISABLED | This endpoint is currently unavailable. |
| 405 | METHOD_NOT_ALLOWED | The endpoint was called with the wrong HTTP method. |
| 429 | RATE_LIMIT_EXCEEDED | Too many requests. See the Retry-After header. |
| 502 | PROVIDER_ERROR | The upstream data source failed. Retry with exponential backoff. |