geodata

v0.1.0
io.github.CloudCorpRecords/geodata Checked 4 days ago Published 1 month ago

Geographic 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.

ParameterTypeDescription
code *stringCode for this call.
basestringCurrency base for rates, e.g. EUR (default USD).

list_countries

Paginated list of all 250+ countries.

ParameterTypeDescription
basestringCurrency base for rates, e.g. EUR (default USD).
limitintegerMaximum number of results to return (optional).
pageintegerPage number for paginated results (optional).

search_countries

Search countries by partial name.

ParameterTypeDescription
query *stringSearch query text.

get_states

All states/provinces for a country.

ParameterTypeDescription
country *stringCountry code or name.

get_cities

All cities for a state by numeric state ID.

ParameterTypeDescription
state_id *integerThe state identifier for this call.

get_currency_rate

Live USD exchange rate for a country's currency (updated every 4 hours).

ParameterTypeDescription
country *stringCountry code or name.
basestringCurrency base for rates, e.g. EUR (default USD).

geolocate_ip

Country, region, city, coordinates, timezone, and EU membership for any IPv4/IPv6 address.

ParameterTypeDescription
ip *stringThe ip for this call.