Ir al contenido
GET /v1/search

Search container codes

Pruébalo en vivo

10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.

Encabezados personalizados (opcional)
api.oanor.com/containercodes-api

Funciona. Consigue una clave API y úsala en tu proyecto.

Obtener una clave API

Fragmentos de código

curl "https://api.oanor.com/containercodes-api/v1/search" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/containercodes-api/v1/search", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/containercodes-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/containercodes-api/v1/search",
    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,
        "query": "reefer",
        "total": 5,
        "containers": [
            {
                "code": "22R1",
                "group": "22RT",
                "height_ft": 8.5,
                "length_ft": 20,
                "description": "Reefer"
            },
            {
                "code": "42R1",
                "group": "42RT",
                "height_ft": 8.5,
                "length_ft": 40,
                "description": "Reefer"
            },
            {
                "code": "4534",
                "group": "45RT",
                "height_ft": 9.5,
                "length_ft": 40,
                "description": "HIGHCUBE INTEGRATED REEFER"
            },
            {
                "code": "45R1",
                "group": "45RT",
                "height_ft": 9.5,
                "length_ft": 40,
                "description": "Reefer High Cube"
            },
            {
                "code": "L5R1",
                "group": "L5RT",
                "height_ft": 9.5,
                "length_ft": 45,
                "description": "45 Reefer High Cube"
            }
        ]
    },
    "meta": {
        "timestamp": "2026-06-08T18:25:08.011Z",
        "request_id": "ef756a2e-c1b8-4c91-890d-f35cd94a6538"
    },
    "status": "ok",
    "message": "Search results retrieved successfully",
    "success": true
}