Country, State & City API

250 countries, 5,300 states and provinces and about 150,000 cities, with coordinates, time zones, currency, phone codes and more.

Quick start

curl "https://geo.quiply.net/v1/cities?country=US&state=CA&search=san" \
  -H "X-API-Key: YOUR_KEY"

Authentication

Every request must include your key in the X-API-Key header. You get your key instantly on the pricing section. Keep it secret — don't put it in public front-end code.

Base URL: https://geo.quiply.net

GET/v1/countries

List countries with ISO codes, capital, currency, phone code, region, population, coordinates and time zones.

ParameterTypeDescription
searchstringCountry name or ISO code
regionstringRegion or subregion, e.g. Europe, Caribbean
limitinteger1–300 (default 300)

GET/v1/countries/{code}

One country by ISO 2- or 3-letter code (JM or JAM), with state_count and city_count.

GET/v1/countries/{code}/states

All states, provinces or parishes of a country, with code, type, coordinates and time zone.

GET/v1/cities

Cities of a country, optionally of one state, in alphabetical order. Search is accent-insensitive and matches the start of the name.

ParameterTypeDescription
country requiredstringISO code, e.g. US
statestringState code, name or id
searchstringStart of the city name
limitinteger1–500 (default 100)
offsetintegerSkip this many results
{ "country": "US", "count": 1, "offset": 0,
  "cities": [ { "id": 125809, "name": "San Francisco", "state": "California", "state_code": "CA",
                 "country": "US", "latitude": 37.7749, "longitude": -122.4194, "timezone": "America/Los_Angeles" } ] }

Search countries, states and cities at once (q required, minimum 2 characters). Optional type (country, state or city) and limit 1–100.

GET/v1/health

Service status and dataset size. No key needed.

City data does not include population figures.

Errors

StatusMeaning
401Missing or invalid X-API-Key
403Subscription inactive (cancelled or payment failed)
404Country or state not found
422Bad or missing parameter
429Quota reached for your plan

Pricing

Free trial: 5 requests/day. All APIs plan: $9.95/month gives you every Quiply API, 250,000 requests a month.

Get your API key