Country Lookup
This method allows you to retrieve detailed information about a country by providing its country code in the request.
The API returns valuable data, such as the country’s name, capital, population, region, and other relevant attributes, enabling you to enrich your applications with geographic context and enhance user experiences.
Query Parameters
The ISO 3166-1 alpha-2
format of the country code. Learn more
Sample value: GB
The params command is used to determine the data you need in the response.
Expected values: language
, flag
, currency
, and/or timezone
.
Sample value: language,currency,timezone
The format command is used to get a response in a specific format.
Expected values: JSON
, XML
, CSV
, or Newline
For more information please refer to Response Format.
The mode command is used to in the development stage to simulate the integration process before releasing it to the production environment.
Expected values: live
, or test
.
For more information please refer to Development Environment.
The callback command can help you make the response as a JSONP format.
Expected values: any name that can be used as a function name in Javascript, e.g: myFunctionName
.
For more information please refer to JSONP Callback.
Was this page helpful?