
Posted on ยท Updated on ยท 4 min read
Free Maps and Geocoding APIs in 2026: Google Maps Alternatives Compared
On this page ยท 11 sections
The short answer: for a free geocoding API you can use commercially, Geoapify (3,000 credits a day, production use allowed with attribution) and LocationIQ (5,000 requests a day, commercial use with a link back) are the most generous. Google Maps Platform now gives 10,000 free geocoding requests a month per Essentials API. For no-key, low-volume lookups, Nominatim and Photon (both built on OpenStreetMap) work, but read their usage policies first.
"Maps API" covers three different jobs: geocoding (address โ coordinates), reverse geocoding (coordinates โ address) and map display (tiles). This guide focuses on geocoding, the part you call from code, and covers tiles at the end. Our directory tracks 111 geocoding and location APIs: 101 were online in our October 24, 2026 check, 54 need no API key and 43 support CORS.
#Free geocoding API comparison (October 2026)
API | Free allowance | Rate limit | Commercial use on free | Key | Data |
|---|---|---|---|---|---|
Small free plan | Not stated | Check plan | Yes | Mixed | |
10,000 geocodes/month (Essentials cap) | Not stated | Yes (billing account required) | Yes | ||
~100,000 temporary geocodes/month (reported) | Not stated | Yes | Yes | Mapbox + OSM | |
3,000 credits/day | 5 req/s | Yes, with attribution | Yes | OSM + others | |
5,000 requests/day | 2 req/s | Limited, with link back | Yes | OSM | |
2,500 requests/day (trial) | 1 req/s | Testing only | Yes | OSM + open data | |
Fair use, no heavy use | 1 req/s max | Light use per policy | No (User-Agent) | OSM | |
Photon (Komoot) | Fair use | Throttled | Light use | No | OSM |
Sources: providers' pricing pages and usage policies, October 2026. Mapbox's figures are from third-party summaries, so confirm them on mapbox.com/pricing.
#What changed with Google Maps pricing
Google Maps Platform replaced its old $200 monthly credit with free monthly usage caps per API (from March 2025). Each API (Google calls them SKUs) gets a free allowance by tier: Essentials APIs such as Geocoding and Dynamic Maps get 10,000 free events a month, Pro APIs 5,000 and Enterprise 1,000. You still need a billing account. For a small app that only geocodes, 10,000 a month may be enough. If you also use Places, Directions and maps, each has its own cap, and costs can add up quickly above them.
#Nominatim: free and keyless, with rules
Nominatim is OpenStreetMap's own geocoder. The public server is free, but its usage policy is strict:
- At most 1 request per second, from your whole application.
- Send an identifying
User-AgentorReferer. In our test, a generic browser User-Agent got403 Access denied; an identifying one worked. - No bulk geocoding and no autocomplete-as-you-type.
- Cache results and show OpenStreetMap attribution.
const HEADERS = { "User-Agent": "my-store-locator/1.0 (+https://github.com/your-org/my-store-locator)" };
const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
async function geocode(query) {
const url = new URL("https://nominatim.openstreetmap.org/search");
url.search = new URLSearchParams({ q: query, format: "jsonv2", limit: "1" });
const res = await fetch(url, { headers: HEADERS, signal: AbortSignal.timeout(10_000) });
if (!res.ok) throw new Error(`Nominatim returned HTTP ${res.status}`);
const [hit] = await res.json();
await sleep(1000); // respect the 1 request/second policy
return hit ? [Number(hit.lat), Number(hit.lon)] : null;
}
console.log(await geocode("Eiffel Tower, Paris"));For anything beyond light use, use a hosted provider built on OSM data (Geoapify, LocationIQ, OpenCage), or run your own Nominatim server.
#Photon: OSM search-as-you-type
Photon, run by Komoot, is an OSM geocoder designed for autocomplete, which Nominatim forbids. Its public endpoint is keyless and CORS-enabled:
const q = encodeURIComponent("berlin");
const res = await fetch(`https://photon.komoot.io/api/?q=${q}&limit=5`);
const { features } = await res.json();
features.forEach((f) => console.log(f.properties.name, f.geometry.coordinates)); // [lon, lat]Note the GeoJSON order: longitude first. It's a classic bug when switching between APIs.
#Geoapify: generous and commercial-friendly
Geoapify's free plan includes 3,000 credits a day at 5 requests a second, and its FAQ explicitly allows commercial and production use on the free plan, with attribution. Paid plans start at $59/month. It bundles geocoding, autocomplete, routing, isolines, places and map tiles under one key.
const params = new URLSearchParams({
text: "1600 Amphitheatre Parkway, Mountain View",
format: "json",
apiKey: process.env.GEOAPIFY_KEY,
});
const res = await fetch(`https://api.geoapify.com/v1/geocode/search?${params}`);
const { results } = await res.json();
console.log(results[0].lat, results[0].lon, results[0].formatted);#LocationIQ: the most free requests per day
LocationIQ gives 5,000 requests a day at 2 a second. It allows commercial use on the free plan if you add a prominent "Search by LocationIQ.com" link. Its API mirrors Nominatim's, so switching from Nominatim is a URL change:
curl "https://us1.locationiq.com/v1/search?key=$LOCATIONIQ_KEY&q=Statue+of+Liberty&format=json"#OpenCage: great data, trial-only free tier
OpenCage aggregates OSM with other open datasets and returns rich annotations (time zone, currency, what3words, flags). The free tier allows 2,500 requests a day at 1 a second, for testing only; production use needs a paid plan, from โฌ45/month.
#Postcodes and ZIP codes without a key
For postal-code lookups, Zippopotam.us covers 60+ countries with no key:
curl "https://api.zippopotam.us/us/90210"#Map tiles: displaying the map
Geocoding gives you coordinates; you still need a map to show them. Options:
- Leaflet or MapLibre GL (free, open source) with tiles from a provider. Geoapify, Mapbox, MapTiler and Stadia all have free tiers.
- OpenStreetMap's own tile servers are for light use only and also require a valid User-Agent and attribution. Don't use them as the backend of a busy app.
- Google Maps JavaScript API has its own free cap, separate from geocoding.
#Which one should you choose?
- Startup or side project needing commercial use: Geoapify or LocationIQ.
- Already on Google Cloud, low volume: Google Geocoding within the 10,000 monthly cap.
- Autocomplete search box: Photon, Geoapify autocomplete or Mapbox Search.
- One-off scripts and prototypes: Nominatim, politely.
- High volume: self-host Nominatim or Pelias on OSM data, or negotiate a paid plan.
See every geocoding API ranked by uptime and response time on our geocoding API rankings, or the keyless ones.
#FAQ
#What is the best free alternative to the Google Maps API?
For geocoding, Geoapify (3,000 free credits a day, commercial use with attribution) or LocationIQ (5,000 a day). For map display, MapLibre or Leaflet with a free tile provider.
#Is there a free geocoding API without an API key?
Yes: Nominatim and Photon, both based on OpenStreetMap. They're for light use: Nominatim allows at most 1 request a second and needs an identifying User-Agent.
#Is the Google Maps API still free in 2026?
Partly. Since March 2025, each API has a free monthly cap (10,000 events for Essentials APIs like Geocoding) instead of a $200 credit. You need a billing account, and usage above the caps is charged.
#Why does Nominatim return 403?
Usually because the request has no identifying User-Agent or Referer, or you exceeded 1 request per second. Set a User-Agent with your app name and a real URL or contact, and throttle requests. Placeholders count as missing: when we tested in November 2026, a User-Agent containing you@example.com got a 403.