Loading...
Animal Detect logo

Countries

Free endpoint
GET /api/v1/countries

Returns flat country data with optional search and region filter.

Try in Playground

Optional 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
}