Keep country information consistent across your travel product. Match country identifiers to names and geographic details, or download the directory for destination filters, forms and reporting.
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 country identifiers, names and geographic reference details from the same record. Use the documented fields to keep country mappings consistent across your systems.
Field
Example
Description
airhex_id
735
Unique permanent record identifier
updated
2026-06-16 14:48:41
Date and time the record was last updated
iso
840
ISO 3166-1 numeric country code
code2
US
ISO 3166-1 Alpha-2 two-letter country code
code3
USA
ISO 3166-1 Alpha-3 three-letter country code
name
United States
Country name
capital_code
WAS
Three-letter IATA code for the country's capital city
currency_code
USD
Three-letter ISO currency code
region
North America
Geographical region of the country
continent_code
NA
Two-letter continent code
population
310232863
Country’s population count
phone_code
+1
International country dialing code
Full response examples
These examples show the complete the United States record in JSON and XML. Use response_type to select the output format.
Use recognizable country names and standardized identifiers across forms and destination filters.
Add useful destination context
Include currency and calling-code information in country guides and travel-planning screens.
Connect geographic data across your product
Match countries with city, airport and supplier records for consistent filtering and reporting.
Frequently asked questions
How does country data connect with airports and cities?
The Cities and Airports APIs return country_code as a two-letter ISO identifier. Match that value to code2 in the Countries API to retrieve country names and other reference details. Retain each record’s own airhex_id for identity.
Which country details can I show in my travel product?
Alongside country names and ISO identifiers, the response includes currency_code, phone_code, capital_code, region, continent_code and population. Use these for destination context and geographic grouping. Currency codes are reference values, not exchange rates; capital_code is an identifier rather than a display name.
How is country information kept up to date?
Airhex aggregates and verifies geographic data from multiple sources and reviews it daily. Retain airhex_id and updated and refresh your local directory periodically. Daily review does not mean every country field changes each day.
Which country-code formats can I look up?
Use code2 for two-letter ISO Alpha-2 codes, code3 for three-letter Alpha-3 codes, or iso for numeric ISO country codes. The response includes the corresponding identifiers for the country.
Can I find a country by name?
Yes. The name parameter supports partial matching. Compare the returned country names and codes before selecting a record.
Can I download and store the country directory?
Yes, with an appropriate GEO Essentials license. Set dump=1 and select JSON, XML or CSV with response_type. Retain airhex_id and updated and refresh your local copy periodically.
Does this API provide visa or entry requirements?
No. It provides country reference data. Obtain current visa rules, entry requirements and travel restrictions from an appropriate specialist or official source.
Bring consistent country information into every travel journey
Connect destination filters, traveler forms and country guides with maintained country codes and useful destination details.