UK Postcodes Scraper avatar

UK Postcodes Scraper

Pricing

from $9.00 / 1,000 results

Go to Apify Store
UK Postcodes Scraper

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

ParseForge

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

4 days ago

Last modified

Share

ParseForge Banner

📮 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 teamsEnrich customer records by postcode
Logistics and deliveryGeocode addresses to coordinates
Analysts and researchersMap data to districts and constituencies
App and data teamsValidate 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

FieldTypeDescription
postcodesarrayUK postcodes to look up in bulk. The main mode.
querystringPartial postcode to search, used when the list is empty.
latitudestringCenter latitude for reverse geocoding.
longitudestringCenter longitude for reverse geocoding.
radiusMetersintegerReverse geocode radius in meters, up to 2000.
maxItemsintegerCap 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 adminCounty is filled for shire counties but empty for metropolitan areas, and region applies to England. Invalid postcodes return a record with an error message.

📊 Output

Each record contains the following fields:

FieldDescription
📮 postcodeFull postcode
🔤 outcodeOutward code
🔡 incodeInward code
qualityPositional quality indicator
🏳 countryEngland, Scotland, or Wales
🗺 regionRegion, for England
🏛 adminDistrictLocal authority district
📍 adminWardElectoral ward
🏞 adminCountyCounty, for shire areas
parishParish
🗳 parliamentaryConstituencyParliamentary constituency
🧭 latitudeLatitude
🧭 longitudeLongitude
📐 eastingsOS grid eastings
📐 northingsOS grid northings
🏥 nhsHaNHS health authority
🩺 ccgClinical commissioning group
🧮 lsoaLower layer super output area
🧮 msoaMiddle layer super output area
🇪🇺 nutsInternational territorial unit
👮 pfaPolice force area
🧳 ttwaTravel to work area
📅 dateOfIntroductionWhen the postcode was introduced
📉 indexOfMultipleDeprivationDeprivation rank
🔎 searchTermQuery that surfaced this record
🕒 scrapedAtCollection timestamp
errorError 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 ScraperManual lookup siteGeneric 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

  1. Create a free Apify account using this sign-up link.
  2. Open the UK Postcodes Scraper.
  3. Paste a list of postcodes, or set a query, or a latitude and longitude.
  4. Click Start and watch the dataset fill in real time.
  5. Export your results as CSV, Excel, JSON, or XML, or pull them via API.

💼 Business use cases

🎯 Data enrichment

GoalHow
Enrich a CRMLook up customer postcodes in bulk
Standardize recordsReplace messy codes with clean ones

📦 Logistics

GoalHow
Plan deliveriesGeocode postcodes to coordinates
Group by areaCluster by district or ward

📊 Analysis

GoalHow
Map to constituenciesJoin data on parliamentary areas
Study deprivationUse the deprivation index

🏥 Public sector

GoalHow
Health planningMap postcodes to NHS areas
Census workUse 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.

💡 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.