Naar de inhoud
GET /v1/parents

A term's direct parents

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/ontology-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

curl "https://api.oanor.com/ontology-api/v1/parents" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/ontology-api/v1/parents", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/ontology-api/v1/parents");
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/parents",
    headers={"x-oanor-key": "oanor_test_..."}
)

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "term": "MONDO:0005148",
        "count": 1,
        "parents": [
            {
                "iri": "http://purl.obolibrary.org/obo/MONDO_0005015",
                "label": "diabetes mellitus",
                "obo_id": "MONDO:0005015",
                "ontology": "mondo",
                "synonyms": [
                    "DM",
                    "diabetes mellitus (disease)",
                    "diabetes mellitus",
                    "diabetes"
                ],
                "definition": "A metabolic disorder characterized by abnormally high blood sugar levels due to diminished production of insulin or insulin resistance/desensitization.",
                "is_obsolete": false,
                "has_children": true,
                "term_replaced_by": null
            }
        ],
        "ontology": "mondo"
    },
    "meta": {
        "timestamp": "2026-06-01T08:14:01.070Z",
        "request_id": "7c623250-500c-44b3-87ee-8d20c0f149dd"
    },
    "status": "ok",
    "message": "Parents retrieved",
    "success": true
}