Naar de inhoud
GET /v1/country

Airports in a 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/airports-api

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

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

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

{
    "data": {
        "count": 50,
        "country": "Germany",
        "airports": [
            {
                "city": "Bautzen",
                "iata": null,
                "icao": "EDAB",
                "name": "Flugplatz Bautzen",
                "type": "airport",
                "country": "Germany",
                "latitude": 51.19361,
                "timezone": "Europe/Berlin",
                "longitude": 14.51972,
                "utc_offset": 1,
                "altitude_ft": 568
            },
            {
                "city": "Altenburg",
                "iata": "AOC",
                "icao": "EDAC",
                "name": "Altenburg-Nobitz Airport",
                "type": "airport",
                "country": "Germany",
                "latitude": 50.98195,
                "timezone": "Europe/Berlin",
                "longitude": 12.50639,
                "utc_offset": 1,
                "altitude_ft": 640
            },
            {
                "city": "Dessau",
                "iata": null,
                "icao": "EDAD",
                "name": "Dessau Airfield",
                "type": "airport",
                "country": "Germany",
                "latitude": 51.83169,
                "timezone": "Europe/Berlin",
                "longitude": 12.19096,
                "utc_offset": 1,
                "altitude_ft": 187
            },
            {
                "city": "Eisenhuettenstadt",
                "iata": null,
                "icao": "EDAE",
                "name": "Eisenhüttenstadt Airfield",
                "type": "airport",
                "country": "Germany",
                "latitude": 52.19586,
                "timezone": "Europe/Berlin",
                "longitude": 14.58753,
                "utc_offset": 1,
                "altitude_ft": 144
            },
            {
                "city": "Suhl",
                "iata": null,
                "icao": "EDAK",
                "name": "Großenhain Airport",
                "type": "airport",
                "country": "Germany",
                "latitude": 51.30806,
                "timezone": "Europe/Berlin",
                "longitude": 13.55556,
                "utc_offset": 1,
                "altitude_ft": 417
            },
            {
                "city": "Muehlhausen",
                "iata": null,
                "icao": "EDAM",
                "name": "Merseburg Airport",
                "type": "airport",
                "country": "Germany",
                "latitude": 51.36306,
                "timezone": "Europe/Berlin",
                "longitude": 11.94083,
                "utc_offset": 1,
                "altitude_ft": 341
            },
            {
                "city": "Halle",
                "iata": null,
                "icao": "EDAQ",
                "name": "Halle-Oppin Airport",
                "type": "airport",
                "country": "Germany",
                "latitude": 51.55222,
             
…