geodata
v0.1.0Geographic data by API key: countries, states, cities, currency rates and IP geolocation.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
get_country
Full country data by ISO2/ISO3 code — name, capital, region, population, currency, live USD rate, timezones, phone code.
| Parameter | Type | Description |
|---|---|---|
code * | string | Code for this call. |
base | string | Currency base for rates, e.g. EUR (default USD). |
list_countries
Paginated list of all 250+ countries.
| Parameter | Type | Description |
|---|---|---|
base | string | Currency base for rates, e.g. EUR (default USD). |
limit | integer | Maximum number of results to return (optional). |
page | integer | Page number for paginated results (optional). |
search_countries
Search countries by partial name.
| Parameter | Type | Description |
|---|---|---|
query * | string | Search query text. |
get_states
All states/provinces for a country.
| Parameter | Type | Description |
|---|---|---|
country * | string | Country code or name. |
get_cities
All cities for a state by numeric state ID.
| Parameter | Type | Description |
|---|---|---|
state_id * | integer | The state identifier for this call. |
get_currency_rate
Live USD exchange rate for a country's currency (updated every 4 hours).
| Parameter | Type | Description |
|---|---|---|
country * | string | Country code or name. |
base | string | Currency base for rates, e.g. EUR (default USD). |
geolocate_ip
Country, region, city, coordinates, timezone, and EU membership for any IPv4/IPv6 address.
| Parameter | Type | Description |
|---|---|---|
ip * | string | The ip for this call. |
global_search
Search across countries, states, and cities in one query.
| Parameter | Type | Description |
|---|---|---|
query * | string | Search query text. |