Aller au contenu
GET /v1/group

All codes in an ISO group

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/containercodes-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

curl "https://api.oanor.com/containercodes-api/v1/group" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/containercodes-api/v1/group", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/containercodes-api/v1/group");
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/containercodes-api/v1/group",
    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": 69,
        "group": "22GP",
        "containers": [
            {
                "code": "1000",
                "group": "22GP",
                "height_ft": 8,
                "length_ft": 10,
                "description": "Standard Dry"
            },
            {
                "code": "10G0",
                "group": "22GP",
                "height_ft": 8,
                "length_ft": 10,
                "description": "DRY CARGO/GENERAL PURPOSE"
            },
            {
                "code": "1200",
                "group": "22GP",
                "height_ft": 8.5,
                "length_ft": 10,
                "description": "Standard Dry"
            },
            {
                "code": "12G0",
                "group": "22GP",
                "height_ft": 8.5,
                "length_ft": 10,
                "description": "DRY CARGO/GENERAL PURPOSE"
            },
            {
                "code": "2000",
                "group": "22GP",
                "height_ft": 8,
                "length_ft": 20,
                "description": "Standard Dry"
            },
            {
                "code": "2001",
                "group": "22GP",
                "height_ft": 8,
                "length_ft": 20,
                "description": "Standard Dry"
            },
            {
                "code": "2002",
                "group": "22GP",
                "height_ft": 8,
                "length_ft": 20,
                "description": "Standard Dry"
            },
            {
                "code": "2003",
                "group": "22GP",
                "height_ft": 8,
                "length_ft": 20,
                "description": "Standard Dry"
            },
            {
                "code": "2004",
                "group": "22GP",
                "height_ft": 8,
                "length_ft": 20,
                "description": "Standard Dry"
            },
            {
                "code": "2025",
                "group": "22GP",
                "height_ft": 8,
                "length_ft": 20,
                "description": "Livestock Carrier"
            },
            {
                "code": "20G0",
                "group": "22GP",
                "height_ft": 8,
                "length_ft": 20,
                "description": "Standard Dry"
            },
            {
                "code": "20G1",
                "group": "22GP",
                "height_ft": 8,
                "length_ft": 20,
                "description": "Standard Dry"
            },
            {
                "code": "20G2",
                "group": "22GP",
                "height_ft": 8,
                "length_ft": 20,
                "description": "Standard Dry"
            },
            {
                "code": "20G3",
                "group": "22GP",
                "height_ft": 8,
                "length_ft": 20,
                "description": "Standard Dry"
            },
         
…