/v1/code
An ATC code with ancestors, children & DDDs
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/atc-api/v1/code" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/atc-api/v1/code", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/atc-api/v1/code");
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/atc-api/v1/code",
headers={"x-oanor-key": "oanor_test_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.
{
"data": {
"code": "A10BA02",
"ddds": [
{
"ddd": "2",
"uom": "g",
"route": "O"
}
],
"name": "metformin",
"level": "chemical_substance",
"parent": "A10BA",
"children": [],
"ancestors": [
{
"code": "A",
"name": "ALIMENTARY TRACT AND METABOLISM",
"level": "anatomical_main_group"
},
{
"code": "A10",
"name": "DRUGS USED IN DIABETES",
"level": "therapeutic_subgroup"
},
{
"code": "A10B",
"name": "BLOOD GLUCOSE LOWERING DRUGS, EXCL. INSULINS",
"level": "pharmacological_subgroup"
},
{
"code": "A10BA",
"name": "Biguanides",
"level": "chemical_subgroup"
}
],
"level_num": 5,
"children_count": 0
},
"meta": {
"timestamp": "2026-05-31T06:28:01.155Z",
"request_id": "f8e50b3a-5d73-4f30-8bb0-2419e16b83e2"
},
"status": "ok",
"message": "ATC code retrieved",
"success": true
}