GeoNames Country Info
geonames.country.infoRetrieve country metadata—ISO codes, capital, continent, languages, population, area, currency, postal code format, geoname ID, and bounding box—for one or all countries with localized names.
Instructions
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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| country | No | ISO-3166 2-letter country code (e.g. "US", "DE", "JP"). Omit to retrieve all countries. | |
| language | No | ISO 639-1 language code for localized country names (e.g. "en", "fr", "es") |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present only when the call failed. Includes error code, message, request_id, and any provider-specific extras. | |
| result | No | Tool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response. |