The world's location data. One clean API.

Search cities, resolve postal codes, detect timezones, and explore admin regions across 248 countries — with one API key and zero complexity.

View documentation

Free tier includes 1,000 calls/day - No credit card required - Live in 5 minutes

api.localityapi.com
Request
$ curl "https://api.localityapi.com/v1/search?q=Dubai&country=AE" \
  -H "X-API-Key: lapi_xxxxxxxx"|
Response
{
  "results": [{
    "name": "Dubai",
    "country": "AE",
    "admin1": "Dubai",
    "lat": 25.2048,
    "lng": 55.2708,
    "timezone": "Asia/Dubai",
    "population": 3331420
  }],
  "query_ms": 8
}
12M+Locations
248Countries
20msAvg response
99.9%Uptime

Everything you need. Nothing you don't.

City & Town Search

Fuzzy search across 12M+ cities, towns, villages, and suburbs worldwide with ranked results

Postal Code Lookup

Resolve any postal code to its city, admin region, country, and coordinates instantly

Timezone Resolution

Get the correct IANA timezone for any city or coordinates — no guesswork

Admin Hierarchy

Drill into countries, states, provinces, counties, and districts with structured data

Radius Search

Find all cities within any radius of a lat/lng point using PostGIS spatial queries

Autocomplete Ready

Typeahead endpoint optimized for speed — returns suggestions in under 20ms

Simple, consistent endpoints

API Endpoints
GET/v1/search
GET/v1/postal
GET/v1/cities
GET/v1/nearby
GET/v1/autocomplete

Works with any language

Simple REST API. No SDK required.

Request
curl "https://api.localityapi.com/v1/search?q=Dubai&country=AE" \
  -H "X-API-Key: lapi_your_key_here"
200 OK8ms
Response
{
  "results": [{
    "name": "Dubai",
    "country": "AE",
    "admin1": "Dubai",
    "lat": 25.2048,
    "lng": 55.2708,
    "timezone": "Asia/Dubai",
    "population": 3331420
  }],
  "query_ms": 8
}

Simple, predictable pricing

Start free. Scale when you're ready. No surprise bills.

Free

$0/month

Perfect for testing and small projects

  • 1,000 API calls per day
  • All core endpoints
  • Community support
  • Attribution required
  • No credit card needed
Most popular

Starter

$19/month

For apps and products in production

  • 50,000 API calls per day
  • All endpoints including autocomplete
  • Email support
  • No attribution required
  • Cancel anytime

Pro

$49/month

For growing products with higher volume

  • 500,000 API calls per day
  • All endpoints + radius search
  • Priority email support
  • 99.9% uptime SLA
  • Cancel anytime

Enterprise

$199/month

For high-volume teams needing reliability

  • Unlimited API calls
  • Dedicated infrastructure
  • Slack support channel
  • Custom endpoints on request
  • White-label option available
Google Maps Alternative

Built for developers searching for a Google Maps alternative

LocalityAPI is the leading alternative to Google Maps Platform for developers who need city search, postal code lookup, timezone detection and location autocomplete. Our REST API covers 248 countries with 12M+ locations — at a fraction of the cost. Used by developers building address forms, logistics platforms, e-commerce stores, SaaS products and mobile applications that need reliable location data without the Google Maps price tag.

City Search
Postal Codes
Timezones
Autocomplete

Frequently asked questions

Ready to add location data to your app?

Join developers already using LocalityAPI. Free to start, scales with you.