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.
Free tier includes 1,000 calls/day - No credit card required - Live in 5 minutes
$ curl "https://api.localityapi.com/v1/search?q=Dubai&country=AE" \
-H "X-API-Key: lapi_xxxxxxxx"|{
"results": [{
"name": "Dubai",
"country": "AE",
"admin1": "Dubai",
"lat": 25.07725,
"lng": 55.30927,
"timezone": "Asia/Dubai",
"population": 3790000
}],
"query_ms": 8
}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.
/v1/searchSearch cities and places by name/v1/reverseReverse geocode coordinates to a place/v1/postalLook up a postal code/v1/citiesFilter cities by country, population, type/v1/nearbyFind places within a radius/v1/autocompleteTypeahead suggestions/v1/adminAdministrative regions and hierarchy/v1/ipIP to full location, currency, language and ISP/v1/country/{iso2}Country intelligence and metadata/v1/countriesList all 249 countries with metadata/v1/timezoneCurrent time, UTC offset and DST status/v1/sunSunrise and sunset times for any location/v1/distanceDistance between two cities or coordinates/v1/validateAddress validator with confidence scoring/v1/batchBatch up to 100 requests in one call/v1/streetsStreet search across 52M+ named streets worldwide/v1/addressSearch 528M+ addresses by house number and street/v1/place/{id}Full place details by unique ID/v1/elevationElevation above sea level for any coordinatesWorks with any language
Simple REST API. No SDK required.
curl "https://api.localityapi.com/v1/search?q=Dubai&country=AE" \
-H "X-API-Key: lapi_your_key_here"{
"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.
| Feature | LocalityAPI | Google Maps | HERE Maps | Mapbox | Radar.io |
|---|---|---|---|---|---|
| City Search | Yes | Yes | Yes | Yes | Yes |
| Postal Codes | Yes | Yes | Yes | Yes | Yes |
| Reverse Geocoding | Yes | Yes | Yes | Yes | Yes |
| Autocomplete | Yes | Yes | Yes | Yes | Yes |
| IP Geolocation | Yes | No | No | No | Yes |
| Timezone + Live Time | Yes | Yes | No | No | No |
| Sunrise & Sunset | Yes | No | No | No | No |
| Country Intelligence | Yes | No | No | No | No |
| Batch API | Yes | Yes | Yes | No | Yes |
| Street Search | 52.7M | Yes | Yes | Yes | No |
| Address Lookup | 528M | Yes | Yes | Yes | Yes |
| Countries | 249 | 249 | 195 | 200+ | 190+ |
| Free Tier | 1,000/day | $200 credit | Limited | 100K/mo | 100K/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
Perfect for testing and small projects
- 1,000 API calls per day
- All core endpoints
- Community support
- Attribution required
- No credit card needed
Starter
For apps and products in production
- 50,000 API calls per day
- All endpoints including autocomplete
- Email support
- No attribution required
- Cancel anytime
Pro
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
For high-volume teams needing reliability
- Unlimited API calls
- Dedicated infrastructure
- Slack support channel
- Custom endpoints on request
- White-label option available
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.
Frequently asked questions
Ready to add location data to your app?
Join developers already using LocalityAPI. Free to start, scales with you.