# PubMed



The biomedical literature — search 36 million citations, and read any record's abstract.



## PubMed Search

Search the biomedical literature — 36 million citations back to the 1960s, with titles, journals, and authors.

- Method: `GET`
- Path: `/v1/papers/pubmed`

**Parameters**

| Name | Type | | Description |
|---|---|---|---|
| `q` | string | required | Search terms, as you would type them into PubMed. |
| `limit` | integer | optional | 1 to 30 articles. |
| `max_age` | integer (seconds) | optional | Ask for data no older than this. Clamped to the product's own floor, so it can narrow the window but never force a refresh on every call. |

**Example request**

```bash
curl https://api.diraz.ae/v1/papers/pubmed \
  -H "Authorization: Bearer drz_live_…"
```

**Example response**

```json
{
  "data": {
    "query": "CRISPR",
    "total": 70204,
    "articles": [
      {
        "pmid": "42627324",
        "title": "CRISPR-based diagnostics: a review.",
        "journal": "mSphere",
        "pubDate": "2025 Mar 25",
        "authors": ["Wang H", "Tian Y"],
        "url": "https://pubmed.ncbi.nlm.nih.gov/42627324/"
      }
    ]
  },
  "meta": {
    "request_id": "req_7Q2fK4mZ",
    "as_of": "2026-08-22T04:05:00.000Z",
    "age_seconds": 42,
    "next_update_at": "2026-08-23T04:05:00.000Z"
  }
}
```

## PubMed Abstract

One record's abstract in full — the paper's own summary of itself, by PMID.

- Method: `GET`
- Path: `/v1/papers/pubmed/{pmid}`

**Parameters**

| Name | Type | | Description |
|---|---|---|---|
| `pmid` | path segment | required | A PubMed id, from the search endpoint. |

**Example request**

```bash
curl https://api.diraz.ae/v1/papers/pubmed/%7Bpmid%7D \
  -H "Authorization: Bearer drz_live_…"
```

**Example response**

```json
{
  "data": {
    "pmid": "42627324",
    "title": "CRISPR-based diagnostics: a review.",
    "abstract": "Clustered regularly interspaced short palindromic repeats (CRISPR) have emerged as powerful diagnostics tools...",
    "journal": "mSphere",
    "authors": ["Wang H", "Tian Y"],
    "url": "https://pubmed.ncbi.nlm.nih.gov/42627324/"
  },
  "meta": {
    "request_id": "req_7Q2fK4mZ",
    "as_of": "2026-08-22T04:05:00.000Z",
    "age_seconds": 42,
    "next_update_at": "2026-08-23T04:05:00.000Z"
  }
}
```