Μετάβαση στο περιεχόμενο
GET /v1/port

A single port by WPI number or UN/LOCODE

Δοκιμάστε το ζωντανά

10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.

Προσαρμοσμένες κεφαλίδες (προαιρετικά)
api.oanor.com/seaports-api

Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.

Λάβετε ένα κλειδί API

Αποσπάσματα κώδικα

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

Παράδειγμα απόκρισης

Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.

{
    "data": {
        "id": "31140",
        "name": "Rotterdam",
        "region": "Netherlands",
        "country": "Netherlands",
        "shelter": "Fair",
        "alt_name": null,
        "latitude": 51.9,
        "longitude": 4.48333,
        "un_locode": "NL RTM",
        "facilities": {
            "roro": null,
            "medical": true,
            "wharves": true,
            "dry_dock": true,
            "container": null,
            "lng_terminal": null,
            "oil_terminal": null,
            "cranes_container": null
        },
        "harbor_use": null,
        "water_body": "North Sea; North Atlantic Ocean",
        "harbor_size": "Large",
        "harbor_type": "River (Basins)",
        "channel_depth_m": 11,
        "anchorage_depth_m": 11,
        "cargo_pier_depth_m": 6.4,
        "max_vessel_draft_m": null,
        "max_vessel_length_m": null,
        "pilotage_compulsory": true
    },
    "meta": {
        "timestamp": "2026-05-31T03:55:45.123Z",
        "request_id": "1cfeba99-f4fb-4df2-9340-3f7e847b8995"
    },
    "status": "ok",
    "message": "Port retrieved",
    "success": true
}