UK Postcodes Scraper
Pricing
from $9.00 / 1,000 results
UK Postcodes Scraper
Resolve UK postcodes into full location data from postcodes.io. Look up a list in bulk, search a partial code, or reverse geocode a coordinate, and return latitude, longitude, district, ward, constituency, and NHS areas. Handy for CRM enrichment, delivery routing, and analysis.
Pricing
from $9.00 / 1,000 results
Rating
0.0
(0)
Developer
ParseForge
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
4 days ago
Last modified
Categories
Share

📮 UK Postcodes Scraper
🚀 Turn UK postcodes into rich location data. Look up any postcode and get coordinates, district, ward, constituency, and health and census areas.
🕒 Last updated: 2026-06-04 · 📊 27 fields per postcode · powered by postcodes.io · England, Scotland, Wales
Resolve UK postcodes into full geographic and administrative records using the public postcodes.io service. Paste a list of postcodes, search by a partial postcode, or reverse geocode from a coordinate, and get latitude and longitude, local authority district, electoral ward, parliamentary constituency, NHS and clinical commissioning areas, census codes, and more for every result.
Coverage: every live postcode in England, Scotland, and Wales, with three ways to query: bulk lookup, partial search, and reverse geocoding by coordinate.
| 🎯 Target Audience | 💡 Primary Use Cases |
|---|---|
| Sales and CRM teams | Enrich customer records by postcode |
| Logistics and delivery | Geocode addresses to coordinates |
| Analysts and researchers | Map data to districts and constituencies |
| App and data teams | Validate and standardize postcodes |
📋 What the UK Postcodes Scraper does
- Looks up a list of postcodes in bulk.
- Searches matching postcodes from a partial code.
- Reverse geocodes the nearest postcodes to a coordinate.
- Returns 27 structured fields per postcode.
- Maps each postcode to district, ward, and constituency.
- Exports to CSV, Excel, JSON, XML, or via API.
🎬 Full Demo (🚧 Coming soon)
⚙️ Input
| Field | Type | Description |
|---|---|---|
postcodes | array | UK postcodes to look up in bulk. The main mode. |
query | string | Partial postcode to search, used when the list is empty. |
latitude | string | Center latitude for reverse geocoding. |
longitude | string | Center longitude for reverse geocoding. |
radiusMeters | integer | Reverse geocode radius in meters, up to 2000. |
maxItems | integer | Cap on records returned. Free plan is limited to 10. |
Example 1: bulk lookup
{"postcodes": ["OX1 1DP", "M1 1AE", "GU1 3UW", "CF10 1EP"],"maxItems": 100}
Example 2: reverse geocode a coordinate
{"latitude": "51.5010","longitude": "-0.1416","radiusMeters": 1000,"maxItems": 50}
⚠️ Good to Know: modes are tried in order, so a postcode list takes priority over a search, and a search takes priority over a coordinate. Some fields depend on the nation, for example
adminCountyis filled for shire counties but empty for metropolitan areas, andregionapplies to England. Invalid postcodes return a record with an error message.
📊 Output
Each record contains the following fields:
| Field | Description |
|---|---|
📮 postcode | Full postcode |
🔤 outcode | Outward code |
🔡 incode | Inward code |
⭐ quality | Positional quality indicator |
🏳 country | England, Scotland, or Wales |
🗺 region | Region, for England |
🏛 adminDistrict | Local authority district |
📍 adminWard | Electoral ward |
🏞 adminCounty | County, for shire areas |
⛪ parish | Parish |
🗳 parliamentaryConstituency | Parliamentary constituency |
🧭 latitude | Latitude |
🧭 longitude | Longitude |
📐 eastings | OS grid eastings |
📐 northings | OS grid northings |
🏥 nhsHa | NHS health authority |
🩺 ccg | Clinical commissioning group |
🧮 lsoa | Lower layer super output area |
🧮 msoa | Middle layer super output area |
🇪🇺 nuts | International territorial unit |
👮 pfa | Police force area |
🧳 ttwa | Travel to work area |
📅 dateOfIntroduction | When the postcode was introduced |
📉 indexOfMultipleDeprivation | Deprivation rank |
🔎 searchTerm | Query that surfaced this record |
🕒 scrapedAt | Collection timestamp |
❌ error | Error message, null on success |
Real sample records:
{"postcode": "OX1 1DP","outcode": "OX1","incode": "1DP","country": "England","region": "South East","adminDistrict": "Oxford","adminWard": "Holywell","adminCounty": "Oxfordshire","parliamentaryConstituency": "Oxford West and Abingdon","latitude": 51.749908,"longitude": -1.256533,"nhsHa": "South Central","ccg": "NHS Buckinghamshire, Oxfordshire and Berkshire West","pfa": "Thames Valley","error": null}
{"postcode": "GU1 3UW","outcode": "GU1","incode": "3UW","country": "England","region": "South East","adminDistrict": "Guildford","adminWard": "Castle","adminCounty": "Surrey","parliamentaryConstituency": "Guildford","latitude": 51.234743,"longitude": -0.572952,"nhsHa": "South East Coast","ccg": "NHS Surrey Heartlands","pfa": "Surrey","error": null}
{"postcode": "CF10 1EP","outcode": "CF10","incode": "1EP","country": "Wales","adminDistrict": "Cardiff","adminWard": "Cathays","parliamentaryConstituency": "Cardiff South and Penarth","latitude": 51.475764,"longitude": -3.179217,"nhsHa": "Cardiff and Vale University Health Board","ccg": "Cardiff and Vale University","pfa": "South Wales","error": null}
✨ Why choose this Actor
- Three query modes. Bulk lookup, partial search, and reverse geocoding.
- Rich detail. 27 fields covering geography, politics, health, and census.
- Three nations. England, Scotland, and Wales in one run.
- Coordinates included. Latitude and longitude on every valid postcode.
- Ready to export. CSV, Excel, JSON, XML, or API, with a clean table view.
📈 How it compares to alternatives
| UK Postcodes Scraper | Manual lookup site | Generic web scrapers | |
|---|---|---|---|
| Bulk list in one run | ✅ | ❌ | ⚠️ Needs setup |
| District, ward, constituency | ✅ | ⚠️ | ❌ |
| Reverse geocode by coordinate | ✅ | ⚠️ | ❌ |
| Health and census areas | ✅ | ❌ | ❌ |
| Export to CSV/Excel/JSON/XML | ✅ | ❌ | ⚠️ |
🚀 How to use
- Create a free Apify account using this sign-up link.
- Open the UK Postcodes Scraper.
- Paste a list of
postcodes, or set aquery, or alatitudeandlongitude. - Click Start and watch the dataset fill in real time.
- Export your results as CSV, Excel, JSON, or XML, or pull them via API.
💼 Business use cases
🎯 Data enrichment
| Goal | How |
|---|---|
| Enrich a CRM | Look up customer postcodes in bulk |
| Standardize records | Replace messy codes with clean ones |
📦 Logistics
| Goal | How |
|---|---|
| Plan deliveries | Geocode postcodes to coordinates |
| Group by area | Cluster by district or ward |
📊 Analysis
| Goal | How |
|---|---|
| Map to constituencies | Join data on parliamentary areas |
| Study deprivation | Use the deprivation index |
🏥 Public sector
| Goal | How |
|---|---|
| Health planning | Map postcodes to NHS areas |
| Census work | Use LSOA and MSOA codes |
🔌 Automating UK Postcodes Scraper
Connect this Actor to your stack with Apify integrations: Make, Zapier, Slack, Airbyte, GitHub, and Google Drive. Schedule runs and push fresh postcode data into spreadsheets, databases, or alerts.
🌟 Beyond business use cases
- Research: join survey data to districts and wards.
- Personal: find the constituency or NHS area for an address.
- Non-profit: target services by deprivation index.
- Experimentation: build maps and geocoding tools.
🤖 Ask an AI assistant
Paste your dataset into ChatGPT, Claude, Perplexity, or Copilot and ask for postcodes grouped by district, constituency, or deprivation rank.
❓ Frequently Asked Questions
1. Do I need an API key? No. The Actor uses the public postcodes.io service.
2. Which areas are covered? England, Scotland, and Wales. Northern Ireland is not included.
3. How do I look up many postcodes at once?
Paste them into the postcodes list. They are processed in bulk.
4. Can I search a partial postcode?
Yes. Put it in query, for example EC1A.
5. Can I find postcodes near a point?
Yes. Set latitude, longitude, and radiusMeters.
6. What happens with an invalid postcode? You get a record with an error message so nothing is silently dropped.
7. Why is the county empty sometimes? Counties apply to shire areas. Metropolitan and unitary areas leave it empty.
8. Are coordinates always included? Yes, for every valid postcode.
9. What export formats are supported? CSV, Excel, JSON, XML, and API.
10. Can I run it on a schedule? Yes, with Apify Schedules and integrations.
11. Is there a free option? Yes. Free runs are limited to 10 items as a preview. Paid plans unlock up to 1,000,000.
🔌 Integrate with any app
Use the Apify API, webhooks, and 5,000-plus integrations to push postcode data into Make, Zapier, Google Sheets, Airtable, databases, and more.
🔗 Recommended Actors
- Nominatim OSM Scraper
- Zippopotam Postal Lookup Scraper
- GeoNames Places Scraper
- Data Gov UK Scraper
- RestCountries Scraper
💡 Pro Tip: browse the complete ParseForge collection.
🆘 Need Help? Open our contact form
⚠️ Disclaimer: independent tool, not affiliated with postcodes.io or the Office for National Statistics. Contains public sector information licensed under the Open Government Licence.