The world's location data. One clean API.

Search 32.5M+ cities, streets & addresses. Geocode addresses, detect timezones, calculate distances, validate addresses and explore location data across 249 countries — with one API key and zero complexity.

LocalityAPI is a location data API platform that allows developers to sign up, manage API keys and access location data services including geocoding, timezone detection and address lookup.

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.07725,
    "lng": 55.30927,
    "timezone": "Asia/Dubai",
    "population": 3790000
  }],
  "query_ms": 8
}
32.5M+Places & Addresses
528M+Addresses
249Countries
<20msAvg Response

Everything you need. Nothing you don't.

City & Town Search

Fuzzy search across 32.5M+ places, 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

Country Intelligence

Full country metadata for all 249 countries — currency, phone code, languages, flag emoji, timezone, continent and border countries

Timezone + Current Time

Get current local time, UTC offset and DST status for any city, coordinates or timezone name — perfect for global scheduling apps

Sunrise & Sunset

Accurate sunrise, sunset and day length for any coordinates or city — supports any date worldwide with 12h and 24h formats

Distance Calculator

Calculate straight-line distance between any two cities or coordinates — returns both km and miles instantly

Address Validator

Validate city, postal code and country combinations with confidence scoring, normalization and fuzzy matching

Address Lookup

Search 528M+ verified addresses by house number and street across 249 countries — perfect for precise geocoding and address forms

Batch API

Send up to 100 requests in a single API call — dramatically reduces latency and rate limit usage for bulk data processing

19 endpoints. One API key.

API Endpoints
GET/v1/search
GET/v1/reverse
GET/v1/postal
GET/v1/cities
GET/v1/nearby
GET/v1/autocomplete
GET/v1/admin
GET/v1/ip
GET/v1/country/{iso2}
GET/v1/countries
GET/v1/timezone
GET/v1/sun
GET/v1/distance
GET/v1/validate
POST/v1/batch
GET/v1/streets
GET/v1/address
GET/v1/place/{id}
GET/v1/elevation

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
}

How LocalityAPI compares

More data. More features. A fraction of the cost.

FeatureLocalityAPIGoogle MapsHERE MapsMapboxRadar.io
City SearchYesYesYesYesYes
Postal CodesYesYesYesYesYes
Reverse GeocodingYesYesYesYesYes
AutocompleteYesYesYesYesYes
IP GeolocationYesNoNoNoYes
Timezone + Live TimeYesYesNoNoNo
Sunrise & SunsetYesNoNoNoNo
Country IntelligenceYesNoNoNoNo
Batch APIYesYesYesNoYes
Street Search52.7MYesYesYesNo
Address Lookup528MYesYesYesYes
Countries249249195200+190+
Free Tier1,000/day$200 creditLimited100K/mo100K/mo
Price per 1K calls$0.038$2.00–$17$1.00$0.75$1.00
Speed<20ms<100ms<100ms<50ms<100ms

Pricing based on publicly available data as of 2026. LocalityAPI price calculated at Starter plan ($19/mo ÷ 50,000 calls/day × 30 days).

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, geocoding, postal codes, timezone detection and location autocomplete. Our REST API covers 249 countries with 32.5M+ places, 52.7M+ streets and 528M+ verified addresses — at a fraction of the cost. 19 endpoints covering everything from address validation to sunrise times. Used by developers building address forms, logistics platforms, e-commerce stores, SaaS products and mobile applications.

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.