EBI Ontology Term Search API
Standard ontology terms that match plain words, from the EBI Ontology Lookup Service: the term id (HP, GO, EFO, MONDO and others), label, ontology, definition, synonyms and the term's IRI.
$0.50 per 1,000 records
You pay only for the records you get. Zero records cost zero. 10,000 free records of this API to start (5,000 at the base price of $1 per 1,000), no card.
Data from ebi.ac.uk/ols4/
Get this data
Try it here with a few records, download the sample, fill a Google Sheet, or call it from your own code.
Try it
Run it on this page, or call it from your code with the endpoint in the developer section. A free key covers 10,000 records of this API, no card. Create a free key
For developers: the API and MCPThe endpoint, code in curl, JavaScript and Python, every input, and files for your tools
- Small runs answer in the same request; longer ones answer
202with a run to poll. fieldsreturns only the fields you name. The examples send the ones picked on this page.Idempotency-Keyis optional. A retry with it is never charged twice.- You pay for records returned. Zero records cost zero.
curl -X POST "https://pullrow.dev/v1/apis/ontology-term-search/run" \
-H "Authorization: Bearer $PULLROW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"search":"diabetes"},"max_items":50}'Inputs
Send them as input in the request body. Leave one out to use its default.
What's in each record
8 fields: 7 here, 1 technical one under Technical details.
Basics
- Label
Name of the term.
Example Type II diabetes mellitus
- Ontology
Short name of the ontology the term belongs to, such as hp.
Example hp
- Description
The ontology's definition of the term, cut to 500 characters.
Example Persons with type II diabetes mellitus rarely develop ketoacidosis. A type of diabetes mellitus initially characterized…
- Synonyms
Other names for the term.
Example Diabetes mellitus Type II, Diabetes mellitus type 2
- Term type
What the term is: class, property or individual.
Example class
Links
- Link
Link to the term's page on the Ontology Lookup Service.
Example ebi.ac.uk/ols4/ontologies/hp/classes/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FHP_0005978
- Iri
The term's permanent web identifier (IRI).
Technical detailsField names and types for developers, and the 1 field hidden above
Hidden by default
This field comes with each record too. It is an internal code, a note about how the record was read or a copy of what was searched for, so the lists above leave it out.
- ID
idIdentifier of the term, such as HP:0005978.
Field names and types
The names your code reads in each record. "Filled" counts how many of the 3 sample records carry the field.
| Field name | Type | Shown on this page as | Filled |
|---|---|---|---|
id | text | ID (hidden) | 3 of 3 |
url | link | Link | 3 of 3 |
label | text | Label | 3 of 3 |
ontology | text | Ontology | 3 of 3 |
description | text | Description | 3 of 3 |
synonyms | list | Synonyms | 3 of 3 |
term_type | text | Term type | 3 of 3 |
iri | link | Iri | 3 of 3 |
How it reads the site
Runs on a reader we built and maintain by hand for this site.
Save as pipeline
A pipeline remembers this API, your inputs and the fields you picked. It can run on a schedule and email you the results.
Sample records
| Record | Label | Ontology | Description | Synonyms | Term type | Link | Iri |
|---|---|---|---|---|---|---|---|
| 1 | Type II diabetes mellitus | hp | Persons with type II diabetes mellitus rarely develop ketoacidosis. A type of diabetes mellitus initially characterized by insulin resistance and hyperinsulinemia and subsequently by glucose interolerance and hyperglycemia. | Diabetes mellitus Type II, Diabetes mellitus type 2, Diabetes mellitus, noninsulin-dependent, NIDDM diabetes mellitus | class | ebi.ac.uk/ols4/ontologies/hp/classes/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FHP_0005978 | purl.obolibrary.org/obo/HP_0005978 |
| 2 | Type I diabetes mellitus | hp | The onset of type 1 diabetes is typically during adolescence, but it can develop at any age. A chronic condition in which the pancreas produces little or no insulin. Type I diabetes mellitus is manifested by the sudden onset of severe hyperglycemia with rapid progression to… | Diabetes mellitus Type I, Juvenile diabetes mellitus, Insulin-dependent diabetes mellitus, Type 1 diabetes | class | ebi.ac.uk/ols4/ontologies/hp/classes/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FHP_0100651 | purl.obolibrary.org/obo/HP_0100651 |
| 3 | Insulin-resistant diabetes mellitus | hp | A type of diabetes mellitus related not to lack of insulin but rather to lack of response to insulin on the part of the target tissues of insulin such as muscle, fat, and liver cells. This type of diabetes is typically associated with increases both in blood glucose… | Insulin resistant diabetes mellitus, Insulin resistant diabetes, Insulin-resistant diabetes | class | ebi.ac.uk/ols4/ontologies/hp/classes/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FHP_0000831 | purl.obolibrary.org/obo/HP_0000831 |
Sample records from the example output this API publishes. Email addresses and phone numbers in them are masked. Hover over a column name to see the field name your code reads.
Reliability
Counted from real runs. Our own health checks are left out. A run succeeded when it finished and the site neither blocked it nor broke it.
Incidents and repairs
How it is kept working What a repair can't do
A ready-made API, maintained by us. It is not part of the daily check or the automatic rebuild yet.
- You pay only for records returned. A run that returns none costs nothing.
- One run returns at most 1,000 terms, read 100 at a time; a broad word can match thousands more.
- Without an ontology filter the same concept can appear once in each ontology that defines it, so look at the ontology field.
- description is the ontology's own definition, joined into one paragraph and cut to 500 characters; many terms have none.
- synonyms lists exact and related synonyms together and is empty for terms without any.
- Obsolete terms are left out.
- Each ontology has its own licence (most are CC BY 4.0 or CC0); check the ontology you use and credit it and EMBL-EBI OLS.
- Not affiliated with or endorsed by EMBL-EBI.
Version history
A run uses the live version unless the request names another one with version.
Manage this API
Only your workspace sees this part.
Automatic repair
Off: a rebuilt version is stored and waits for you in the version history.
Delete this API
Removes the API, its versions and the saved records of its runs. Calls to its address then answer 404. Records already charged stay charged. This cannot be undone.