Search by task, endpoint, field, or error.
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.
Parameters 2
- 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.
import { parseAPI } from '@parseapi/sdk';
const parse = parseAPI("YOUR_API_KEY");
const result = await parse.continent("na");
console.log(result);Run on your server with a secret key. Calling from a browser or app?
{
"continent": "NA",
"name": "North America",
"region": "Americas",
"subregion": "Northern America",
"population": 600000000,
"area": 24709000,
"emoji": "🌎"
}Response fields
Countries
Every country in a continent. Handy for region pickers and cascading forms.
Parameters 2
- 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.
import { parseAPI } from '@parseapi/sdk';
const parse = parseAPI("YOUR_API_KEY");
const result = await parse.continent.countries("na");
console.log(result);Run on your server with a secret key. Calling from a browser or app?
{
"continent": "NA",
"countries": [
{
"country": "CA",
"name": "Canada",
"calling_code": "+1"
},
{
"country": "MX",
"name": "Mexico",
"calling_code": "+52"
},
{
"country": "US",
"name": "United States",
"calling_code": "+1"
},
// ... 38 more
]
}Response fields
- continent
- Continent code
- countries
- Every country in the continent
- countries[].country
- ISO2 country code
- countries[].name
- Country name
- countries[].emoji
- Flag emoji
- countries[].calling_code
- International calling code with plus (+1, +44)
Display language
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 41 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. This option follows the current API contract. Requests selecting frozen 1.0.0 retain that contract. Select API 2.0.0 to use display language.
41 display language choices
| Language tag | Language |
|---|---|
| en | American English |
| zh-Hans | 简体中文 |
| fr | français (France) |
| de | Deutsch |
| it | italiano |
| ja | 日本語 |
| ko | 한국어 |
| es | español de España |
| ar | العربية |
| bg | български |
| ca | català |
| hr | hrvatski |
| cs | čeština |
| da | dansk |
| nl | Nederlands |
| fi | suomi |
| el | Ελληνικά |
| he | עברית |
| hi | हिन्दी |
| hu | magyar |
| id | Indonesia |
| kk | қазақ тілі |
| ms | Melayu |
| nb | norsk bokmål |
| pl | polski |
| pt | português (Brasil) |
| ro | română |
| ru | русский |
| sk | slovenčina |
| sv | svenska |
| th | ไทย |
| tr | Türkçe |
| uk | українська |
| vi | Tiếng Việt |
| zh-Hant | 繁體中文 |
| en-AU | Australian English |
| en-GB | British English |
| fr-CA | français canadien |
| es-419 | español latinoamericano |
| pt-PT | português europeu |
| zh-Hant-HK | 繁體中文(中國香港特別行政區) |
Questions? Email