Geocoding API - Official Registers, No Key avatar

Geocoding API - Official Registers, No Key

Pricing

from $0.35 / 1,000 results

Go to Apify Store
Geocoding API - Official Registers, No Key

Geocoding API - Official Registers, No Key

No API key, no login. Address to coordinates and back from 10 official government address registers: US Census, Canada NRCan, UK ONS postcodes, France BAN, Spain CartoCiudad, Netherlands BAG, Switzerland, Norway, Estonia, Poland. Up to 100 per call, open licences: you may store the results.

Pricing

from $0.35 / 1,000 results

Rating

0.0

(0)

Developer

Martin Petrov

Martin Petrov

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

4 days ago

Last modified

Features

Limited permissions

Share

Geocoding API - Official Registers

Problem: you need latitude/longitude for a list of addresses (or the address for a point), but Google and HERE forbid storing their results, OpenStreetMap's public Nominatim forbids bulk use, and cheap geocoders guess. For the US, Europe's best address registers and Canada, governments already publish exact, free, open-licence geocoders. They are just 10 different APIs.

This API: one call, up to 100 addresses and/or points, answered from the official register of each country in about 0.1-0.7 s per address. No API key, no login.

CountryOfficial sourcePrecisionLicence
United StatesU.S. Census Bureau Geocoder (TIGER)address range + county / census tract FIPSpublic domain
CanadaNatural Resources Canada Geolocatorinterpolated addressOGL-Canada
United KingdomONS Postcode Directory + OS Open Names (postcodes.io)postcode centroid / placeOGL v3
FranceIGN Geoplateforme, Base Adresse Nationalerooftop / entranceLicence Ouverte 2.0
SpainCartoCiudad (IGN + Catastro)entrance + cadastral referenceCC BY 4.0
NetherlandsPDOK Locatieserver (BAG register)rooftop + BAG IDCC0
Switzerlandgeo.admin.ch building address directoryrooftop + EGAIDfree OGD
NorwayKartverket (Matrikkel)entrance + cadastral numberCC BY 4.0
EstoniaMaa-amet In-ADSbuilding + ADS IDCC BY 4.0
PolandGUGiK UUG (PRG register)address point + TERYTfree public data

Why it is different

  • Open licences: you may store and reuse the coordinates (Google Maps Platform terms forbid caching geocodes beyond 30 days).
  • Official IDs in every row (official_id): BAG, Catastro, TIGER, EGAID, Matrikkel, ADS, TERYT. Join your data with government datasets.
  • US census tract in the same call (includeCensus: true): state, county and tract GEOID for demographics, insurance, HMDA/CRA lending work.
  • Country auto-detection from the postcode format, the city or the country name. Mixed lists work. Force it with country or a line prefix FR: ....
  • Honest statuses: ok, not_found, unavailable (register down, retried 3 times; never a guessed point), unsupported_country, invalid_input. A match outside the city you wrote gets score <= 0.4 and a note.
  • Reverse geocoding (coordinates): nearest official address in FR, ES, NL, NO, PL; nearest postcode in GB; county + census tract in US.
  • Only changes mode: onlyNew: true + monitorId re-checks a stored address list on a schedule and returns only rows whose match changed.

Example (API)

curl -X POST "https://api.apify.com/v2/acts/martin10291~official-geocoding-api/run-sync-get-dataset-items?token=YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"addresses": ["350 Fifth Avenue, New York, NY 10118", "Damrak 1, 1012 LG Amsterdam", "Calle Gran Via 28, Madrid"], "coordinates": ["52.3759,4.8975"], "includeCensus": true}'

Output rows (real output):

{"input": "350 Fifth Avenue, New York, NY 10118", "country_code": "US", "status": "ok",
"lat": 40.7478508, "lon": -73.9850756, "formatted_address": "350 5TH AVE, NEW YORK, NY, 10118",
"street": "5TH AVE", "house_number": "350", "postcode": "10118", "city": "NEW YORK", "region": "NY",
"precision": "interpolated (address range)", "score": 1.0, "official_id": "TIGER:59653473",
"census": {"state_fips": "36", "state": "New York", "county_fips": "36061", "county": "New York County",
"tract_geoid": "36061007600", "tract": "76"},
"source": "U.S. Census Bureau Geocoder", "licence": "Public domain (U.S. Government work)", "response_ms": 645}
{"input": "Damrak 1, 1012 LG Amsterdam", "country_code": "NL", "status": "ok", "lat": 52.3771445, "lon": 4.8980385,
"formatted_address": "Damrak 1, 1012LG Amsterdam", "street": "Damrak", "house_number": "1", "postcode": "1012LG",
"city": "Amsterdam", "region": "Noord-Holland", "precision": "rooftop (BAG address)", "score": 1.0,
"official_id": "BAG:0363200012113669", "source": "PDOK Locatieserver (BAG)", "licence": "CC0 1.0", "response_ms": 274}

Use from AI agents (MCP)

Add the Apify MCP server (https://mcp.apify.com?tools=martin10291/official-geocoding-api) to Claude, Cursor or any MCP client and ask: "Geocode these store addresses and give me the census tract for the US ones".

Schedule and chain

  • Keep an address list clean: save a task with your list, onlyNew: true and a monitorId, schedule it weekly. You get only addresses whose official match changed.
  • After a lead or store scraper: pass its address column as addresses; the dataset rows keep your input text, so you can join back.

Input

FieldWhat it does
addressesAddresses, postcodes or place names, up to 100 per run
coordinatesPoints lat,lon for reverse geocoding (optional)
countryauto (default) or one of US, CA, GB, FR, ES, NL, CH, NO, EE, PL
includeCensusUS: add state, county and census tract FIPS
onlyNew / monitorIdReturn only rows whose match changed since the last run

FAQ

Germany, Italy, other countries? Not yet: they have no free national geocoder without a key. Rows from other countries return unsupported_country and are not a guessed point. UK street addresses? The UK address register (AddressBase) is not open, so GB rows are at postcode level (or place level without a postcode). Pricing? $0.50 per 1,000 result rows (one row per address or point). Limits? 100 items per run; the US Census geocoder takes about 0.5-1 s per address, the others 0.1-0.6 s. 6 lookups run in parallel.