/v1/search
Search HS codes by product/description
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
curl "https://api.oanor.com/hscodes-api/v1/search" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/hscodes-api/v1/search", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/hscodes-api/v1/search");
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/search",
headers={"x-oanor-key": "oanor_test_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"data": {
"count": 12,
"level": null,
"limit": 20,
"query": "coffee",
"total": 12,
"offset": 0,
"results": [
{
"level": "2",
"hscode": "09",
"parent": "TOTAL",
"section": "II",
"description": "Coffee, tea, mate and spices"
},
{
"level": "4",
"hscode": "0901",
"parent": "09",
"section": "II",
"description": "Coffee, whether or not roasted or decaffeinated; husks and skins; coffee substitutes containing coffee in any proportion"
},
{
"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"
},
{
"level": "4",
"hscode": "2101",
"parent": "21",
"section": "IV",
"description": "Extracts, essences, concentrates of coffee, tea or mate; preparations with a basis of these products or with a basis of coffee, tea or mate; roasted chicory and other roasted coffee substitutes and extracts, essences and concentrates thereof"
},
{
"level": "6",
"hscode": "210111",
"parent": "2101",
"section": "IV",
"description": "Extracts, essences and concentrates; of coffee, and preparations with a basis of these extracts, essences or concentrates or with a basis of coffee"
},
{
"level": "6",
"hscode": "210112",
"parent": "2101",
"section": "IV",
"description": "Preparations with a basis of extracts, essences or concentrates or with a basis of coffee"
},
{
"level": "6"
…