apyhub

Countries Dictionary API

What it does

Country Directory returns a structured list of countries with ISO codes, flags, names, currencies, and calling codes. Send a GET request and get back a data array of country objects.

Use the key field for ISO 3166-1 alpha-2 lookups, cca3 for ISO 3166-1 alpha-3 codes, and value for the country name. Each country entry can also include an emoji flag, a currency object with key, value, symbol, and emoji, plus calling_codes for telephone prefix handling.

This is useful when you need a canonical country list for forms, dropdowns, checkout flows, shipping rules, account setup, or data normalization. Instead of hardcoding reference data, you can pull the same country dataset into your app and keep your UI and validation logic aligned.

If you are building international signup flows, locale-aware settings, or region-based product logic, Country Directory gives you the reference fields you need in one response.

GET
List all countries
https://api.eu.apyverse.com/apyhub/list-countries

QUICKSTART

GUIDE

Quickstart

Fetch the full list of countries.

curl -X GET "https://api.eu.apyverse.com/apyhub/list-countries" \
  -H "apy-token: $APY_TOKEN"

What you'll get back

Returns a JSON object with a data array. Each item is an object with country details such as key, cca3, emoji, value, currency, and calling_codes.

{
  "data": [
    {
      "key": "DE",
      "cca3": "DEU",
      "emoji": "🇩🇪",
      "value": "Germany",
      "currency": {
        "key": "EUR",
        "emoji": "💶",
        "value": "Euro",
        "symbol": "€"
      },
      "calling_codes": ["+49"]
    }
  ]
}
TRY ITLIVE · 5 ATOMS
Loading playground…

About this endpoint

What it does

Returns a list of countries as a JSON object containing a data array. Each array item is a country object with country codes, emoji, name, optional currency details, and calling codes as declared in the response schema.

Response

Returns a JSON object with a data array field. Each item in data is an object describing a country. The schema does not declare a specific success status code.

ParameterTypeMandatoryDescription
dataObject ArrayYesList of country objects. Each item includes key, cca3, emoji, value, optional currency, and calling_codes.
data[].keyStringNoISO 3166-1 alpha-2 country code.
data[].cca3StringNoISO 3166-1 alpha-3 country code.
data[].emojiStringNoCountry flag emoji.
data[].valueStringNoCountry name.
data[].currencyObjectNoCurrency information for the country.
data[].currency.keyStringNoISO 4217 currency code.
data[].currency.emojiStringNoCurrency emoji.
data[].currency.valueStringNoCurrency name in English.
data[].currency.symbolStringNoCurrency symbol.
data[].calling_codesString ArrayNoCountry calling codes.

Parameters

No parameters.
â–£ COMMON ERRORS

Errors any endpoint can return

400bad_request

Required parameter missing or malformed body.

401unauthorized

API key missing, revoked, or not authorized for this service.

429rate_limited

Your plan's per-second rate exceeded. Retry with exponential backoff.

503upstream_busy

Backend temporarily unavailable. Try again in a few seconds.