Skip to content

Postcode directory

published · September 16, 2026 · updated · September 23, 2026

A postcode directory is a country's list of every postcode with its status, places, region and centroid, installed whole so a missing code is an answer and not a gap.

A postcode directory is a country's list of postcodes with, for each one, whether it is in use, the places it is written with, the region it lies in and a centroid — installed as a whole, so that a code the directory lacks is an answer rather than a gap in the data.

What Spaw answers

Great Britain's directory is the ONS Postcode Directory, which carries introduction and termination dates, so postcode_status there can read terminated. Every other country's comes from the GeoNames postal-code dump under CC BY 4.0, which carries places, a region and a centroid but no dates, so a code found there is live. Each directory is recorded as complete or partial: only a complete one — the British directory, and the countries whose GeoNames copy reaches the operator's published total, fifteen of them on 16 September 2026 — can answer postcode_not_found, which makes the address invalid and free, and only about a code inside its scope: Great Britain's leaves out Northern Ireland's BT codes on licence grounds, and does not carry BFPO numbers or the BF1 and BX codes, so those are not looked up and answer postcode_status null. A partial directory confirms what it holds and denies nothing. The directory also feeds locality_matches_postcode, administrative_area_matches_postcode and, where no register located the building, latitude and longitude as a postcode_centroid. The region is compared under the names and codes people write for it, so CDMX matches a Mexico City postcode the directory files under the old name Distrito Federal, and Co. Dublin matches a Dublin routing key it files under the province of Leinster.

What it is not

It is not an address list. A postcode identifies an area, and the streets and buildings inside it come from the national address registers, not from the directory.

Related

markdown version: /glossary/postcode-directory.md

Verify addresses the same way

The Spaw API runs every check described here on each lookup, with an SMTP handshake that never sends mail. 10 free lookups a month, no card required.

Get your API key

More glossary

  • Area-code overlay

    An area-code overlay is a new area code added over the same area as an existing one, instead of splitting it, so neighbours can hold different codes and local calls need ten digits.

  • Calling window

    A calling window is the span of local hours a sender contacts people in. Spaw answers in_call_window from the number's time zones: clock arithmetic, not compliance advice.

  • Fictional number

    A fictional number sits in a range kept out of service for films, TV and other fiction: 555-0100 to 555-0199 in North America, and ranges Ofcom, ARCEP, ACMA and ComReg reserve elsewhere.

  • International (exit) prefix

    An international prefix is what is dialled to leave a country before the calling code: 00 in most of the world, 011 in North America. Spaw reads it and suggests a fix in did_you_mean.

  • International network number

    An international network number sits under a calling code the ITU gives a global service rather than a country, such as +870, +881, +882 or +883, so its country is null.

  • Live carrier check (HLR lookup)

    A live carrier check asks the mobile networks, at the moment of the lookup, whether a number is in service, which network serves it and whether it is roaming. On Spaw it is not enabled.

  • Number pooling (thousands-blocks)

    Number pooling splits a North American central office code into ten blocks of a thousand numbers, each assigned to a carrier separately, so one code can hold several carriers' numbers.

  • Number portability

    Number portability lets a subscriber keep a phone number when changing carrier. The number's block stays listed under the carrier it was issued to, so block data names the original holder.