TestingAPIs is still being built. If something breaks, email support@testingapis.com.

List the countries in a region

GEThttps://api.testingapis.com/api/Countries/region/{name}Sign in to see this endpoint's URL

Parameters 1

NameTypeDescription
namerequiredpath · stringRegion name, case-insensitive, e.g. europe.

Responses

200
Matching countries (an empty array for an unknown region).

Example

Request
curl -X GET "https://api.testingapis.com/api/Countries/region/Americas" \
  -H "X-TestingApis-Key: YOUR_API_KEY"
Response200 OK
[
  {
    "id": 1,
    "name": "United States",
    "code": "US",
    "code3": "USA",
    "capital": "Washington, D.C.",
    "region": "Americas",
    "population": 331900000,
    "area": 9833520,
    "currency": {"code": "USD", "name": "United States dollar", "symbol": "$"},
    "languages": ["English"],
    "callingCode": "+1",
    "flag": "🇺🇸",
… (19 more lines)

Sign in to see the details

The parameters, request and response examples and the live Try it panel for this endpoint are for signed-in members. Accounts are free and take a few seconds to create.