Naar de inhoud
GET /v1/search

Search seaports by name and country

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/ports-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "count": 1,
        "limit": 20,
        "total": 1,
        "offset": 0,
        "filters": {
            "q": "rotterdam",
            "country": "NL"
        },
        "results": [
            {
                "name": "Rotterdam",
                "locode": "NLRTM",
                "country": "NL",
                "latitude": 51.9167,
                "longitude": 4.5,
                "connections": {
                    "rail": true,
                    "road": true,
                    "airport": true
                },
                "subdivision": "ZH",
                "country_name": "The Netherlands"
            }
        ]
    },
    "meta": {
        "timestamp": "2026-05-31T00:48:52.223Z",
        "request_id": "3484e989-50ff-4019-9432-28831a25338e"
    },
    "status": "ok",
    "message": "Search completed",
    "success": true
}