UnifyAPI
← Back to catalog

geonames.country.info

mock data$0.001 / call

GeoNames Country Info

Get structured metadata for any country or all countries from the GeoNames database. Returns country code (ISO-3166 alpha-2/alpha-3/numeric), capital, continent, official languages, population, area in km², currency code, postal code format/regex, geoname_id, and a bounding box (north/south/east/west lat-lng). Omit country to retrieve all 250 countries in a single response. Supports localized country names via lang parameter. CC BY 4.0 open data, no upstream cost.

Geo & Mapsprovider: Geonames#geonames#geo

Input schema

country

ISO-3166 2-letter country code (e.g. "US", "DE", "JP"). Omit to retrieve all countries.

string
language

ISO 639-1 language code for localized country names (e.g. "en", "fr", "es")

string

Call via REST

curl -X POST https://unifyapi.pro/api/call/geonames.country.info \
  -H "Authorization: Bearer uak_live_..." \
  -H "Content-Type: application/json" \
  -d '{"country":"<country>","language":"<language>"}'

Try it

Paste a UnifyAPI key (create one in the dashboard) and run a real call.