Airports All docs

Airports API Reference

2 routes under /v1/airports. Base URL https://api.apifor.dev, authenticated with x-api-key, one credit per request. Coverage and licence are on the Airports page.

GET/v1/airports

List airports with filters and paging.

ParameterInTypeRules
pagequeryintegermin 1 · default 1
limitqueryinteger1 to 200 · default 50
countryquerystringISO 3166-1 alpha-2
qquerystring2 to 100 chars
typequerystringNone
iataquerystringNone
GET/v1/airports
curl 'https://api.apifor.dev/v1/airports' \
  -G -d country=US -d limit=1 \
  -H 'x-api-key: YOUR_API_KEY'
Example response · 200
{
  "success": true,
  "data": [
    {
      "ident": "00AA",
      "icao": null,
      "iata": null,
      "gps_code": "00AA",
      "local_code": "00AA",
      "name": "Aero B Ranch Airport",
      "type": "small_airport",
      "lat": 38.704022,
      "lng": -101.473911,
      "elevation_ft": 3435,
      "continent": "NA",
      "country": "US",
      "country_name": "United States",
      "region": "US-KS",
      "region_name": "Kansas",
      "municipality": "Leoti",
      "scheduled_service": 0,
      "home_link": null,
      "wikipedia_link": null
    }
  ]
}
  • 200Successful response. Pagination is explicit; no silent truncation.
  • 400Invalid query parameters
  • 404Record not found
  • 500Dataset unavailable
GET/v1/airports/{id}

Find airports by identifier.

ParameterInTypeRules
id *pathstringNone
GET/v1/airports/{id}
curl 'https://api.apifor.dev/v1/airports/{id}' \
  -H 'x-api-key: YOUR_API_KEY'
Example response · 200
{
  "success": true,
  "data": {
    "ident": "00AA",
    "icao": null,
    "iata": null,
    "gps_code": "00AA",
    "local_code": "00AA",
    "name": "Aero B Ranch Airport",
    "type": "small_airport",
    "lat": 38.704022,
    "lng": -101.473911,
    "elevation_ft": 3435,
    "continent": "NA",
    "country": "US",
    "country_name": "United States",
    "region": "US-KS",
    "region_name": "Kansas",
    "municipality": "Leoti",
    "scheduled_service": 0,
    "home_link": null,
    "wikipedia_link": null
  }
}
  • 200Successful response. Pagination is explicit; no silent truncation.
  • 400Invalid query parameters
  • 404Record not found
  • 500Dataset unavailable

Error handling · Rate limits · Source licences