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.

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

Terminal
$ curl "https://api.localityapi.com/v1/search?q=Dubai&country=AE" \
  -H "X-API-Key: lapi_test_xxxxxxxxxxxx"
{
  "results": [
    {
      "name": "Dubai",
      "country": "AE",
      "admin1": "Dubai",
      "postal_code": "13014",
      "lat": 25.2048,
      "lng": 55.2708,
      "timezone": "Asia/Dubai",
      "population": 3331420,
      "type": "city"
    }
  ],
  "count": 1,
  "query_ms": 8
}
12M+Locations
248Countries
99.9%Uptime
<20msResponse

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

const response = await fetch(
  'https://api.localityapi.com/v1/search?q=Toronto&country=CA',
  { headers: { 'X-API-Key': 'lapi_your_key_here' } }
);
const data = await response.json();
console.log(data.results);

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
Start for free
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
Get started

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
Get started

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
Contact us

Built for developers, trusted by teams

Finally a geo API that doesn't make me cry. The docs are clear, the response is fast, and the pricing makes sense.

Alex R.

Full Stack Developer

We replaced our Google Places integration with LocalityAPI in an afternoon. Saved us $300/month immediately.

Priya M.

CTO at a SaaS startup

The postal code lookup is accurate for all our target markets. Works perfectly for our checkout address form.

Daniel K.

Lead Developer

Frequently asked questions

Ready to add location data to your app?

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

Get your free API key