# EpcIntelligenceActor (`charles986/epcintelligenceactor`) Actor

Fetch UK EPC energy ratings, stranded asset risk and upgrade costs by postcode. Built for landlords auditing buy-to-let portfolios before the 2028 EPC-C deadline. Returns band, floor area, construction era, annual energy cost and improvements. Official government API.

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

## Pricing

from $0.50 / 1,000 epc records

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 EPC Intelligence — Energy Performance & Upgrade Costs

Query the **official UK Government EPC Register** by postcode and get structured energy performance data per property — including stranded asset risk, estimated upgrade costs, and improvement recommendations.

Uses the official `get-energy-performance-data.communities.gov.uk` API. No scraping, no ToS risk, no third-party data resellers.

---

### Why This Exists — The 2028 Deadline

From 2028, all buy-to-let properties in England and Wales must hold an **EPC rating of C or above** to be legally rented. Every landlord with a D, E, F, or G rated property faces a decision: upgrade, sell, or face fines.

This Actor answers the core question: **which properties are at risk, what will it cost to fix them, and what improvements are recommended?**

---

### Who It's For

- **Buy-to-let landlords** — audit a portfolio or a target street for compliance risk before the 2028 deadline
- **Estate agents and valuers** — identify stranded assets in a target area for investor and developer clients
- **Retrofit assessors and energy consultants** — find properties that need upgrade work in a given postcode
- **Property investors** — screen acquisitions for hidden compliance cost before purchase
- **Developers** — identify the energy profile of a target area before committing to a site

---

### What You Get Per Property

| Field | Description |
|---|---|
| `address` | Full address |
| `postcode` | Postcode |
| `uprn` | Unique Property Reference Number (join key for HMLR Price Paid data) |
| `certificate_number` | EPC certificate reference |
| `registration_date` | Date of most recent EPC assessment |
| `property_type` | Detached, semi-detached, terraced, flat, etc. |
| `construction_era` | Decade band (e.g. 1930–1949) from SAP building part data |
| `floor_area_sqm` | Total floor area in square metres |
| `current_epc_band` | Current energy rating (A–G) |
| `potential_epc_band` | Achievable rating with recommended improvements |
| `current_energy_score` | Numerical SAP score (current) |
| `potential_energy_score` | Numerical SAP score (potential) |
| `stranded_asset_risk` | `true` if band D or below — fails 2028 BTL requirement |
| `upgrade_cost_min_gbp` | Estimated minimum cost of all recommended improvements |
| `upgrade_cost_max_gbp` | Estimated maximum cost of all recommended improvements |
| `annual_energy_cost_gbp` | Estimated annual energy cost (heating + hot water + lighting) |
| `co2_emissions_current` | CO2 emissions in tonnes per year |
| `main_heating` | Primary heating system description |
| `improvements` | List of recommended improvements with cost range and annual saving |

---

### Example Output

```json
{
  "address": "63 Daisy Bank Road, Manchester",
  "postcode": "M14 5QL",
  "uprn": "100012345678",
  "property_type": "Semi-detached house",
  "construction_era": "1930-1949",
  "floor_area_sqm": 158,
  "current_epc_band": "D",
  "potential_epc_band": "B",
  "stranded_asset_risk": true,
  "upgrade_cost_min_gbp": 6400,
  "upgrade_cost_max_gbp": 11050,
  "annual_energy_cost_gbp": 1127,
  "improvements": [
    {
      "improvement_type": "Loft insulation",
      "indicative_cost": "GBP 300 - GBP 400",
      "typical_annual_saving_gbp": 180
    },
    {
      "improvement_type": "Cavity wall insulation",
      "indicative_cost": "GBP 500 - GBP 1500",
      "typical_annual_saving_gbp": 220
    }
  ]
}
````

***

### Input

| Parameter | Type | Required | Description |
|---|---|---|---|
| `epcApiKey` | string | Yes | Bearer token from [get-energy-performance-data.communities.gov.uk](https://www.get-energy-performance-data.communities.gov.uk/) — free registration |
| `postcode` | string | No | Single postcode (e.g. `M14 5QL`) |
| `postcodes` | list | No | Batch mode — multiple postcodes |
| `strandedOnly` | boolean | No | Return only D/E/F/G rated properties (default: false) |
| `maxProperties` | integer | No | Maximum results across all postcodes (default: 100, max: 1000) |

Either `postcode` or `postcodes` must be provided.

**Getting your API key:** Register free at [get-energy-performance-data.communities.gov.uk](https://www.get-energy-performance-data.communities.gov.uk/). Approval is usually instant.

***

### Data Source

All data comes directly from the **Ministry of Housing, Communities and Local Government EPC Register** — the same database used by assessors, mortgage lenders, and the government's own compliance enforcement. Over 24 million certificates covering England and Wales.

This Actor queries the official API directly. It does not scrape, cache, or redistribute the underlying data — each run fetches live results from the primary source.

***

### Combine With

- **HMLR Price Paid** — join on UPRN to get sale price + EPC rating per property, calculate price per sqm, identify stranded assets in a sales pipeline
- **Liveability and area scoring** — layer EPC data over crime, schools, and transport for investment decisions
- **Apify datasets** — export to Google Sheets, Airtable, or webhook for portfolio tracking

***

### Notes

- EPC certificates expire after 10 years. Properties with no current certificate will not appear in results.
- Coverage is strongest for properties that have been sold or let since 2008 (when EPC became mandatory).
- Flats in converted houses have lower coverage than purpose-built flats and houses — approximately 85% vs 100% for houses in tested postcodes.
- The Actor returns the most recent certificate per property. Historic certificates are not returned.

# Actor input Schema

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

Bearer token from https://www.get-energy-performance-data.communities.gov.uk/

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

Single UK postcode to search (e.g. SW1A 1AA)

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

Batch mode — list of postcodes to search

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

Return only properties rated D or below — at risk from the 2028 EPC-C BTL requirement

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

Maximum number of properties to return across all postcodes (default 100)

## Actor input object example

```json
{
  "strandedOnly": false,
  "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/epcintelligenceactor").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/epcintelligenceactor").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/epcintelligenceactor --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "EpcIntelligenceActor",
        "description": "Fetch UK EPC energy ratings, stranded asset risk and upgrade costs by postcode. Built for landlords auditing buy-to-let portfolios before the 2028 EPC-C deadline. Returns band, floor area, construction era, annual energy cost and improvements. Official government API.",
        "version": "0.0",
        "x-build-id": "LG7f3WIGfd1TTXclO"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/charles986~epcintelligenceactor/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-charles986-epcintelligenceactor",
                "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~epcintelligenceactor/runs": {
            "post": {
                "operationId": "runs-sync-charles986-epcintelligenceactor",
                "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~epcintelligenceactor/run-sync": {
            "post": {
                "operationId": "run-sync-charles986-epcintelligenceactor",
                "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",
                "required": [
                    "epcApiKey"
                ],
                "properties": {
                    "epcApiKey": {
                        "title": "EPC API Key",
                        "type": "string",
                        "description": "Bearer token from https://www.get-energy-performance-data.communities.gov.uk/"
                    },
                    "postcode": {
                        "title": "Postcode",
                        "type": "string",
                        "description": "Single UK postcode to search (e.g. SW1A 1AA)"
                    },
                    "postcodes": {
                        "title": "Multiple Postcodes",
                        "type": "array",
                        "description": "Batch mode — list of postcodes to search",
                        "items": {
                            "type": "string"
                        }
                    },
                    "strandedOnly": {
                        "title": "Stranded Assets Only",
                        "type": "boolean",
                        "description": "Return only properties rated D or below — at risk from the 2028 EPC-C BTL requirement",
                        "default": false
                    },
                    "maxProperties": {
                        "title": "Max Properties",
                        "minimum": 1,
                        "maximum": 1000,
                        "type": "integer",
                        "description": "Maximum number of properties to return across all postcodes (default 100)",
                        "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
