# UK Property Intelligence (`charles986/uk-property-intelligence`) Actor

Combines EPC energy performance data with HMLR price paid history. Returns matched records with price\_per\_sqm, stranded asset risk (2028 EPC-C BTL regulation), upgrade costs, and energy performance per property.

- **URL**: https://apify.com/charles986/uk-property-intelligence.md
- **Developed by:** [Charles](https://apify.com/charles986) (community)
- **Categories:** Developer tools, Real estate
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $50.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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 Property Intelligence

<img src="https://upload.wikimedia.org/wikipedia/en/a/a1/HM_Land_Registry_logo.svg" height="60" alt="HM Land Registry">

Combines two free UK government datasets — EPC energy certificates and HMLR price paid transactions — into a single enriched property record per address.

No Rightmove. No Zoopla. No scraping. Both data sources are official open government data.

---

### What it does

For each postcode supplied:

1. Fetches all domestic EPC certificates from the [Energy Performance of Buildings Register](https://www.get-energy-performance-data.communities.gov.uk/)
2. Fetches all price paid transactions from the [HM Land Registry Price Paid Data API](https://www.gov.uk/government/collections/price-paid-data)
3. Matches records by normalised address
4. Returns three record types:
   - `matched` — property has both EPC data and a sale transaction
   - `epc_only` — EPC certificate with no matching sale in the date range
   - `hmlr_only` — sale transaction with no EPC certificate on record

---

### Key derived fields

| Field | Description |
|---|---|
| `price_per_sqm` | Sale price divided by EPC floor area |
| `stranded_asset_risk` | `true` if EPC band D or below (2028 BTL EPC-C regulation) |
| `upgrade_cost_min_gbp` | Minimum estimated cost from EPC improvement recommendations |
| `upgrade_cost_max_gbp` | Maximum estimated cost from EPC improvement recommendations |
| `annual_energy_cost_gbp` | Estimated annual heating + hot water + lighting cost |
| `improvements` | List of recommended works with indicative cost and typical annual saving |
| `potential_epc_band` | Band achievable if all recommendations are implemented |

---

### Inputs

| Field | Required | Description |
|---|---|---|
| `epcApiKey` | Yes | Bearer token from get-energy-performance-data.communities.gov.uk |
| `postcode` | One of these | Single UK postcode |
| `postcodes` | One of these | List of UK postcodes |
| `dateFrom` | No | Filter sales on or after this date (YYYY-MM-DD) |
| `dateTo` | No | Filter sales on or before this date (YYYY-MM-DD) |
| `propertyType` | No | `detached`, `semi-detached`, `terraced`, `flat-maisonette`, `other` |
| `tenure` | No | `freehold`, `leasehold` |
| `strandedOnly` | No | Return only EPC D/E/F/G properties (default: false) |
| `includeUnmatched` | No | Include records that matched only one source (default: true) |
| `maxProperties` | No | Maximum records to return (default: 100) |

**Get your free EPC API key:** Register at [get-energy-performance-data.communities.gov.uk](https://www.get-energy-performance-data.communities.gov.uk/)

---

### Sample output (matched record)

```json
{
  "record_type": "matched",
  "match_method": "address",
  "match_confidence": "high",
  "address": "63 Daisy Bank Road",
  "postcode": "M14 5QL",
  "uprn": "100012345678",
  "current_epc_band": "D",
  "potential_epc_band": "B",
  "stranded_asset_risk": true,
  "floor_area_sqm": 158,
  "property_type": "Semi-detached house",
  "construction_era": "1930-1949",
  "annual_energy_cost_gbp": 1127,
  "upgrade_cost_min_gbp": 6400,
  "upgrade_cost_max_gbp": 11050,
  "sale_price_gbp": 285000,
  "price_per_sqm": 1803.8,
  "transaction_date": "2023-06-15",
  "tenure": "Freehold",
  "is_new_build": false,
  "improvements": [
    {
      "improvement_type": "Loft insulation",
      "indicative_cost": "GBP 300 - GBP 400",
      "typical_annual_saving_gbp": 180
    }
  ]
}
````

***

### Use cases

**Buy-to-let landlords** — identify which properties in your portfolio or a target area fail the 2028 EPC-C minimum. See upgrade costs and whether the rental yield justifies the investment.

**Estate agents and valuers** — enrich area reports with energy performance distribution, price per sqm by band, and stranded asset risk counts.

**Retrofit assessors** — find the worst-performing properties in an area to target upgrade services.

**Property investors** — combine sale price history with energy performance to identify undervalued stranded assets with renovation potential.

***

### Data sources

- [EPC Register API](https://www.get-energy-performance-data.communities.gov.uk/) — free, requires registration
- [HMLR Price Paid Data API](https://landregistry.data.gov.uk/data/ppi/) — free, no key required

Both are official UK government open data sources published under the Open Government Licence.

# Actor input Schema

## `epcApiKey` (type: `string`):

Pre-configured for published actor users — leave blank. Developers running their own instance can supply a key from https://www.get-energy-performance-data.communities.gov.uk/

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

Single UK postcode to query (e.g. GL15 4BA).

## `postcodes` (type: `array`):

List of UK postcodes. Combined with the single postcode field above.

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

Filter HMLR transactions on or after this date (YYYY-MM-DD).

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

Filter HMLR transactions on or before this date (YYYY-MM-DD).

## `propertyType` (type: `string`):

Filter HMLR transactions by property type.

## `tenure` (type: `string`):

Filter HMLR transactions by tenure.

## `strandedOnly` (type: `boolean`):

If true, only return properties with EPC band D or below (at risk under 2028 BTL EPC-C regulation).

## `includeUnmatched` (type: `boolean`):

If true, also return EPC-only and HMLR-only records where no address match was found.

## `maxProperties` (type: `integer`):

Maximum number of property records to return across all postcodes.

## Actor input object example

```json
{
  "postcode": "GL15 4BA",
  "postcodes": [],
  "dateFrom": "",
  "dateTo": "",
  "propertyType": "",
  "tenure": "",
  "strandedOnly": false,
  "includeUnmatched": true,
  "maxProperties": 100
}
```

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("charles986/uk-property-intelligence").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("charles986/uk-property-intelligence").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{}' |
apify call charles986/uk-property-intelligence --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=charles986/uk-property-intelligence",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "UK Property Intelligence",
        "description": "Combines EPC energy performance data with HMLR price paid history. Returns matched records with price_per_sqm, stranded asset risk (2028 EPC-C BTL regulation), upgrade costs, and energy performance per property.",
        "version": "0.0",
        "x-build-id": "mHSFb1fETCLvQ4SZI"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/charles986~uk-property-intelligence/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-charles986-uk-property-intelligence",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/charles986~uk-property-intelligence/runs": {
            "post": {
                "operationId": "runs-sync-charles986-uk-property-intelligence",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/charles986~uk-property-intelligence/run-sync": {
            "post": {
                "operationId": "run-sync-charles986-uk-property-intelligence",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "epcApiKey": {
                        "title": "EPC API Key (optional)",
                        "type": "string",
                        "description": "Pre-configured for published actor users — leave blank. Developers running their own instance can supply a key from https://www.get-energy-performance-data.communities.gov.uk/"
                    },
                    "postcode": {
                        "title": "Postcode",
                        "type": "string",
                        "description": "Single UK postcode to query (e.g. GL15 4BA).",
                        "default": "GL15 4BA"
                    },
                    "postcodes": {
                        "title": "Postcodes (multiple)",
                        "type": "array",
                        "description": "List of UK postcodes. Combined with the single postcode field above.",
                        "default": [],
                        "items": {
                            "type": "string"
                        }
                    },
                    "dateFrom": {
                        "title": "Sale Date From",
                        "type": "string",
                        "description": "Filter HMLR transactions on or after this date (YYYY-MM-DD).",
                        "default": ""
                    },
                    "dateTo": {
                        "title": "Sale Date To",
                        "type": "string",
                        "description": "Filter HMLR transactions on or before this date (YYYY-MM-DD).",
                        "default": ""
                    },
                    "propertyType": {
                        "title": "Property Type",
                        "enum": [
                            "",
                            "detached",
                            "semi-detached",
                            "terraced",
                            "flat-maisonette",
                            "other"
                        ],
                        "type": "string",
                        "description": "Filter HMLR transactions by property type.",
                        "default": ""
                    },
                    "tenure": {
                        "title": "Tenure",
                        "enum": [
                            "",
                            "freehold",
                            "leasehold"
                        ],
                        "type": "string",
                        "description": "Filter HMLR transactions by tenure.",
                        "default": ""
                    },
                    "strandedOnly": {
                        "title": "Stranded Assets Only",
                        "type": "boolean",
                        "description": "If true, only return properties with EPC band D or below (at risk under 2028 BTL EPC-C regulation).",
                        "default": false
                    },
                    "includeUnmatched": {
                        "title": "Include Unmatched Records",
                        "type": "boolean",
                        "description": "If true, also return EPC-only and HMLR-only records where no address match was found.",
                        "default": true
                    },
                    "maxProperties": {
                        "title": "Max Properties",
                        "minimum": 1,
                        "maximum": 1000,
                        "type": "integer",
                        "description": "Maximum number of property records to return across all postcodes.",
                        "default": 100
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
