# MedlinePlus API

> Returns MedlinePlus health topics, pages linked to clinical codes, and genetics condition and gene summaries.

Category: Government & Open Data. Region: US. 5 endpoints at `https://api.hoshime.com/v1/medlineplus/<endpoint>`, `GET` with query parameters, answering `{data, meta}` (see https://hoshime.com/docs/responses.md). Reference: https://hoshime.com/docs/platforms/medlineplus
## GET /v1/medlineplus/topics

MedlinePlus health topics that match a search term.

Scope: `social:read` · Units: 1 · Cached: 1440 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `query` | string | yes | Search term, such as diabetes. (e.g. diabetes) |
| `limit` | integer | no | Items per page, 1 to 100. (default 10) |
| `cursor` | string | no | meta.pagination.nextCursor of the previous page. Omit it for the first page. |
| `lang` | string | no | Language of the topics: en for English, es for Spanish. (one of en, es; default en) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `summary` (string), `title` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/medlineplus/topics?query=diabetes" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/medlineplus/connect

MedlinePlus topics linked to an ICD-10-CM diagnosis code.

Scope: `social:read` · Units: 1 · Cached: 1440 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `code` | string | yes | ICD-10-CM code, such as E11 or E11.9. (e.g. E11) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `summary` (string), `title` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/medlineplus/connect?code=E11" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/medlineplus/lookup

MedlinePlus pages linked to a clinical code in any of seven vocabularies: ICD-10-CM, ICD-9-CM, SNOMED CT, RxNorm, NDC, LOINC and CPT.

Scope: `social:read` · Units: 1 · Cached: 1440 min · Paginated: cursor

| Parameter | Type | Required | Description |
|---|---|---|---|
| `codeSystem` | string | yes | Clinical vocabulary the code belongs to. (one of cpt, icd10cm, icd9cm, loinc, ndc, rxcui, snomed; e.g. icd10cm) |
| `code` | string | yes | Code to look up inside the chosen vocabulary, such as E11.9 or 73211009. (e.g. E11.9) |
| `lang` | string | no | Language of the returned pages. (one of en, es; default en; e.g. en) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `summary` (string), `title` (string), `url` (string)

```bash
curl "https://api.hoshime.com/v1/medlineplus/lookup?codeSystem=icd10cm&code=E11.9&lang=en" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/medlineplus/geneticsCondition

A MedlinePlus Genetics condition summary: its text, synonyms, inheritance patterns, related genes and cross-references.

Scope: `social:read` · Units: 1 · Cached: 1440 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `slug` | string | yes | Condition slug as it appears in the MedlinePlus Genetics URL, such as alzheimer-disease. (e.g. alzheimer-disease) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `crossReferences` (CrossRef[]), `crossReferences[].db` (string), `crossReferences[].key` (string), `inheritance` (Inheritance[]), `inheritance[].code` (string), `inheritance[].description` (string), `name` (string), `publishedDate` (string), `relatedGenes` (GeneLink[]), `relatedGenes[].symbol` (string), `relatedGenes[].url` (string), `reviewed` (string), `summary` (string), `synonyms` (string[]), `url` (string)

```bash
curl "https://api.hoshime.com/v1/medlineplus/geneticsCondition?slug=alzheimer-disease" -H "Authorization: Bearer $HOSHIME_TOKEN"
```

## GET /v1/medlineplus/geneticsGene

A MedlinePlus Genetics gene summary: its text, synonyms, related conditions and cross-references.

Scope: `social:read` · Units: 1 · Cached: 1440 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `symbol` | string | yes | Gene symbol as MedlinePlus Genetics uses it, such as BRCA1. (e.g. BRCA1) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `crossReferences` (CrossRef[]), `crossReferences[].db` (string), `crossReferences[].key` (string), `name` (string), `publishedDate` (string), `relatedConditions` (ConditionLink[]), `relatedConditions[].name` (string), `relatedConditions[].url` (string), `reviewed` (string), `summary` (string), `symbol` (string), `synonyms` (string[]), `url` (string)

```bash
curl "https://api.hoshime.com/v1/medlineplus/geneticsGene?symbol=BRCA1" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
