← Docs

Continent API

A continent by code, or every country in it.

Look up a continent by two-letter code. Country and postal hang off this layer.

By code

Pass a two-letter code: NA, EU, AF, AS, OC, SA, or AN. Name, region, population, and area come back.

GET
api.parseapi.com/continent/{code}
NA, EU, AF, AS, OC, SA, or AN. Name, region, population, area
curl "https://api.parseapi.com/continent/na" \
  -H "X-API-Key: YOUR_API_KEY"
{
  "continent": "NA",
  "name": "North America",
  "region": "Americas",
  "subregion": "Northern America",
  "population": 600000000,
  "area": 24709000,
  "emoji": "🌎"
}

Response fields

continent
Continent code (NA, EU, AF, AS, OC, SA, AN)
name
Common name
region
Broader region
subregion
UN subregion
population
Population estimate
area
Land area in km²
emoji
Continent emoji

Countries

Every country in a continent. Handy for region pickers and cascading forms.

GET
api.parseapi.com/continent/{code}/countries
Every country in a continent
curl "https://api.parseapi.com/continent/na/countries" \
  -H "X-API-Key: YOUR_API_KEY"
{
  "continent": "NA",
  "countries": [
    {
      "country": "CA",
      "name": "Canada"
    },
    {
      "country": "MX",
      "name": "Mexico"
    },
    {
      "country": "US",
      "name": "United States"
    },
    // ... 38 more
  ]
}

Response fields

continent
Continent code
countries[].country
ISO2 country code
countries[].name
Country name
countries[].emoji
Flag emoji

Questions? Email