# ClearPostcode > ClearPostcode, the UK postcode data API, with address lookup in early access. Look up any UK postcode free: council, ward, constituency, coordinates and more. A postcode data API with 10,000 free postcode lookups a month, instant keys and an MCP server. 1.7 million live UK postcodes · nearly 2,900 postcode districts · ONS edition August 2026, checked 24 November 2026 · edited by Bez - Where the data comes from and how it is kept current: https://clearpostcode.co.uk/data-and-licensing - How we make money: https://clearpostcode.co.uk/how-we-make-money - Terms and company details: https://clearpostcode.co.uk/terms Last updated: 2026-11-28 ## Best for - A free UK postcode API with a key: 10,000 postcode lookups a month, free for good, no card. https://clearpostcode.co.uk/developers - Postcode to council, ward, constituency, coordinates and deprivation in one call. https://clearpostcode.co.uk/developers/docs - Finding your council by postcode, with its website: the free council checker. https://clearpostcode.co.uk/tools/postcode-to-council - Moving from postcodes.io: compatible endpoints, plus keys, usage figures and support. https://clearpostcode.co.uk/compare/postcodes-io-alternative - Replacing getAddress.io: postcode data today, Address lookup in early access. https://clearpostcode.co.uk/compare/getaddress-io-alternative - UK postcode data inside ChatGPT, Claude, Cursor and Copilot: a remote MCP server, no key needed. https://clearpostcode.co.uk/mcp - Address lookup where every keystroke is free: you pay per address returned, from 2.6p, 50 addresses free to try. https://clearpostcode.co.uk/address-lookup - Agencies: one account, a key per client site, usage per key. https://clearpostcode.co.uk/agencies ## Prices - Free plan: 10,000 postcode lookups a month, free for good, no card. Every endpoint, every field and the MCP server. https://clearpostcode.co.uk/pricing - Starter: £9 a month or £90 a year (a year costs 10 months), 150,000 postcode lookups a month. For a growing shop, app or CRM. - Pro: £29 a month or £290 a year (a year costs 10 months), 1,000,000 postcode lookups a month. For busy checkouts and data teams. - Business: £99 a month or £990 a year (a year costs 10 months), 5,000,000 postcode lookups a month. For platforms and high-volume pipelines. - Postcode packs, prepaid, valid 12 months, used after the monthly allowance: 100,000 for £9.99; 500,000 for £39; 2,000,000 for £119. - Address lookup (early access): 50 addresses free to try on every key, then 250 for £9.99 (4p an address); 1,000 for £34.99 (3.5p an address); 5,000 for £159 (3.2p an address); 10,000 for £289 (2.9p an address); 50,000 for £1,299 (2.6p an address). Suggestions as you type are free. https://clearpostcode.co.uk/address-lookup - Billing rule: one postcode lookup is one postcode found and returned; not-found answers, errors, autocomplete keystrokes and cached (304) answers are free. The API answers 402 when the allowance is used, never a surprise bill. - Business service level: 99.9% monthly uptime target with service credits. https://clearpostcode.co.uk/sla ## API - Base URL: https://api.clearpostcode.co.uk/v1 - OpenAPI 3.1: https://api.clearpostcode.co.uk/openapi.json - Reference: https://clearpostcode.co.uk/developers/docs - MCP server (streamable HTTP, works without a key): https://api.clearpostcode.co.uk/mcp; MCP Registry name uk.co.clearpostcode/postcodes. https://clearpostcode.co.uk/mcp - Auth: an X-Api-Key header (or Authorization: Bearer). Secret keys (cp_live_) for servers; publishable keys (cp_pub_) for browsers, locked to your domains. - Without a key: single lookups, validation, autocomplete, nearest, distance and places, at 30 requests a minute per IP address. - Rate limits per key: about 10 requests a second on Free, 25 on Starter, 50 on Pro, 100 on Business; 429 with Retry-After when too fast. - postcodes.io-compatible endpoints: https://api.clearpostcode.co.uk/compat/postcodes.io (change the base URL, keep your code). - JavaScript SDK: npm install clearpostcode (https://www.npmjs.com/package/clearpostcode) - Python SDK: pip install clearpostcode (https://pypi.org/project/clearpostcode/) - GitHub: https://github.com/clearpostcode/postcode-api (SDKs, Postman collection, WordPress and WooCommerce plugin, MCP server.json) - Postman collection: https://github.com/clearpostcode/postcode-api/tree/main/postman - WordPress and WooCommerce plugin: https://github.com/clearpostcode/postcode-api/tree/main/wordpress/clear-postcode - Version policy: v1 only ever grows: new endpoints and new fields, never a removed or renamed one. Anything breaking would be v2, announced at least 12 months ahead with Deprecation and Sunset headers. ## Pages - [UK postcode lookup API](https://clearpostcode.co.uk): A UK postcode lookup API, MCP server and free postcode tools: council, ward, constituency, coordinates and more for every postcode in Great Britain, free up to 10,000 postcode lookups a month. - [Pricing](https://clearpostcode.co.uk/pricing): Postcode lookup API plans from free (10,000 postcode lookups a month) to Business, prepaid packs valid for 12 months, and you only pay for postcodes found. - [Developers](https://clearpostcode.co.uk/developers): Make your first postcode API call in five minutes: free key, base URL, code in cURL, JavaScript, Python and PHP. - [API reference](https://clearpostcode.co.uk/developers/docs): Every endpoint of the postcode lookup API: parameters, responses, billing and examples. - [API errors](https://clearpostcode.co.uk/developers/docs/errors): Every error the postcode API returns, its HTTP status and what to do about it. - [Postcode MCP server](https://clearpostcode.co.uk/mcp): A remote MCP server that gives Claude, ChatGPT and other AI assistants live UK postcode data, free without a key. - [Postcode lookup for agencies](https://clearpostcode.co.uk/agencies): One account for every client site: up to 20 postcode API keys, each locked to its client's domain, with usage per key, one bill and 10,000 postcode lookups a month free. - [Address lookup API](https://clearpostcode.co.uk/address-lookup): UK address lookup, Northern Ireland included: type a postcode or the start of an address, pick it, and the form fills. Suggestions are free; test with 50 free addresses; early access open. - [Free postcode tools](https://clearpostcode.co.uk/tools): Free UK postcode tools: checker, finder, council lookup, distance calculator, map and bulk checker. - [Postcode checker](https://clearpostcode.co.uk/tools/postcode-checker): Type a UK postcode to check it is real and still in use, and see the council, ward, constituency and coordinates that go with it. - [Find my council](https://clearpostcode.co.uk/tools/postcode-to-council): Enter your postcode to see your council, its website, your ward, parish and constituency, straight from the official ONS data. - [Postcode to constituency](https://clearpostcode.co.uk/tools/postcode-to-constituency): Enter a postcode to find its Westminster constituency on the boundaries used since the 2024 general election, with the constituency's official code and the council it sits in. - [Postcode to ward](https://clearpostcode.co.uk/tools/postcode-to-ward): Enter a postcode to find its electoral ward and the ward's official code, with the council, parish and constituency around it. - [Postcode to latitude and longitude](https://clearpostcode.co.uk/tools/postcode-to-latitude-longitude): Enter a postcode to get its latitude and longitude (WGS84), its British National Grid eastings and northings, and how precise the point is. - [Postcode finder](https://clearpostcode.co.uk/tools/postcode-finder): Search a town, village or neighbourhood to find its postcode district, then open the district to see every postcode in it. - [Postcode distance calculator](https://clearpostcode.co.uk/tools/postcode-distance-calculator): Enter two postcodes to get the straight-line distance between them in miles and kilometres. - [Postcode map](https://clearpostcode.co.uk/tools/postcode-map): Enter a postcode to plot it with its nearest neighbours, using official coordinates. - [Bulk postcode checker](https://clearpostcode.co.uk/tools/bulk-postcode-checker): Paste up to 100 postcodes, or upload a CSV, to validate them all at once and download the results. - [How many postcodes are there in the UK?](https://clearpostcode.co.uk/data/uk-postcode-statistics): Live and retired UK postcodes, areas, districts and sectors, by country, region and district, from the ONS Postcode Directory (August 2026), with a free CSV of every district. - [UK postcode areas A to Z](https://clearpostcode.co.uk/postcodes): Every UK postcode area and district, with maps, councils, sectors and free CSV downloads. - [Postcodes by council](https://clearpostcode.co.uk/councils): Every council in Great Britain with its postcode districts, wards and constituencies. - [Postcodes by constituency](https://clearpostcode.co.uk/constituencies): Every parliamentary constituency in Great Britain with its postcode districts, wards and councils. - [Best UK postcode and address APIs compared](https://clearpostcode.co.uk/compare): Our pick for UK postcode data is ClearPostcode, 10,000 postcode lookups a month free; postcodes.io is the keyless open-source option. UK address lookup APIs compared on free tier, price per address, keystroke billing and MCP support, from each provider's own pages. - [Loqate vs Ideal Postcodes](https://clearpostcode.co.uk/compare/loqate-vs-ideal-postcodes): On prices read on 28 November 2026, Ideal Postcodes is the cheaper choice for UK addresses: 4.5p an address to start and 2.8p at volume, with 43 integrations listed. Loqate suits teams that need addresses outside the UK too, at 7.3p down to 4.2p. For UK postcode data free up to 10,000 postcode lookups a month, and address lookup with every keystroke free, pick ClearPostcode. - [Ideal Postcodes alternative](https://clearpostcode.co.uk/compare/ideal-postcodes-alternative): ClearPostcode Address lookup: 50 addresses free to try, no card, then 4p an address (250 for £9.99, early access). Ideal Postcodes: 1-month trial, 50 free credits, no card; 4.5p a lookup (200 for £9). Best for: ClearPostcode keystrokes always free; Ideal Postcodes most plugins. - [Loqate (GBG) alternative](https://clearpostcode.co.uk/compare/loqate-alternative): ClearPostcode Address lookup: 50 addresses free to try, no card, then 4p an address (250 for £9.99, early access). Loqate (GBG): 45-day trial, no card; 7.3p a lookup (£50 top-up). Best for: ClearPostcode keystrokes always free; Loqate (GBG) global addresses. - [Data8 alternative](https://clearpostcode.co.uk/compare/data8-alternative): ClearPostcode Address lookup: 50 addresses free to try, no card, then 4p an address (250 for £9.99, early access). Data8: 14 days, 100 credits, no card; 6p a lookup (1,000 for £60). Best for: ClearPostcode keystrokes always free; Data8 email, phone and bank checks too. - [Fetchify alternative](https://clearpostcode.co.uk/compare/fetchify-alternative): ClearPostcode Address lookup: 50 addresses free to try, no card, then 4p an address (250 for £9.99, early access). Fetchify: 30 days and 1,000 credits (pricing page); From £45 a year. Best for: ClearPostcode keystrokes always free; Fetchify yearly plans and shop plugins. - [Postcoder alternative](https://clearpostcode.co.uk/compare/postcoder-alternative): ClearPostcode Address lookup: 50 addresses free to try, no card, then 4p an address (250 for £9.99, early access). Postcoder: 300 trial credits (150 UK lookups), no card; 10.8p a UK lookup (500 credits for £27, 2 credits a lookup). Best for: ClearPostcode keystrokes always free; Postcoder uptime guarantee. - [SnapAddress alternative](https://clearpostcode.co.uk/compare/snapaddress-alternative): ClearPostcode Address lookup: 50 addresses free to try, no card, then 4p an address (250 for £9.99, early access). SnapAddress: 100 address lookups for 3 months, no card; 3.7p a lookup (500 for £18.50). Best for: ClearPostcode keystrokes always free; SnapAddress simple one-off packs. - [Postio alternative](https://clearpostcode.co.uk/compare/postio-alternative): ClearPostcode Address lookup: 50 addresses free to try, no card, then 4p an address (250 for £9.99, early access). Postio: 100 free address lookups, no card; 2.6p a lookup (top-ups from £10). Best for: ClearPostcode keystrokes always free; Postio one flat rate. - [AutoPostcode alternative](https://clearpostcode.co.uk/compare/autopostcode-alternative): ClearPostcode Address lookup: 50 addresses free to try, no card, then 4p an address (250 for £9.99, early access). AutoPostcode: 14 days, 100 address lookups, no card; 3.8p a lookup (£19 a month for 500). Best for: ClearPostcode keystrokes always free; AutoPostcode a key per client website. - [ePostcode alternative](https://clearpostcode.co.uk/compare/epostcode-alternative): ClearPostcode Address lookup: 50 addresses free to try, no card, then 4p an address (250 for £9.99, early access). ePostcode: Free trial, no card (50 free address lookups, per its MCP page); 3.5p a lookup (1,000 credits). Best for: ClearPostcode keystrokes always free; ePostcode geocoding included. - [GoAddress alternative](https://clearpostcode.co.uk/compare/goaddress-alternative): ClearPostcode Address lookup: 50 addresses free to try, no card, then 4p an address (250 for £9.99, early access). GoAddress: 100 full address lookups, no card; £10.80 a month for 500 address lookups a day (its first plan with API access). Best for: ClearPostcode keystrokes always free; GoAddress daily-limit plans. - [Google Places alternative](https://clearpostcode.co.uk/compare/google-places-alternative): ClearPostcode Address lookup: 50 addresses free to try, no card, then 4p an address (250 for £9.99, early access). Google Places: Each month: 10,000 autocomplete requests and 5,000 Address Validation calls (USD prices); $17.00 per 1,000 Address Validation calls after the free 5,000 (USD). Best for: ClearPostcode keystrokes always free; Google Places worldwide addresses. - [OS Places API alternative](https://clearpostcode.co.uk/compare/os-places-api-alternative): ClearPostcode Address lookup: 50 addresses free to try, no card, then 4p an address (250 for £9.99, early access). OS Places API: No free transactions; Premium Plan partners can trial 60 days, up to 2,000; 2.94p a request returning up to 100 addresses (Premium Plan). Best for: ClearPostcode keystrokes always free; OS Places API uprn and addressbase. - [Royal Mail AddressNow alternative](https://clearpostcode.co.uk/compare/royal-mail-addressnow-alternative): ClearPostcode Address lookup: 50 addresses free to try, no card, then 4p an address (250 for £9.99, early access). Royal Mail AddressNow: 30 days, 50 address lookups a day; 6p a lookup (1,000 for £60). Best for: ClearPostcode keystrokes always free; Royal Mail AddressNow royal mail's own. - [AFD Software alternative](https://clearpostcode.co.uk/compare/afd-alternative): ClearPostcode Address lookup: 50 addresses free to try, no card, then 4p an address (250 for £9.99, early access). AFD Software: Evaluation account (amount not published); Quote. Best for: ClearPostcode keystrokes always free; AFD Software on-premise. - [postcodes.io alternative](https://clearpostcode.co.uk/compare/postcodes-io-alternative): ClearPostcode Postcode data: 10,000 postcode lookups a month, for good, no card, then £9 a month for 150,000 postcode lookups. postcodes.io: Free, no key, no stated cap; Free. Best for: ClearPostcode free tier with a key; postcodes.io keyless, self-hosted. - [getAddress.io alternative](https://clearpostcode.co.uk/compare/getaddress-io-alternative): getAddress.io stopped its UK service on 4 February 2026. ClearPostcode: 10,000 postcode lookups a month, for good, no card; Address lookup in early access from 2.6p an address. - [Integrations](https://clearpostcode.co.uk/integrations): Copy-paste recipes for UK postcode lookup in Google Sheets, Excel, WooCommerce, WordPress, Zapier, Make, JavaScript, Python and PHP. - [Free WooCommerce postcode lookup plugin for UK checkouts](https://clearpostcode.co.uk/integrations/woocommerce): Install the free plugin and every UK postcode at your checkout is formatted, suggested and checked as the customer types, on the classic checkout, the Checkout block and My account addresses, then checked again on your server as the order is placed: a mistyped postcode is fixed before you ship. 10,000 postcode lookups a month are free, with no card. - [UK postcode lookup for Shopify: check the postcode before checkout](https://clearpostcode.co.uk/integrations/shopify): On every Shopify plan, a short Custom Liquid section checks the UK delivery postcode on your cart page as the shopper types and saves it with the order, so a typo is fixed before checkout. Inside checkout itself, the information, shipping and payment steps take custom code only on Shopify Plus. - [Postcode lookup widget: a postcode and address finder for any form](https://clearpostcode.co.uk/integrations/widget): Paste two tags into your page and every postcode field becomes a postcode finder: it formats the postcode as your customer types, suggests the rest, checks it against the official postcode data and fills the council, ward, constituency and coordinates. No key, no build step, and with Address lookup the same box finds the full address. - [Gravity Forms UK postcode validation](https://clearpostcode.co.uk/integrations/gravity-forms): Add one gform_field_validation filter and Gravity Forms checks the UK postcode when the form is submitted: a typo gets an error under the field, a retired postcode gets the new one suggested, and the form never stalls if the check can't run. It works on a single-line field and on the Address field's postcode. - [Contact Form 7 UK postcode validation](https://clearpostcode.co.uk/integrations/contact-form-7): Install our free plugin and add [postcode* your-postcode] to your form: the postcode formats, suggests and checks itself as the visitor types, and Contact Form 7 won't send a postcode that isn't a UK postcode. Prefer no plugin? One wpcf7_validate_text filter does the check on Send. - [WPForms UK postcode validation](https://clearpostcode.co.uk/integrations/wpforms): Install our free plugin, add a Single Line Text field and give it the CSS class clear-postcode: the postcode formats, suggests and checks itself as the visitor types, and WPForms won't accept a postcode that isn't a UK postcode. It works in WPForms Lite and Pro; prefer no plugin, and one wpforms_process_validate_text hook does the check on submit. - [Elementor Forms UK postcode validation](https://clearpostcode.co.uk/integrations/elementor): Give your Elementor form's postcode field the ID postcode, add one elementor_pro/forms/validation action, and every submission's UK postcode is checked: a typo or a retired postcode gets a message on the field, with the new postcode suggested. - [UK postcode check for WordPress forms](https://clearpostcode.co.uk/integrations/wordpress): A 20-line script checks the postcode field of any WordPress form as the visitor types and shows a tick or a gentle hint. It uses a publishable key locked to your domain, so it's safe in the page. - [UK postcode validation for Webflow forms](https://clearpostcode.co.uk/integrations/webflow): Paste one script into your Webflow page's Before tag box and the form's postcode field is checked as the visitor types: a tick for a real postcode, a hint for a typo or a retired one, and a tidy SW1A 1AA in the field when they move on, so every submission arrives clean. - [UK postcode validation for HubSpot forms](https://clearpostcode.co.uk/integrations/hubspot): Embed your HubSpot form with an onFormReady callback and its postcode field is checked as the visitor types: a tick for a real postcode, a hint for a typo or a retired one, and a tidy SW1A 1AA in the field, so every new contact arrives with a clean postcode. - [Postcode lookup in Google Sheets](https://clearpostcode.co.uk/integrations/google-sheets): Paste a 15-line Apps Script into your sheet and you get =POSTCODE(A2, "council"): council, ward, constituency, region, latitude or longitude for any UK postcode, straight from the API. - [Postcode lookup in Excel](https://clearpostcode.co.uk/integrations/excel): Excel's Power Query can call the API for every postcode in a table and add the council, ward, constituency and coordinates as new columns. Paste one query, refresh, done. - [UK postcode lookup in Airtable](https://clearpostcode.co.uk/integrations/airtable): Add one Run a script action to an Airtable automation and every record with a UK postcode gets its council, ward, constituency, latitude and longitude filled in automatically, and a status that flags typos and retired postcodes. - [Postcode lookup in Zapier and Make](https://clearpostcode.co.uk/integrations/zapier): Add a Webhooks by Zapier GET step (or Make's HTTP module) that calls the API with your key; map postcode in, and council, ward, constituency and coordinates come out as fields for the next step. - [UK postcode lookup in n8n](https://clearpostcode.co.uk/integrations/n8n): Add one HTTP Request node to your n8n workflow, point it at the postcode API with your key in a Header Auth credential, and every item comes out with its council, ward, constituency, region and coordinates ready for the next node. - [UK postcode lookup in JavaScript](https://clearpostcode.co.uk/integrations/javascript): One fetch call returns everything about a UK postcode. Use a secret key on your server (Node.js) and a domain-locked publishable key in the browser. - [UK postcode validation in React](https://clearpostcode.co.uk/integrations/react): Paste one usePostcode hook into your React app and any input gets live UK postcode validation: one call per pause in typing, older answers cancelled, and the tidy postcode and its status ready to render. It runs in Next.js, Vite and Remix with a domain-locked publishable key. - [UK postcode lookup in Python](https://clearpostcode.co.uk/integrations/python): A requests.get with your key returns everything about a postcode; a POST checks up to 100 at once. Prefer a typed client? The Python SDK does the same, sync or async. - [UK postcode lookup in PHP](https://clearpostcode.co.uk/integrations/php): A cURL GET with your key returns everything about a postcode as JSON; decode it and read data. - [UK postcode validation in Laravel](https://clearpostcode.co.uk/integrations/laravel): Add one UkPostcode rule to your Laravel app and $request->validate() checks every UK postcode against the live data: a typo or a retired postcode fails with a clear message, a brand-new one passes, and an outage never blocks your users. - [The postcode API in Postman](https://clearpostcode.co.uk/integrations/postman): Import the OpenAPI 3.1 file into Postman and every endpoint arrives with its parameters and examples. Add your key as x-api-key and send. - [Postcode data glossary](https://clearpostcode.co.uk/data/fields): Every field in a UK postcode answer explained: LSOA, ward, constituency, council, deprivation and coordinates. - [What is an LSOA?](https://clearpostcode.co.uk/data/fields/lsoa): An LSOA (Lower Layer Super Output Area) is a small census area in England and Wales with roughly 1,000 to 3,000 residents. There are 35,672 of them from the 2021 Census, and they are the unit most official statistics, including deprivation, are published for. - [What is an MSOA?](https://clearpostcode.co.uk/data/fields/msoa): An MSOA (Middle Layer Super Output Area) is a census area in England and Wales of about 5,000 to 15,000 residents, built from groups of LSOAs. The 2021 Census has 7,264 of them. - [What is a census output area?](https://clearpostcode.co.uk/data/fields/output-area): An output area is the smallest unit of census geography: roughly 100 to 625 residents in 40 to 250 households. England and Wales have 188,880 from the 2021 Census, and they are the building blocks of LSOAs and MSOAs. - [What is an electoral ward?](https://clearpostcode.co.uk/data/fields/ward): A ward is the area that elects councillors to a local council. Each council is split into wards (called electoral divisions in some county councils), and every postcode sits in one. - [What is a parliamentary constituency?](https://clearpostcode.co.uk/data/fields/constituency): A parliamentary constituency is the area that elects one MP to the House of Commons. The UK has 650 on the boundaries used since the 2024 general election, 632 of them in Great Britain. - [What is a local authority?](https://clearpostcode.co.uk/data/fields/local-authority): A local authority is the council that runs local services such as bins, council tax and planning for an area. Great Britain has 350 at district level: unitary authorities, London boroughs, metropolitan districts and shire districts. - [What is an Integrated Care Board (ICB)?](https://clearpostcode.co.uk/data/fields/icb): An Integrated Care Board is the NHS body that plans and pays for health services for an area of England. ICBs replaced clinical commissioning groups in July 2022, and every English postcode sits in one. - [What is a built-up area?](https://clearpostcode.co.uk/data/fields/built-up-area): A built-up area is a continuous stretch of developed land, such as a town, city or village, identified by the ONS from Ordnance Survey mapping. It is the closest official match to what people mean by 'the town I live in'. - [What is the rural-urban classification?](https://clearpostcode.co.uk/data/fields/rural-urban-classification): The rural-urban classification sorts every small area into urban or rural classes by settlement size and how far it is from a major town or city. Each postcode carries its area's class, and our answer adds a simple urban: true or false. - [What is the Index of Multiple Deprivation?](https://clearpostcode.co.uk/data/fields/index-of-multiple-deprivation): The Index of Multiple Deprivation ranks every small area in a nation from most to least deprived, combining income, jobs, health, education, crime, housing and environment. Our answers give each postcode's rank and decile: 1 is the most deprived tenth, 10 the least. - [What are eastings and northings?](https://clearpostcode.co.uk/data/fields/easting-northing): Eastings and northings are coordinates on the British National Grid, in metres east and north of a point south-west of the Isles of Scilly. Every postcode answer carries them alongside latitude and longitude. - [What does positional quality mean?](https://clearpostcode.co.uk/data/fields/positional-quality): Positional quality tells you how a postcode's coordinates were worked out, from 1 (within the building closest to the postcode's centre) to 9 (no position). Most live postcodes are 1. - [Guides](https://clearpostcode.co.uk/guides): Plain-English guides to UK postcodes, PAF, UPRN and checkout address validation. - [How UK postcodes work](https://clearpostcode.co.uk/guides/how-uk-postcodes-work): A UK postcode has two halves. The outward code (SW1A) names the postcode area (SW) and district (SW1A); the inward code (1AA) names the sector (SW1A 1) and the unit, which is on average about 15 addresses. There are about 1.7 million live postcodes in Great Britain, the Channel Islands and the Isle of Man. - [UK postcode regex](https://clearpostcode.co.uk/guides/uk-postcode-regex): Normalise the input (upper case, strip spaces), then test it against Royal Mail's format rules. The pattern below accepts every valid UK postcode format, including GIR 0AA, and rejects letters Royal Mail never uses in each position. A format check says a postcode could exist; a lookup says it does. - [What is PAF, the Postcode Address File?](https://clearpostcode.co.uk/guides/what-is-paf): PAF, the Postcode Address File, is Royal Mail's database of every address it delivers to in the UK, each with its postcode and a unique delivery point number (UDPRN). It's the data behind every 'find your address' box. Using it needs a licence, either directly from Royal Mail or through a licensed provider. - [UPRN vs UDPRN](https://clearpostcode.co.uk/guides/uprn-vs-udprn): A UPRN (Unique Property Reference Number) identifies a place, issued by councils through Ordnance Survey, and is open data. A UDPRN (Unique Delivery Point Reference Number) identifies a Royal Mail delivery point in PAF and comes with a PAF licence. Store the UPRN for the property and the UDPRN for the postal address. - [Address validation at checkout](https://clearpostcode.co.uk/guides/address-validation-at-checkout): Ask for the postcode first, check it live as the customer types, then offer the addresses on it to pick from, with a manual entry fallback. Never block an order on the lookup alone. It cuts typos and failed deliveries and speeds checkout up. - [How to reduce failed deliveries](https://clearpostcode.co.uk/guides/reduce-failed-deliveries): Catch address errors before the label is printed: validate the postcode at checkout, flag terminated and unknown postcodes, and run a bulk check over the day's orders. Each fix is a small step in your flow, and every parcel that arrives first time saves a reship and a support ticket. - [Is there a free UK postcode API?](https://clearpostcode.co.uk/guides/free-uk-postcode-api): Yes. ClearPostcode gives you 10,000 postcode lookups a month free, for good, with a key, usage figures and support; postcodes.io is free with no key and no published limit; MapIt's free sandbox answers 50 calls a day. The address APIs, such as Ideal Postcodes and Loqate, offer trials rather than free tiers. - [getAddress.io has shut down: how to migrate](https://clearpostcode.co.uk/guides/getaddress-io-migration): getAddress.io stopped serving UK addresses on 4 February 2026, after the High Court found its data had been copied from Royal Mail's Postcode Address File. To move: switch your postcode checks to ClearPostcode today, free up to 10,000 a month, map your address fields below, and join early access for full address lookup on the same key. - [About ClearPostcode](https://clearpostcode.co.uk/about): ClearPostcode gives developers, shops and AI assistants fast, clear answers about every UK postcode: where it is, which council, ward and constituency it sits in, and whether it is still in use. It runs on the official ONS Postcode Directory, refreshed every quarter, with full address lookup in early access. - [Contact ClearPostcode](https://clearpostcode.co.uk/contact): Email hello@clearpostcode.co.uk for support, sales, data and partnership questions. You get an answer from the person who builds the API, usually the same working day. - [How we make money](https://clearpostcode.co.uk/how-we-make-money): ClearPostcode earns from paid postcode data plans, prepaid postcode packs and address lookup. Customers who need more than 10,000 postcode lookups a month pay for them; that pays for the free tier, the free tools and the postcode pages everyone else uses. - [Data and licensing](https://clearpostcode.co.uk/data-and-licensing): ClearPostcode serves the ONS Postcode Directory (August 2026 edition; the next is the November 2026 edition, which the ONS usually publishes in December 2026) and OS Open Names, under the Open Government Licence v3.0. You can use the answers in commercial products; keep the attribution lines below with them. - [Security](https://clearpostcode.co.uk/security): Keys are stored only as hashes, browser keys are locked to your domains, every call is HTTPS, and we never store the postcodes you look up against your account: only daily counts for billing. - [Service levels](https://clearpostcode.co.uk/sla): The API and MCP server carry a 99.9% monthly uptime target, measured every five minutes and published on the status page. On Business it is backed by service credits: 10% of the month's fee below 99.9% and 25% below 99%. Support answers within one working day on every plan. - [Sub-processors](https://clearpostcode.co.uk/sub-processors): Four providers handle personal data for ClearPostcode: Cloudflare runs the website, the API, the MCP server and the account database; Amazon SES sends our emails; Stripe takes payments; Google Analytics counts website visits. Each works under its own data processing terms with a UK transfer safeguard. - [Data processing agreement](https://clearpostcode.co.uk/data-processing-agreement): When your systems send us personal data, such as the postcodes and address searches your customers type, you are the controller and ClearPostcode is your processor. This agreement sets out the UK GDPR Article 28 terms in plain English. It forms part of our terms and applies to every account from the moment you create a key. - [Status](https://clearpostcode.co.uk/status): Live status and 90-day uptime of the API, MCP server and website. - [Changelog](https://clearpostcode.co.uk/changelog): Every change to the API, MCP server and data editions.