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

List regions with country counts and total population

GEThttps://api.testingapis.com/api/Countries/regionsSign in to see this endpoint's URL

Responses

200
Objects of the form { region, countries, population }, sorted by region.

Example

Request
curl -X GET "https://api.testingapis.com/api/Countries/regions" \
  -H "X-TestingApis-Key: YOUR_API_KEY"
Response200 OK
[
  {"region": "Africa", "countries": 5, "population": 472180000},
  {"region": "Americas", "countries": 9, "population": 1804180000},
  "… 3 more items"
]

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.