Geocoding · head-to-head

OpenStreetMap vs Postcodes.io

OpenStreetMap

The core OpenStreetMap API serves and edits the raw map database underlying OSM — nodes, ways, and relations — over HTTPS at api.openstreetmap.org. Reading map data requires no authentication at all, while creating or modifying data requires an OAuth 2.0 token tied to an OSM account (the older Basic Auth/OAuth 1.0a login methods were retired in June 2024). It's a general-purpose data API rather than a geocoding service specifically — OSM points address-lookup users to the separate Nominatim service, and bulk-read users to Overpass.

Postcodes.io

Postcodes.io is a free, open-source (MIT-licensed) UK postcode lookup and geocoding API: it validates postcodes, reverse-geocodes coordinates to the nearest postcode, and returns administrative geography — ward, constituency, parish, LSOA/MSOA, and more — sourced from the ONS Postcode Directory. It's built and maintained by Ideal Postcodes as a free public service, with a paid Ideal Postcodes product available for teams needing rooftop-level precision or fresher data.

OpenStreetMapPostcodes.io
AuthenticationNoneNone
Pricingfreefree
FormatsXML, JSONJSON
CORSyesyes
HTTPSYesYes

OpenStreetMap supports 2 response formats, while Postcodes.io offers fewer — pick OpenStreetMap for more integration flexibility.

More comparisons