Coverage
type is a source-provided classification, not a fixed enum on either the database column or the API. It reflects whatever granularity each country’s source data actually distinguishes, and can gain new values as more sources are imported — don’t hardcode a switch over a closed list.Postcode Types
The five values present in the current dataset, most to least common:Query Examples
Look up postcodes for a country
Validate a postcode format
Use thepostal_code_regex field on the countries table to validate a postcode before querying:
Find postcodes by locality
Count postcodes per country
Availability by Format
The postcodes table is included in all SQL-based exports (MySQL, PostgreSQL, SQLite, SQL Server), the JSON export, and the CSV and YAML exports. It is not included in the GeoJSON export.Related
Get Postcode by Code
Exact lookup via the hosted API, free on every plan.
Get Postcodes by Country
Paginated listing and search via the hosted API. Requires Supporter+.
Database Schema
Full table definitions including the postcodes table structure.
Export Tool
Export postcodes data in your preferred format.