GET
$0.08 default
/allDescription
All countries.
Pricing
$0.08 default
Parameters
{
"properties": {},
"required": [],
"type": "object"
}Country data: population, currencies, languages, capitals, calling codes, regional blocs and more.
https://gateway.apiosk.com/countrylayer
| Method | Path | Description | Cost | |
|---|---|---|---|---|
| GET | /all | All countries. | $0.08 default |
View details |
| GET | /alpha | Country by ISO alpha code: append /{code}. | $0.08 default |
View details |
| GET | /callingcode | Countries by calling code: append /{code}. | $0.08 default |
View details |
| GET | /capital | Country by capital city: append /{capital}, e.g. /capital/berlin. | $0.08 default |
View details |
| GET | /currency | Countries by currency code: append /{code}. | $0.08 default |
View details |
| GET | /language | Countries by language code: append /{code}. | $0.08 default |
View details |
| GET | /name | Country by name: append /{name}. | $0.08 default |
View details |
| GET | /region | Countries by region: append /{region}. | $0.08 default |
View details |
| GET | /regionalbloc | Countries by regional bloc: append /{bloc}. | $0.08 default |
View details |
/allAll countries.
{
"properties": {},
"required": [],
"type": "object"
}/alphaCountry by ISO alpha code: append /{code}.
{
"properties": {
"code": {
"description": "ISO 3166-1 alpha-2 or alpha-3 country code, appended as a path segment.",
"example": "us",
"type": "string",
"x-parameter-location": "path"
}
},
"required": [
"code"
],
"type": "object"
}/callingcodeCountries by calling code: append /{code}.
{
"properties": {
"callingcode": {
"description": "International calling code without the plus sign, appended as a path segment.",
"example": "31",
"type": "string",
"x-parameter-location": "path"
}
},
"required": [
"callingcode"
],
"type": "object"
}/capitalCountry by capital city: append /{capital}, e.g. /capital/berlin.
{
"properties": {
"capital": {
"description": "Capital city name, appended as a path segment.",
"example": "berlin",
"type": "string",
"x-parameter-location": "path"
}
},
"required": [
"capital"
],
"type": "object"
}/currencyCountries by currency code: append /{code}.
{
"properties": {
"currency": {
"description": "ISO 4217 currency code, appended as a path segment.",
"example": "eur",
"type": "string",
"x-parameter-location": "path"
}
},
"required": [
"currency"
],
"type": "object"
}/languageCountries by language code: append /{code}.
{
"properties": {
"language": {
"description": "ISO 639-1 language code, appended as a path segment.",
"example": "nl",
"type": "string",
"x-parameter-location": "path"
}
},
"required": [
"language"
],
"type": "object"
}/nameCountry by name: append /{name}.
{
"properties": {
"name": {
"description": "Full or partial country name, appended as a path segment.",
"example": "germany",
"type": "string",
"x-parameter-location": "path"
}
},
"required": [
"name"
],
"type": "object"
}/regionCountries by region: append /{region}.
{
"properties": {
"region": {
"description": "Region name: africa, americas, asia, europe or oceania. Appended as a path segment.",
"example": "europe",
"type": "string",
"x-parameter-location": "path"
}
},
"required": [
"region"
],
"type": "object"
}/regionalblocCountries by regional bloc: append /{bloc}.
{
"properties": {
"regionalbloc": {
"description": "Regional bloc acronym: EU, EFTA, CARICOM, PA, AU, USAN, EEU, AL, ASEAN, CAIS, CEFTA, NAFTA or SAARC. Appended as a path segment.",
"example": "eu",
"type": "string",
"x-parameter-location": "path"
}
},
"required": [
"regionalbloc"
],
"type": "object"
}