Aviation Data

Get airport

Look up a single airport by IATA code or internal ID. For an ICAO code, use /icao/{icao}.

GET/v1/aviation/airports/{id}Requires X-API-Key

One airport by IATA code or Norba id, in either case. The id is the lowercase IATA code, or another identifier for an airfield without one.

An ICAO code is not resolved here (404): use /icao/{icao}. Unknown: 404 not_found.

Request example

curl --request GET \
  --url https://api.norba.io/v1/aviation/airports/{id} \
  --header "X-API-Key: $NORBA_KEY"

Response example

Response example
{
  "data": {
    "id": "mad",
    "name": "Adolfo Suárez Madrid–Barajas Airport",
    "iata_code": "MAD",
    "icao_code": "LEMD",
    "city": "Madrid",
    "country": "ES",
    "region": "ES-MD",
    "latitude": 40.493407,
    "longitude": -3.572249,
    "elevation_ft": 1998,
    "timezone": "Europe/Madrid",
    "airport_type": "large_airport",
    "scheduled_service": true,
    "metro_code": "MAD",
    "location_type": "A",
    "page_rank": 0.24,
    "served_by_schedule": true
  },
  "meta": {
    "request_id": "2db6c88b57479527"
  },
  "errors": []
}

Authorization

X-API-KeystringRequired

Your API key from the dashboard. A missing or invalid key answers 401; see Authentication.

Path parameters

idstringRequired

IATA code or internal id.

Example: MAD

Error codes

404

not_found — no airport with that IATA code or id.

GET /v1/aviation/airports/{id} — Get airport | Norba API