Turn destination codes into places travelers recognize. Retrieve city names, country and state details, coordinates and time zones, or download the directory to power destination search in your travel product.
City name or partial substring for search matching
dump
Conditional
0 or 1
Integer
0
Set to 1 to export the complete database (ignores other conditional parameters above)
response_type
Optional
JSON or XML or CSV
String
JSON
Response format: JSON, XML, or CSV (CSV initiates file download)
Response fields
Retrieve city identities, geographic details, destination images and demographic fields. Linked fields open focused guides with examples and integration advice.
Use city names, country context and popularity values to order suggestions in your own destination search.
Create richer destination experiences
Use available licensed city photos to illustrate destination cards and guides.
Connect city and airport choices
Support city-level searches alongside individual airports, with clear labels for each option.
Frequently asked questions
Can I use city popularity to order destination suggestions?
Yes. Use popularity as a relative ordering signal in your application; higher values indicate higher destination popularity. Combine it with your own text matching and location context. The field does not provide personalized recommendations or a complete autocomplete algorithm.
Are destination photos included, and can I use them commercially?
The city_photo field provides available licensed destination-image URLs for commercial use within your GEO Essentials license. Coverage is not universal: check for a populated URL and provide a fallback for cities without an image. Use the images within the usage rights agreed for your product.
How is city information kept up to date?
Airhex aggregates and verifies geographic data from multiple sources and reviews it daily. Retain airhex_id and updated when importing city records, and refresh your local directory periodically. Daily review does not mean every city field changes each day.
Can I store the city directory locally?
Yes, with an appropriate GEO Essentials license. Use dump=1 and response_type to export JSON, XML or CSV. Retain airhex_id and updated and periodically refresh your local records.
Does a city record contain all its airports?
No. Use the Airports API with city_code to retrieve associated airport records. Confirm how your flight supplier handles city-level searches before offering an “all airports” option.
How should I handle cities with similar names?
Name searches support partial matching. Compare name, country_code and available state fields rather than automatically selecting the first result.
Are state details available for every country?
state_short and state_full apply to cities in the United States, Canada and Australia. Handle empty values and use city name and country as the basic display context.
Which parameter accepts an IATA city code?
Use code, such as code=NYC. The Cities API does not use iata as its lookup parameter.
How should I use city time zones?
Use timezone with the relevant timestamp and current time zone rules. Do not treat the gmt offset as a fixed offset for every date.
Does a listed city have bookable flights?
The directory provides destination reference data. It does not establish route coverage, fares or availability; obtain those from your booking supplier.
Help travelers discover their next destination
Build clearer destination suggestions and richer city displays with city codes, popularity data and available licensed photos.