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/airportsList airports with filters and paging.
| Parameter | In | Type | Rules |
|---|---|---|---|
| page | query | integer | min 1 · default 1 |
| limit | query | integer | 1 to 200 · default 50 |
| country | query | string | ISO 3166-1 alpha-2 |
| q | query | string | 2 to 100 chars |
| type | query | string | None |
| iata | query | string | None |
curl 'https://api.apifor.dev/v1/airports' \
-G -d country=US -d limit=1 \
-H 'x-api-key: YOUR_API_KEY'{
"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 parameters404Record not found500Dataset unavailable
GET
/v1/airports/{id}Find airports by identifier.
| Parameter | In | Type | Rules |
|---|---|---|---|
| id * | path | string | None |
curl 'https://api.apifor.dev/v1/airports/{id}' \
-H 'x-api-key: YOUR_API_KEY'{
"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 parameters404Record not found500Dataset unavailable