v1

latestOpenAPI 3.0.02026-07-1314094.0 KB

Get the full information of a country

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.

get/lookup/country

Query parameters

CountryCodestring required
Example:PS

The ISO 3166-1 alpha-2 format of the country code.

paramsstring
Example:language

The params command is used to determine the data you need in the response.

formatstring
Example:JSON

The format command is used to get a response in a specific format.

modestring
Example:test

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.

callbackstring
Example:my_function_name

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.

Response

OK