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.

Try it
Ready-made, maintained by usRecords, 8 fieldsv1.0

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

Search
Words to look for in term labels, synonyms and definitions.
Example: diabetes
Ontologyoptional
Only terms from this ontology, by its short name, such as hp, go, efo, mondo, doid or chebi.
Example: hp

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
Endpoint
POSThttps://pullrow.dev/v1/apis/ontology-term-search/run
  • Small runs answer in the same request; longer ones answer 202 with a run to poll.
  • fields returns only the fields you name. The examples send the ones picked on this page.
  • Idempotency-Key is optional. A retry with it is never charged twice.
  • You pay for records returned. Zero records cost zero.

Every run option, explained

Calling it needs a key
10,000 free records of this API to start. No card.
curl
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.

searchtextrequired
Words to look for in term labels, synonyms and definitions.
example: diabetes
ontologytext
Only terms from this ontology, by its short name, such as hp, go, efo, mondo, doid or chebi.
example: hp

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

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 nameTypeShown on this page asFilled
idtextID (hidden)3 of 3
urllinkLink3 of 3
labeltextLabel3 of 3
ontologytextOntology3 of 3
descriptiontextDescription3 of 3
synonymslistSynonyms3 of 3
term_typetextTerm type3 of 3
irilinkIri3 of 3

How it reads the site

Runs on a reader we built and maintain by hand for this site.

Sample records

Sample records
RecordLabelOntologyDescriptionSynonymsTerm typeLinkIri
1Type II diabetes mellitushpPersons 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 mellitusclassebi.ac.uk/ols4/ontologies/hp/classes/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FHP_0005978purl.obolibrary.org/obo/HP_0005978
2Type I diabetes mellitushpThe 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 diabetesclassebi.ac.uk/ols4/ontologies/hp/classes/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FHP_0100651purl.obolibrary.org/obo/HP_0100651
3Insulin-resistant diabetes mellitushpA 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 diabetesclassebi.ac.uk/ols4/ontologies/hp/classes/http%253A%252F%252Fpurl.obolibrary.org%252Fobo%252FHP_0000831purl.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.
Known limits
  • 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.