# Search Orphanet

Search and read Orphanet records through the Assyro API: rare diseases by ORPHA code: names and synonyms, definitions, ICD-10/ICD-11/OMIM codes, prevalence…

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

`GET https://api.assyro.com/v1/sources/orphanet/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 Orphanet records from your own code: rare diseases by ORPHA code: names and synonyms, definitions, ICD-10/ICD-11/OMIM codes, prevalence estimates with their sources, and associated genes. Published by Orphanet (INSERM) ([www.orpha.net](https://www.orpha.net/)); answered from Assyro's copy, refreshed weekly Monday 05:10 UTC.

> **Warning:** Attribution required: every record carries `attribution`. Show it wherever you show the data: "Orphadata Science: Free access data from Orphanet. (c) INSERM 1999. Available on http://sciences.orphadata.com/. Data version: the date in `version`. Licensed under CC BY 4.0; reformatted by Assyro, content not modified." See the [terms](https://www.orphadata.com/legal-notice/).

Example: "What is the estimated prevalence of Fabry disease in Europe, and which gene causes it?"

## Search

`GET https://api.assyro.com/v1/sources/orphanet/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 | yes | A disease name or synonym, a gene symbol, or a code, e.g. "Fabry disease", "GLA", "ORPHA:324" or "E75.2". Quoted phrases and OR work. |
| `kind` | string[] | no | Keep only these levels of the classification: "disorder" (a disease, syndrome, malformation...), "subtype" (a clinical, etiological or histopathological subtype of one), "group" (a group of disorders). One of: `disorder`, `subtype`, `group`. |
| `includeInactive` | boolean | no | Also return entities Orphanet has made inactive (obsolete, deprecated or historical codes, each naming the code it was moved or referred to). Default false: only the current nomenclature. |
| `limit` | integer | no | Entities to return, default 8. |
| `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/orphanet/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/orphanet/search?query=Fabry+disease"
```

Python:

```python
import requests

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

JavaScript:

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