/v1/children
The direct sub-codes of an HS code
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
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_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"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
}