FreetierapisFree APIs you can call right now

Postcodes.io API

Postcode lookup & Geolocation for the UK

Called and docs checked Measured by usFrom the public-apis list
Our call
HTTP 200
Latency
249 ms
From a browser
Allowed
Key
No key
Docs link
Answered
GEThttps://api.postcodes.io/postcodes/SW1A1AA

Press Run: the request leaves from your browser, and you see what it gets back.

const res = await fetch("https://api.postcodes.io/postcodes/SW1A1AA");
if (!res.ok) throw new Error(`HTTP ${res.status}`);
const data = await res.json();
console.log(data);

Postcodes.io docsMore Geocoding APIs

Come back to see anything that changed: answers, keys, browser access, rate limits.

Our test call Measured by us

Request
GET https://api.postcodes.io/postcodes/SW1A1AA
Result
HTTP 200 in 249 ms (266 ms with the body)
From a browser
Browser OK Access-Control-Allow-Origin: *
HTTPS
Yes
Response
application/json, 1,943 bytes, a JSON object
Fields
status result
Rate-limit headers
none sent (that doesn't mean unlimited)

Change log Measured by us

No changes seen since we started tracking on 2026-11-06. Each check compares the answer, the key requirement, the browser (CORS) header and the rate limit with the run before.

What the list says From the public-apis list

Category
Geocoding
Auth
No key
CORS
Yes
Docs link
postcodes.io answered 200 in 2395 ms on 2026-11-06 Measured

Postcodes.io is listed in Geocoding. Postcodes.io needs no key: you can call it without signing up. The list says it sends CORS headers, so JavaScript on a web page can call it straight from the browser.

The list has 102 Geocoding APIs: 48 need no key, 53 need an API key and 1 uses OAuth, and 51 of them are marked as allowing browser calls. 23 others have the same setup, such as administrative-divisons-db, BigDataCloud's Free API and bng2latlong.

Postcodes.io and other Geocoding APIs

FactPostcodes.io (this page)BigDataCloud's Free APICountryGeoJSIP Address Details
Key needed From the public-apis listNo keyNo keyNo keyNo keyNo key
CORS, as listed From the public-apis listYesYesYesYesNot recorded
Our test call Measured by us249 ms5,159 ms7,868 ms2,866 ms181 ms
Browser call Measured by usAllowedAllowedAllowedAllowedAllowed
Docs link Measured by usAnsweredAnsweredAnsweredAnsweredAnswered

All 102 Geocoding APIs

Questions

Does Postcodes.io need an API key?

Postcodes.io needs no key: you can call it without signing up.

Can I call Postcodes.io from JavaScript in the browser?

Yes. When we called it it sent Access-Control-Allow-Origin: *, so a web page can call it directly.

Where are the Postcodes.io docs?

At https://postcodes.io. When we checked, the link answered 200 in 2395 ms.

What are some alternatives to Postcodes.io?

Other Geocoding APIs in the list include administrative-divisons-db, BigDataCloud's Free API, bng2latlong and Country.

Listing from public-apis (github.com/marcelscruz/public-apis), MIT. Measurements are ours: how we check.

Report a problem with this page