Zum Inhalt springen
GET /v1/children

The direct sub-codes of an HS code

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/hscodes-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "count": 5,
        "hscode": "0901",
        "children": [
            {
                "level": "6",
                "hscode": "090111",
                "parent": "0901",
                "section": "II",
                "description": "Coffee; not roasted or decaffeinated"
            },
            {
                "level": "6",
                "hscode": "090112",
                "parent": "0901",
                "section": "II",
                "description": "Coffee; decaffeinated, not roasted"
            },
            {
                "level": "6",
                "hscode": "090121",
                "parent": "0901",
                "section": "II",
                "description": "Coffee; roasted, not decaffeinated"
            },
            {
                "level": "6",
                "hscode": "090122",
                "parent": "0901",
                "section": "II",
                "description": "Coffee; roasted, decaffeinated"
            },
            {
                "level": "6",
                "hscode": "090190",
                "parent": "0901",
                "section": "II",
                "description": "Coffee; husks and skins, coffee substitutes containing coffee in any proportion"
            }
        ],
        "description": "Coffee, whether or not roasted or decaffeinated; husks and skins; coffee substitutes containing coffee in any proportion"
    },
    "meta": {
        "timestamp": "2026-05-31T02:53:35.048Z",
        "request_id": "8f2bf873-c4fb-4017-a911-cf6ec1f3287a"
    },
    "status": "ok",
    "message": "Children retrieved",
    "success": true
}