Countries
Free endpointGET /api/v1/countriesReturns flat country data with optional search and region filter.
Try in PlaygroundOptional Parameters
search(string) Search by country name, CCA2, or CCA3.region(Americas | Europe | Africa | Asia | Oceania | Antarctic) Filter countries by region.
Status Codes
200Country list returned.
400Invalid query params.
401Invalid, missing, or revoked API key.
429Rate limit exceeded.
Node.js / Express
const response = await fetch(
'https://www.animaldetect.com/api/v1/countries?region=Europe',
{
headers: {
Authorization: 'Bearer ' + process.env.ANIMAL_DETECT_API_KEY,
},
}
)
const data = await response.json()Example Response
JSON
{
"countries": [
{
"name": "France",
"cca2": "FR",
"cca3": "FRA",
"region": "Europe"
}
],
"total": 1
}