{postcode}: Lookup Terminated Postcode

API: postcodes.io:postcodes.io
Endpoint: /terminated_postcodes/{postcode}
Response format: application/json
Auth: unknown
Method: GET
Last Status: 200
Latency: 101ms

Description

Returns the year and month when a postcode was terminated from active use, along with the last known latitude and longitude coordinates. Use this to lookup historical postcode data that is no longer in the active postcode database.

From spec: Returns details of a terminated postcode (a postcode that is no longer in use).

Usage Tips

- Returns 404 if the postcode is still active or never existed - Terminated postcodes retain their last known geolocation data - Useful for historical address lookup and data migration scenarios

Parameters (1)

postcode (string, path, required)

Terminated postcode to lookup

Examples (1)

Lookup a terminated Aberdeen postcode (AB1 0AA) probe-gate

Demonstrates retrieving termination metadata for a postcode that was retired in 1996, showing year_terminated and month_terminated fields.

curl 'https://api.postcodes.io/terminated_postcodes/AB1%200AA'
import requests

resp = requests.get("https://api.postcodes.io/terminated_postcodes/AB1%200AA")
data = resp.json()
import zingu_apis

api = zingu_apis.api("postcodes")
result = api.fetch("terminated_postcodes/{postcode}")

for item in result:
    print(item)
const resp = await fetch("https://api.postcodes.io/terminated_postcodes/AB1%200AA");
const data = await resp.json();

Probe History

Latency

Status Codes

TimeStatusLatencySize
2026-04-16 02:01:23.214694 200 101ms
2026-04-15 03:52:43.081051 200 129ms
2026-04-14 01:07:31.957391 200 169ms
2026-04-12 12:29:03.542079 200 173ms
2026-04-10 06:50:59.132640 200 98ms