Favicon

You are here: Home > API Reference > Platform > Countries > List available countries

List available countries

Retrieves all country entities for use in regional configuration.

GET
https://api.applivery.io/v1/countries
curl -X GET "https://api.applivery.io/v1/countries" \
  -H "Authorization: Bearer <YOUR_API_KEY>"
const response = await fetch("https://api.applivery.io/v1/countries", {
  method: "GET",
  headers: {
    Authorization: "Bearer <YOUR_API_KEY>",
  },
});

const data = await response.json();
import requests

response = requests.get(
    "https://api.applivery.io/v1/countries",
    headers={"Authorization": "Bearer <YOUR_API_KEY>"},
)

data = response.json()

Request

Send your API key in the request header authorization
Example: Authorization: Bearer <token>

Responses

200 Response application/json
status boolean optional
data array [object] optional
name string optional
Official country name as recognized internationally, used for display and localization purposes.
≤ 128 characters
code string optional
ISO 3166-1 alpha-2 country code uniquely identifying the country for regulatory and regional operations.
≤ 128 characters
phonePrefix string optional
International dialing prefix associated with the country, used for phone number formatting and validation.
≤ 128 characters
{
    "status": true,
    "data": [
        {
            "name": "Spain",
            "code": "ES",
            "phonePrefix": "+34"
        }
    ]
}