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.
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 concrete airport codes. Fare searches accept those codes, plus supported metro IATA codes such as PAR, LON, MIL, or SAO. Itinerary segments always identify the concrete airports used. Codes for major commercial airports, such as IST, identify that airport.
If you already have an official metro code, send it directly to a fare search. You do not need to call this endpoint first.
For autocomplete, wait for at least 2 characters, debounce typing, and cache repeated queries. If the UI runs in a browser, proxy the request through your server so the API key stays private.
Example
curl "https://ignav.com/api/airports?q=san+fran&limit=5" \
-H "X-Api-Key: YOUR_API_KEY"[
{
"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.