/v1/parents
A term's direct parents
Live testen
10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.
Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.
API-Key holenCode-Snippets
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_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten 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
}