Skip to content
GET /v1/children

A term's direct children

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/ontology-api

It works. Grab an API key and use it in your project.

Get an API key

Code snippets

curl "https://api.oanor.com/ontology-api/v1/children" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/ontology-api/v1/children", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/ontology-api/v1/children");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/ontology-api/v1/children",
    headers={"x-oanor-key": "oanor_test_..."}
)

Example response

A real response from this endpoint, captured by the latest health check.

{
    "data": {
        "term": "MONDO:0005148",
        "count": 6,
        "children": [
            {
                "iri": "http://purl.obolibrary.org/obo/MONDO_0014488",
                "label": "diabetes mellitus, noninsulin-dependent, 5",
                "obo_id": "MONDO:0014488",
                "ontology": "mondo",
                "synonyms": [
                    "diabetes mellitus, noninsulin-dependent, type 5",
                    "NIDDM5",
                    "TBC1D4 type 2 diabetes mellitus",
                    "diabetes mellitus, noninsulin-dependent, 5",
                    "type 2 diabetes mellitus caused by mutation in TBC1D4"
                ],
                "definition": "Any type 2 diabetes mellitus in which the cause of the disease is a mutation in the TBC1D4 gene.",
                "is_obsolete": false,
                "has_children": false,
                "term_replaced_by": null
            },
            {
                "iri": "http://purl.obolibrary.org/obo/MONDO_0011955",
                "label": "diabetes mellitus, noninsulin-dependent, 4",
                "obo_id": "MONDO:0011955",
                "ontology": "mondo",
                "synonyms": [
                    "diabetes mellitus, noninsulin-dependent, type 4",
                    "diabetes mellitus, noninsulin-dependent, 4"
                ],
                "definition": [],
                "is_obsolete": false,
                "has_children": false,
                "term_replaced_by": null
            },
            {
                "iri": "http://purl.obolibrary.org/obo/MONDO_0011363",
                "label": "diabetes mellitus, noninsulin-dependent, 3",
                "obo_id": "MONDO:0011363",
                "ontology": "mondo",
                "synonyms": [
                    "diabetes mellitus, noninsulin-dependent, type 3",
                    "NIDDM3",
                    "diabetes mellitus, noninsulin-dependent, 3",
                    "type 2 diabetes mellitus 3"
                ],
                "definition": [],
                "is_obsolete": false,
                "has_children": false,
                "term_replaced_by": null
            },
            {
                "iri": "http://purl.obolibrary.org/obo/MONDO_0011072",
                "label": "diabetes mellitus, noninsulin-dependent, 2",
                "obo_id": "MONDO:0011072",
                "ontology": "mondo",
                "synonyms": [
                    "NIDDM2",
                    "diabetes mellitus, noninsulin-dependent, 2"
                ],
                "definition": [],
                "is_obsolete": false,
                "has_children": false,
                "term_replaced_by": null
            },
            {
                "iri": "http://purl.obolibrary.org/obo/MONDO_0011027",
                "label": "diabetes mellitus, noninsulin-dependent, 1",
                "obo_id": "MONDO:0011027",
                "ontology": "mondo",
                "synonym
…