Get the full information of a country
Changed onThis 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.
Request
- Base URLhttps://v2.greipapi.com
- URLhttps://v2.greipapi.com/lookup/countries/{country_code}
- AuthHTTP bearer
Path parameters
Query parameters
The params command selects optional country modules. A base geo object is always returned.
Optional modules: language, flag, and/or currency.
Sample value: language,currency,flag.
The format command is used to get a response in a specific 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.
The user_id query parameter identifies requests from specific users for monitoring in the Events page. See the user identifier options page for details.
Response
OK
Example response
{
"success": true,
"execution_ms": 42
}Changes
- info
api tag
Lookupadded - info
added the media type
application/jsonfor the response with the status
- info
- info
endpoint added
- info