# UK Land Registry Prices Scraper (`muhammadafzal/uk-land-registry-prices-scraper`) Actor

Filter official HM Land Registry Price Paid Data for England and Wales by postcode, location, date, price, property type, new-build status, tenure, category, and monthly record status. Returns one normalized sale record per dataset item.

- **URL**: https://apify.com/muhammadafzal/uk-land-registry-prices-scraper.md
- **Developed by:** [Muhammad Afzal](https://apify.com/muhammadafzal) (community)
- **Categories:** Real estate, Business, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.30 / 1,000 property sale records

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## UK Land Registry Prices Scraper

Filter official HM Land Registry Price Paid Data and return structured property-sale records for England and Wales. Search by postcode, address or location, transfer date, price, property type, new-build status, tenure, Price Paid category, and monthly record status.

The Actor streams HM Land Registry CSV downloads, applies filters without loading the whole file into memory, and stops once `maxResults` records have been delivered.

### What it extracts

Each dataset item includes:

- Transaction ID, sale price, and transfer date
- Postcode and normalized full address
- PAON, SAON, street, locality, town/city, district, and county
- Property type code and label
- New-build status
- Tenure code and label
- Standard or Additional Price Paid category
- Added, changed, or deleted record status when supplied
- Official source URL and retrieval timestamp

### Input example

```json
{
  "dataSource": "yearly",
  "year": 2026,
  "postcode": "NG8",
  "minPrice": 150000,
  "maxPrice": 600000,
  "propertyTypes": ["D", "S", "T"],
  "maxResults": 100
}
```

`yearly` files contain corrected records grouped by the transfer/deed year and are the best default for market research. `latestMonthlyUpdate` contains the latest additions, changes, and deletions received by HM Land Registry; when using monthly updates, preserve `transactionId` and apply the `recordStatus` semantics to any stored copy.

Postcode matching ignores spaces and case and accepts a full postcode or prefix. `locationQuery` performs case-insensitive containment across all address fields. Price and date bounds are inclusive. Empty filter arrays include all available values.

### Output example

```json
{
  "transactionId": "559C5AD5-6944-AFE3-E063-4804A8C004A4",
  "price": 205500,
  "transferDate": "2026-02-05",
  "postcode": "NG8 2DT",
  "propertyType": "D",
  "propertyTypeLabel": "Detached",
  "newBuild": false,
  "tenure": "F",
  "tenureLabel": "Freehold",
  "paon": "336",
  "saon": null,
  "street": "TROWELL ROAD",
  "locality": null,
  "townCity": "NOTTINGHAM",
  "district": "CITY OF NOTTINGHAM",
  "county": "CITY OF NOTTINGHAM",
  "categoryType": "A",
  "categoryTypeLabel": "Standard Price Paid",
  "recordStatus": "A",
  "recordStatusLabel": "Added",
  "fullAddress": "336, TROWELL ROAD, NOTTINGHAM, CITY OF NOTTINGHAM, NG8 2DT",
  "sourceUrl": "https://price-paid-data.publicdata.landregistry.gov.uk/pp-2026.csv",
  "retrievedAt": "2026-08-27T12:00:00.000Z"
}
```

Results are written one sale per default-dataset item. `SUMMARY` in the default key-value store records the source, applied filters, scanned and returned counts, skipped malformed rows, warnings, attribution, and a truthful `DATA`, `EMPTY`, or `REJECTED` outcome.

### Pricing

| Event | Price | Value |
|---|---:|---|
| Actor start | $0.00010 | One run |
| Property sale record | $0.00030 | One dataset item |

A 100-record run costs up to $0.03010 in event charges, excluding any account-level platform usage Apify may apply. Valid searches with no matching records incur no dataset-item events.

### Data source, licence, and limitations

The Actor downloads public CSV files directly from HM Land Registry. It does not use private credentials, scrape personal profiles, or rely on a third-party property-data provider.

Contains HM Land Registry data © Crown copyright and database right 2021. This data is licensed under the [Open Government Licence v3.0](https://www.nationalarchives.gov.uk/doc/open-government-licence/version/3/).

HM Land Registry states that the two most recent months are incomplete because registration follows the sale, and data can be corrected later. Price Paid Data excludes sales that were not lodged for registration or were not for value. Address data has additional Royal Mail and Ordnance Survey conditions: it is permitted for personal/non-commercial use and for displaying residential property-price information; contact Royal Mail for other address-data uses. Review the [official Price Paid Data guidance](https://www.gov.uk/government/statistical-data-sets/price-paid-data-downloads) before republishing.

Yearly files can exceed 200 MB. Broad filters that do not match early rows may need to scan the entire file. The Actor preserves already-written valid records if a source connection fails mid-stream and reports the failure rather than fabricating data.

### Use cases

- Compare listings, locations, availability, and market signals for property research.
- Schedule repeatable collection and export results to downstream workflows.
- Run a one-off research job and export the structured result as JSON, CSV, Excel, XML, or RSS from Apify.
- Schedule the same input to monitor changes over time and send completed datasets to a webhook or integration.
- Feed schema-shaped records into a database, spreadsheet, BI tool, or AI workflow with the source URL retained for verification.

### Run UK Land Registry Prices Scraper with the Apify API

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('muhammadafzal/uk-land-registry-prices-scraper').call({
  "dataSource": "yearly",
  "year": 2026,
  "postcode": "NG8",
  "locationQuery": "",
  "dateFrom": "",
  "dateTo": "",
  "propertyTypes": [],
  "tenures": []
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

You can also run the Actor from Apify Console, schedules, webhooks, the REST API, Make, Zapier, n8n, or the hosted Apify MCP server.

### Responsible use

Use this Actor only for data you are authorized to access. Follow the target website's terms, robots and access policies, and applicable privacy, database, copyright, anti-spam, and data-protection laws. Do not use it to bypass authentication or other access controls, collect private data, harass people, or make high-impact decisions without independent verification.

### Support

When reporting a problem, include the **Actor run ID**, a redacted input, the expected result, and a small public example URL when applicable. Do not post API tokens, cookies, credentials, or personal data in an issue.

# Actor input Schema

## `dataSource` (type: `string`):

Use yearly for corrected transactions grouped by transfer year, or latestMonthlyUpdate for the latest additions, changes, and deletions received by HM Land Registry. Yearly is the default and is best for property-price research.

## `year` (type: `integer`):

Use this with the yearly file to select a transfer year; example: 2026. Available years start at 1995. This value is ignored for the latest monthly update.

## `postcode` (type: `string`):

Use this for an exact UK postcode or prefix match; examples: SW1A 1AA, NG8, or CF10. Matching ignores spaces and case. Leave empty for all postcodes.

## `locationQuery` (type: `string`):

Use this to search across house/unit, street, locality, town, district, county, and postcode; example: Nottingham. Matching is case-insensitive text containment, not geocoding.

## `dateFrom` (type: `string`):

Use this to include transfers on or after a date in YYYY-MM-DD format; example: 2026-01-01. Leave empty for no lower date bound.

## `dateTo` (type: `string`):

Use this to include transfers on or before a date in YYYY-MM-DD format; example: 2026-12-31. Leave empty for no upper date bound.

## `minPrice` (type: `integer`):

Use this to set the inclusive minimum sale price in pounds; example: 100000. Leave unset for no minimum.

## `maxPrice` (type: `integer`):

Use this to set the inclusive maximum sale price in pounds; example: 750000. Leave unset for no maximum.

## `propertyTypes` (type: `array`):

Use this to include selected HM Land Registry property types. Leave empty for detached, semi-detached, terraced, flat/maisonette, and other properties.

## `newBuild` (type: `boolean`):

Use true to include only newly built properties and false to include only established properties. Remove the field from API input to include both.

## `tenures` (type: `array`):

Use this to include freehold and/or leasehold sales. Leave empty for both tenures.

## `categoryTypes` (type: `array`):

Use A for standard single-property sales, B for additional transactions such as identifiable buy-to-let, repossession, non-private, or Other-property sales. Leave empty for both.

## `recordStatuses` (type: `array`):

Use this mainly with latestMonthlyUpdate to select added, changed, or deleted records. Leave empty for every status present in the source file.

## `maxResults` (type: `integer`):

Use this to cap output records and event cost; example: 100. The allowed range is 1–10000. The Actor stops reading as soon as the limit is reached.

## Actor input object example

```json
{
  "dataSource": "yearly",
  "year": 2026,
  "postcode": "NG8",
  "locationQuery": "",
  "dateFrom": "",
  "dateTo": "",
  "propertyTypes": [],
  "tenures": [],
  "categoryTypes": [],
  "recordStatuses": [],
  "maxResults": 100
}
```

# Actor output Schema

## `results` (type: `string`):

Schema-validated HM Land Registry Price Paid Data records.

## `summary` (type: `string`):

Source, filters, scan counts, warnings, attribution, and empty-result diagnostics.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "year": 2026
};

// Run the Actor and wait for it to finish
const run = await client.actor("muhammadafzal/uk-land-registry-prices-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "year": 2026 }

# Run the Actor and wait for it to finish
run = client.actor("muhammadafzal/uk-land-registry-prices-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "year": 2026
}' |
apify call muhammadafzal/uk-land-registry-prices-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,muhammadafzal/uk-land-registry-prices-scraper"
        }
    }
}

```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/f2B5nYbr9FIIXP0WE/builds/gAIcF6VgKUPUAQmtM/openapi.json
