Continent API

A continent by code, or every country in it.

Look up a continent by two-letter code, or list its countries.

List continentsCopy link

GET /continentAPI Explorer ↗

Read the continent catalog

Parameters

langstring · query · optional

Display language as one BCP 47 tag, such as fr or zh-Hant. Changes supported display labels only; IDs, codes, native names, facts, parsing and deep access stay unchanged. Omit for the original response. Unsupported regions use the supported language base; unsupported languages or scripts use English. Missing labels retain their source value. Accept-Language is not read automatically. Available on the current API contract; frozen 1.0.0 is unchanged.

Length: 2 to 64 characters

By codeCopy link

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

GET /continent/{code}API Explorer ↗

NA, EU, AF, AS, OC, SA, or AN. Name, region, population, area

Parameters

codestring · path · required

Two-letter continent code

Values: NA, EU, AF, AS, OC, SA, AN

langstring · query · optional

Display language as one BCP 47 tag, such as fr or zh-Hant. Changes supported display labels only; IDs, codes, native names, facts, parsing and deep access stay unchanged. Omit for the original response. Unsupported regions use the supported language base; unsupported languages or scripts use English. Missing labels retain their source value. Accept-Language is not read automatically. Available on the current API contract; frozen 1.0.0 is unchanged.

Length: 2 to 64 characters

Request

import { parseAPI } from '@parseapi/sdk';

const parse = parseAPI("YOUR_API_KEY");
const result = await parse.continent("na");
console.log(result);
Example response
{
  "continent": "NA",
  "name": "North America",
  "region": "Americas",
  "subregion": "Northern America",
  "population": 600000000,
  "area": 24709000,
  "emoji": "🌎"
}

Response fields

continentLink to continentstring
Continent code (NA, EU, AF, AS, OC, SA, AN)
nameLink to namestring or null
Common name
regionLink to regionstring or null
Broader region
subregionLink to subregionstring or null
UN subregion
populationLink to populationinteger or null
Population estimate
areaLink to areainteger or null
Total area in km²
emojiLink to emojistring or null
Continent emoji

CountriesCopy link

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

GET /continent/{code}/countriesAPI Explorer ↗

Every country in a continent

Parameters

codestring · path · required

Two-letter continent code

Values: NA, EU, AF, AS, OC, SA, AN

langstring · query · optional

Display language as one BCP 47 tag, such as fr or zh-Hant. Changes supported display labels only; IDs, codes, native names, facts, parsing and deep access stay unchanged. Omit for the original response. Unsupported regions use the supported language base; unsupported languages or scripts use English. Missing labels retain their source value. Accept-Language is not read automatically. Available on the current API contract; frozen 1.0.0 is unchanged.

Length: 2 to 64 characters

Request

import { parseAPI } from '@parseapi/sdk';

const parse = parseAPI("YOUR_API_KEY");
const result = await parse.continent.countries("na");
console.log(result);
Example response
{
  "continent": "NA",
  "countries": [
    {
      "country": "CA",
      "name": "Canada",
      "flag": "🇨🇦",
      "calling_code": "+1"
    },
    {
      "country": "MX",
      "name": "Mexico",
      "flag": "🇲🇽",
      "calling_code": "+52"
    },
    {
      "country": "US",
      "name": "United States",
      "flag": "🇺🇸",
      "calling_code": "+1"
    }
  ]
}

Response fields

continentLink to continentstring
Continent code
countriesLink to countriesarray
Every country in the continent
countries[].countryLink to countries[].countrystring or null
ISO2 country code
countries[].nameLink to countries[].namestring or null
Country name
countries[].flagLink to countries[].flagstring or null
Flag emoji
countries[].calling_codeLink to countries[].calling_codestring or null
International calling code with plus (+1, +44)

Display languageCopy link

Pass lang with a language tag such as fr, pt-BR, or zh-Hant. Continent name; country names and currency names in the countries list. All 7 continents and 250 country records have names in each of the 33 choices.

Omitting lang preserves the original response. Codes, IDs, numeric facts and native-name fields stay unchanged. Missing translations keep their existing source value; unknown values stay null. A preserved name_local may equal the translated name.

Send a chosen browser preference explicitly, for example { lang: navigator.language } in your JavaScript SDK options. The API does not read Accept-Language automatically. Unsupported regions fall back to their supported base language; unsupported languages or scripts use English. Empty, invalid or repeated tags return 400.

Content-Language identifies languages used in translated display fields and known English fallbacks. Display language is available on API 2.1.0; requests selecting frozen 1.0.0 retain their original contract. See API versions.

33 display language choices

Language tagLanguage
enEnglish
arالعربية
cacatalà
hrhrvatski
csčeština
dadansk
nlNederlands
fisuomi
frfrançais
deDeutsch
elΕλληνικά
heעברית
hiहिन्दी
humagyar
idIndonesia
ititaliano
ja日本語
ko한국어
msMelayu
nbnorsk bokmål
plpolski
ptportuguês
roromână
ruрусский
zh-Hans简体中文
skslovenčina
esespañol
svsvenska
thไทย
zh-Hant繁體中文
trTürkçe
ukукраїнська
viTiếng Việt