Naar de inhoud
GET /v1/countries

Countries with seaport counts

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

Voorbeeldrespons

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

{
    "data": {
        "count": 232,
        "countries": [
            {
                "ports": 1765,
                "country": "US"
            },
            {
                "ports": 1562,
                "country": "JP"
            },
            {
                "ports": 1350,
                "country": "GB"
            },
            {
                "ports": 879,
                "country": "DE"
            },
            {
                "ports": 808,
                "country": "FR"
            },
            {
                "ports": 765,
                "country": "CN"
            },
            {
                "ports": 741,
                "country": "NO"
            },
            {
                "ports": 580,
                "country": "CA"
            },
            {
                "ports": 531,
                "country": "NL"
            },
            {
                "ports": 484,
                "country": "BE"
            },
            {
                "ports": 432,
                "country": "ES"
            },
            {
                "ports": 377,
                "country": "AU"
            },
            {
                "ports": 377,
                "country": "PH"
            },
            {
                "ports": 358,
                "country": "GR"
            },
            {
                "ports": 327,
                "country": "IT"
            },
            {
                "ports": 317,
                "country": "SE"
            },
            {
                "ports": 297,
                "country": "ID"
            },
            {
                "ports": 282,
                "country": "IN"
            },
            {
                "ports": 259,
                "country": "RU"
            },
            {
                "ports": 239,
                "country": "DK"
            },
            {
                "ports": 231,
                "country": "FI"
            },
            {
                "ports": 221,
                "country": "EE"
            },
            {
                "ports": 206,
                "country": "BR"
            },
            {
                "ports": 176,
                "country": "MY"
            },
            {
                "ports": 170,
                "country": "HR"
            },
            {
                "ports": 142,
                "country": "TR"
            },
            {
                "ports": 132,
                "country": "VN"
            },
            {
                "ports": 131,
                "country": "IE"
            },
            {
                "ports": 123,
                "country": "PT"
            },
            {
                "ports": 111,
                "country": "AT"
            },
            {
                "ports": 110,
                "country": "MX"
            },
            {
                "ports": 105,
                "country": "CL"
            },
            {
          
…