Beta RazorAPI is in beta testing — new registrations are closed for now. Public launch coming soon. Details

Geographic data API

Locations API

Countries, regions, states, and cities — structured geo data you can query in one playground.

Playground

Query countries, regions, states, and cities live.

API key Optional

Optional — try the API without a key (shared tools quota). Public signup is closed during beta — learn more.

GET

All countries

Names, ISO codes, phone codes, and emoji flags for every country.

GET /locations/countries

API response

Hit fetch to stream JSON here.

GET

Geographic regions

Africa, Americas, Asia, Europe, Oceania, and more — used to group countries.

GET /locations/regions

API response

Hit fetch to stream JSON here.

GET

States & provinces

Pull every state worldwide, or scope to one country by ID.

GET /locations/states

Or filter by country

GET /locations/countries/{id}/states

API response

Fetch all states or pick a country first.

GET

Cities by state

Return every city nested under a state ID.

GET /locations/states/{id}/cities

API response

Enter a state ID, then fetch cities.

Coverage

Global geo dataset

Countries, regions, states, and cities ready for production lookups

250+ Countries

ISO codes, dial codes, emoji flags, and names for every recognized country worldwide.

/locations/countries

5,000+ States

Provinces, territories, and admin divisions nested under each country ID.

/locations/states

150K+ Cities

City catalogs keyed by state — ready for address forms and geo pickers.

/locations/cities

99.9% Uptime

Stable endpoints with fast responses — built for production location lookups.

Production ready