Skip to content

API guides/Geo, weather, and places

FreeFreemium

Free Geocoding API Comparison (2026) — Nominatim, Google, Mapbox

Compare free and freemium geocoding APIs in 2026: Nominatim (OpenStreetMap), Google Geocoding, and Mapbox. Rate limits, CORS, commercial use, and copy-paste examples.

Check official docs

3 providers · 7 min · Limits change — verify before you ship

Geo, weather, and places

What this is for

Geocoding turns an address or place name into coordinates (and reverse geocoding does the opposite). In 2026 the usual shortlist is Nominatim (OpenStreetMap), Google Geocoding, and Mapbox. The public Nominatim instance is free but strict; Google and Mapbox are paid products with free tiers. Pick based on volume, commercial terms, and whether you can call from a backend.

Quick comparison (2026)

Confirm limits and pricing on each vendor’s current docs before you ship — free tiers change.

ProviderFree tierTypical rate limitAPI keyCORS / browserCommercial
Nominatim (public OSM)Yes (shared)~1 req/s; fair-use policyNonePrefer backend + User-AgentNot for heavy/commercial SLA — self-host or buy
Google GeocodingMonthly creditPer project quotasRequiredServer / Maps SDKsYes — billed after free credit
Mapbox GeocodingMonthly free requestsPer-token quotasRequiredToken + URL restrictionsYes — usage-based after free tier
  • Prototype / low volume + OSM data OK → Nominatim (self-host if you grow).
  • Need Google’s place coverage and are already on GCP → Google Geocoding.
  • Already on Mapbox maps → Mapbox Geocoding keeps one vendor.
  • India PIN → post office mapping is a different job — see the Indian PIN code API guide.
ProviderPricingKeyHTTPSCORS
Nominatim (public OSM)FreeNo keyYesVerify
Google Geocoding APIFreemiumRequiredYesBackend only
Mapbox Geocoding APIFreemiumRequiredYesUsually yes

Nominatim (public OSM)

Free

GET https://nominatim.openstreetmap.org/search

Official docs

HTTPS

Yes

API key

No key

CORS

Verify

Use

Free tier

Limits. About 1 request/second on the public instance. Identify a valid User-Agent. No bulk scraping.

Commercial. Public instance is not a commercial SLA. Self-host or use a paid OSM geocoder for products.

Note. Read https://operations.osmfoundation.org/policies/nominatim/ before you ship. Reverse: /reverse?lat=&lon=&format=json.

curl -sS -A "PureDevKitDocs/1.0 (kasgroupapps@gmail.com)" \
  "https://nominatim.openstreetmap.org/search?q=Bengaluru&format=json&limit=1"

Google Geocoding API

Freemium

GET https://maps.googleapis.com/maps/api/geocode/json

Official docs

HTTPS

Yes

API key

Required

CORS

Backend only

Use

See limits

Limits. Free monthly Maps credit, then billed. Enable Geocoding API on a GCP project and restrict the key.

Commercial. Allowed under Google Maps Platform terms. Check current pricing and attribution rules.

Note. Call from a server. Restrict API keys by IP or referrer. Do not ship unrestricted keys in a SPA.

curl -sS "https://maps.googleapis.com/maps/api/geocode/json?address=Bengaluru&key=YOUR_KEY"

Mapbox Geocoding API

Freemium

GET https://api.mapbox.com/search/geocode/v6/forward

Official docs

HTTPS

Yes

API key

Required

CORS

Usually yes

Use

See limits

Limits. Free monthly request allowance on Mapbox accounts; then usage-based. See current Mapbox pricing.

Commercial. Allowed on paid Mapbox plans. Follow token scopes and attribution.

Note. URL paths and response shapes evolve — confirm against current Mapbox Search / Geocoding docs. Prefer temporary tokens in demos.

curl -sS "https://api.mapbox.com/search/geocode/v6/forward?q=Bengaluru&access_token=YOUR_TOKEN&limit=1"

PureDevKit does not host or proxy these APIs. Pricing, rate limits, CORS, authentication, and JSON shapes can change without notice. Always confirm the current rules on the provider’s official documentation before you ship.