Airport Search
Search airport-level IATA codes by code, airport name, city, or country. Include X-Api-Key the same way you do for fare requests.
Common metro-style queries also work when they map cleanly to airports, for example new york, london, bay area, or dc.
GET/api/airports
Query parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| q | string | Yes | Search query. Use at least 2 characters. |
| limit | integer | No | Maximum number of matches to return. Default: 10. Max: 20. |
Results are airport codes only, not city or metro codes. For fare searches, use airport IATA codes like SFO or LHR.
Example
curl "https://ignav.com/api/airports?q=san+fran&limit=5" \
-H "X-Api-Key: YOUR_API_KEY"Response
[
{
"code": "SFO",
"name": "San Francisco International Airport",
"city": "San Francisco",
"country": "US"
},
{
"code": "SJC",
"name": "Norman Y. Mineta San Jose International Airport",
"city": "San Jose",
"country": "US"
}
]Related docs
Ready to get started?
Create a free account to get your API key, or try the playground — no signup required.