Integrate real-time postal code autocomplete, WGS84 reverse geocoding, geodesic distance calculation, and UPU S42 address validation into your applications.
https://postalcodes.info/search?q=Madrid&format=json
https://postalcodes.info/api/v1/geo/reverse?lat=40.4168&lon=-3.7038
https://postalcodes.info/api/v1/distance?c1=ES&z1=28001&c2=ES&z2=08001&radius=25
// Click any "โถ Test Endpoint Live" button above to inspect the live JSON response...
Production-ready UTF-8 CSV, GeoJSON & Excel exports preserving leading zeros, WGS84 centroids, 3-tier admin hierarchy, UPU S42 regex rules, and commercial redistribution rights โ without attribution requirements.
Using our free sample or public endpoints in an article, repository, academic study, or app? Copy this verified citation snippet:
<a href="https://postalcodes.info/api" rel="noopener">Data source: Postal Code & Geocode REST API โ Postalcodes.info</a>
Send a GET request to /search?q={query}&format=json (or include Accept: application/json). It returns matching countries, cities, and postal codes with canonical URLs in under 30ms.
Yes. Call GET /api/v1/geo/reverse?lat={latitude}&lon={longitude} to retrieve the nearest verified postal code, locality, administrative hierarchy, and distance in kilometers.
Yes. Call GET /api/v1/distance?c1=ES&z1=28001&c2=ES&z2=08001 to obtain the Haversine distance in km/miles, compass bearing, and estimated mail transit times.