/v1/countries
Countries with seaport counts
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
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_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"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"
},
{
…