apyhub
โ–ฃ GEOLOCATION ยท STANDARD DATA

Country Details

What it does

Country Details returns structured reference data for a single country from its ISO 3166-1 alpha-2 code. Send the country query value and get back country metadata you can use in forms, lookup tables, and regional logic.

The response includes the country key, cca3 code, emoji, and human-readable value. It also includes currency details when available: currency key, emoji, value, and symbol. For countries with subdivision data, the response can include a subdivision array with ISO 3166-2 code values and subdivision name values, plus a calling_code array.

Use Country Details when you need to populate a profile form, resolve a shipping destination, or display localized country information without maintaining your own reference dataset. It is a good fit for apps that need consistent country names, dialing prefixes, and currency metadata in one place.

GET
Detailed info for a single country
https://api.eu.apyverse.com/apyhub/country-details

QUICKSTART

GUIDE

Quickstart

Look up details for a country by its ISO code.

curl -X GET "https://api.eu.apyverse.com/apyhub/country-details?country=DE" \
  -H "apy-token: $APY_TOKEN"

What you'll get back

Returns a JSON object with a data object. data includes country details such as key, cca3, emoji, value, currency, and calling_codes, and may also include subdivision and calling_code.

{
  "data": {
    "key": "DE",
    "cca3": "DEU",
    "emoji": "๐Ÿ‡ฉ๐Ÿ‡ช",
    "value": "Germany",
    "currency": {
      "key": "EUR",
      "emoji": "๐Ÿ’ถ",
      "value": "Euro",
      "symbol": "โ‚ฌ"
    },
    "calling_codes": ["+49"]
  }
}
TRY ITLIVE ยท 10 ATOMS
Loading your default keyโ€ฆ
The full key is used to call the gateway and stays in this tab โ€” never sent to orbit or saved.

About this endpoint

What it does

Retrieves detailed information for a single country based on the country query parameter. The response returns a JSON object containing a data object with country metadata, currency details, calling codes, and subdivisions as defined by the schema.

Query Parameter(s)

AttributeTypeMandatoryDescription
countryStringYesCountry identifier to look up.

Response

Returns a JSON object with a data object field. The data object contains country information such as ISO codes, emoji, country name, currency details, calling codes, and subdivisions, as declared in the schema.

ParameterTypeMandatoryDescription
dataObjectYesCountry details object. Includes key (ISO 3166-1 alpha-2 code), cca3 (ISO 3166-1 alpha-3 code), emoji, value (country name), currency (object with key, emoji, value, symbol), calling_codes (String Array), subdivision (Object Array), and calling_code (String Array).
data.keyStringNoISO 3166-1 alpha-2 code.
data.cca3StringNoISO 3166-1 alpha-3 code.
data.emojiStringNoCountry emoji.
data.valueStringNoCountry name.
data.currencyObjectNoCurrency object with key (ISO 4217 currency code), emoji, value (currency name in English), and symbol.
data.currency.keyStringNoISO 4217 currency code.
data.currency.emojiStringNoCurrency emoji.
data.currency.valueStringNoCurrency name in English.
data.currency.symbolStringNoCurrency symbol.
data.calling_codesString ArrayNoCalling codes associated with the country.
data.subdivisionObject ArrayNoAdministrative subdivisions. Each item contains code (ISO 3166-2 subdivision code) and name.
data.subdivision[].codeStringNoISO 3166-2 subdivision code.
data.subdivision[].nameStringNoSubdivision name.
data.calling_codeString ArrayNoCalling codes associated with the country.

Query parameters

Name
Type
Description
countryREQUIRED
string
โ€”
โ–ฃ 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.