Search airports by IATA code
Find an airport's three-letter IATA code, for air freight.
search matches, ignoring case, anywhere in the country, city, IATA code or airport short name. Results are sorted by order_by and order. Only active airports are listed. Page with limit (at most 100) and offset; meta.pagination.total_count is the number of matches across every page.
Signed-in users need the corporate admin role.
API key scope required: rates:read.
Query Parameters
- Type: stringnullablesearch
Text to look for, matched anywhere in the fields the endpoint searches, ignoring case. Omit to list everything.
- Type: integerlimitgreater than:0max:100
How many results to return, 1 to 100.
- Type: integeroffsetmin:0
How many results to skip, for the next page: the previous offset plus limit.
- Type: "asc" or "desc"enumorder
Sort direction for order_by.
- Type: "created_at" or "updated_at"enumorder
_by Which date to sort by: when the record was added or last changed.
Responses
- application/json
- application/json
- application/json
- application/json
- application/json
- application/json
curl 'https://api-dev.highqube.ai/unlocations/iata_codes?search=Shanghai&limit=100&offset=0&order=asc&order_by=created_at' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN'
GET /unlocations/iata_codes?search=Chicago&limit=2
{
"success": true,
"message": "IATA codes fetched successfully",
"data": [
{
"id": 1,
"country_name": "United States",
"city_name": "Chicago",
"iata_code": "ORD",
"iata_name": "ORD",
"airport_name": "Chicago O'Hare International Airport",
"latitude": 41.9786,
"longitude": -87.9048,
"is_active": true,
"created_at": "2026-11-10T18:17:30.844087Z",
"updated_at": "2026-11-10T18:17:30.844087Z"
},
{
"id": 2,
"country_name": "United States",
"city_name": "Chicago",
"iata_code": "MDW",
"iata_name": "MDW",
"airport_name": "Chicago Midway International Airport",
"latitude": 41.7868,
"longitude": -87.7522,
"is_active": true,
"created_at": "2026-11-10T18:17:30.844087Z",
"updated_at": "2026-11-10T18:17:30.844087Z"
}
],
"errors": null,
"meta": {
"pagination": {
"limit": 2,
"offset": 0,
"total_count": 2,
"returned_count": 2,
"order_by": "created_at"
}
}
}
