# Search MedlinePlus

Search and read MedlinePlus records through the Assyro API: plain-language health information: NLM's MedlinePlus health topic summaries of conditions…

Source: https://www.assyro.com/docs/sources/medlineplus

`GET https://api.assyro.com/v1/sources/medlineplus/search`

> **Note:** Preview: `api.assyro.com` is not serving production data yet. This page follows the API's published description and may change before launch.

Search and read MedlinePlus records from your own code: plain-language health information: NLM's MedlinePlus health topic summaries of conditions, symptoms, tests and treatments, in English and Spanish, with other names, MeSH headings and related topics. Published by U.S. National Library of Medicine (NIH) ([medlineplus.gov/healthtopics.html](https://medlineplus.gov/healthtopics.html)); answered from Assyro's copy, refreshed Tuesday to Saturday 09:40 UTC.

> **Warning:** Attribution required: every record carries `attribution`. Show it wherever you show the data: "Courtesy of MedlinePlus from the National Library of Medicine (https://medlineplus.gov/)." See the [terms](https://medlineplus.gov/about/using/usingcontent/).

Example: "What does a high A1C result mean, in plain language?"

## Search

`GET https://api.assyro.com/v1/sources/medlineplus/search` with any of these query parameters. Repeat a parameter for a list (`?phase=PHASE2&phase=PHASE3`). An unknown parameter is refused by name.

### Search parameters

| Field | Type | Required | Description |
|---|---|---|---|
| `query` | string | no | Words, e.g. "high blood pressure" or "sore throat". |
| `language` | string | no | Only English or only Spanish topics (both by default). One of: `English`, `Spanish`. |
| `group` | string | no | A MedlinePlus topic group, e.g. "Heart and Circulation" or "Symptoms". |
| `limit` | integer | no | Topics to return, default 6. |
| `offset` | integer | no | Skip this many results (for paging), default 0. |

Each result is a record; read one in full with [Get a record](https://www.assyro.com/docs/sources/medlineplus/records).

## What a record holds

- `id`, `title`, `url`: the source's identifier, its title and its page at the source, to verify it.
- `authority`, `publishedDate`, `version`: who published it, when, and the edition read.
- `snippet` and `fields`: the matching text and the source's own fields.
- `asOf`: the day Assyro's copy of the source was read.
- `attribution`: the attribution the licence requires.

## Example request

curl:

```bash
curl "https://api.assyro.com/v1/sources/medlineplus/search?query=A1C"
```

Python:

```python
import requests

response = requests.get(
    "https://api.assyro.com/v1/sources/medlineplus/search",
    params={
        "query": "A1C"
    },
)
response.raise_for_status()
print(response.json())
```

JavaScript:

```javascript
const response = await fetch("https://api.assyro.com/v1/sources/medlineplus/search?query=A1C");
const result = await response.json();
```
