# England Planning Data Scraper: Conservation & TPO (`plainkitbin/pd-england-planning-scraper`) Actor

Collect conservation areas, listed buildings, scheduled monuments and other England planning and housing data entities from the Planning Data platform as clean structured rows. Not affiliated with Planning Data (MHCLG England Planning & Housing Data Platform).

- **URL**: https://apify.com/plainkitbin/pd-england-planning-scraper.md
- **Developed by:** [PlainKit bin](https://apify.com/plainkitbin) (community)
- **Categories:** Real estate, Open source
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.07 / 1,000 planning data rows

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

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

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## England Planning Data Scraper: Conservation, Listed, TPO

### Introduction

Planning Data England scraper for planners, heritage consultants, property researchers, land agents and GIS teams who need England planning constraint records as clean table rows instead of clicking through the Planning Data website or downloading whole datasets. The Actor supports 14 datasets across geography, heritage and environmental constraints: `conservation-area`, `listed-building`, `article-4-direction-area`, `scheduled-monument`, `world-heritage-site`, `green-belt`, `park-and-garden`, `tree-preservation-zone`, `flood-risk&#45;zone`, `area-of-outstanding-natural-beauty`, `site-of-special-scientific-interest`, `national-park`, `ancient-woodland`, and `battlefield`.

Pick a dataset, and optionally filter by managing organisation, entry date, or point coordinates (`longitude` and `latitude`). One run returns the entities the platform holds for it: entity number, name, dataset, reference, managing organisation, entry, start and end dates, a point location, the platform's quality label, the heritage grade where one exists, and the link to the source document.

Typical uses: checking which conservation areas a council has recorded, querying planning constraints around a specific coordinate point, listing newly entered listed buildings since a date, building a screening table of heritage and environmental constraints before a site purchase, and feeding a spreadsheet or a map layer with a repeatable weekly pull.

This Actor is an independent tool and is not affiliated with Planning Data (MHCLG England Planning & Housing Data Platform). It reads only the public entity API on www.planning.data.gov.uk, needs no login and no key, and does not request the boundary geometry. The platform publishes most of its data under the Open Government Licence, so check the licence conditions before you reuse the rows.

### Input and output examples

#### Example output

```json
{
  "dataset": "conservation-area",
  "documentation_url": "https://example.com/napsbury-character-statement.pdf",
  "end_date": "",
  "entity": "44000001",
  "entry_date": "2004-06-01",
  "grade": "",
  "name": "Napsbury",
  "organisation_entity": "278",
  "point": "POINT (-0.312224 51.722269)",
  "quality": "authoritative",
  "reference": "CA18",
  "start_date": "1996-04-01",
  "typology": "geography"
}
```

#### Example input

```json
{
  "dataset": "conservation-area",
  "longitude": "-0.1276",
  "latitude": "51.5072",
  "max_items": 10
}
```

#### Input parameters

| Field | Type | Description | Default |
| --- | --- | --- | --- |
| `dataset` | String | One of 14 datasets: `conservation-area`, `listed-building`, `article-4-direction-area`, `scheduled-monument`, `world-heritage-site`, `green-belt`, `park-and-garden`, `tree-preservation-zone`, `flood-risk&#45;zone`, `area-of-outstanding-natural-beauty`, `site-of-special-scientific-interest`, `national-park`, `ancient-woodland`, `battlefield`. | `conservation-area` |
| `organisation_entity` | Integer | Only rows of this organisation, by its Planning Data entity number. 0 means no filter. | `0` |
| `entry_date_since` | String | Only rows entered on or after this date, `YYYY-MM-DD`. Empty means all dates. | empty |
| `longitude` | String | Optional WGS84 longitude (-9.0 to 3.0, e.g. -0.1276 for Westminster) for coordinate lookup. Must be paired with latitude. | empty |
| `latitude` | String | Optional WGS84 latitude (49.0 to 61.0, e.g. 51.5072 for Westminster) for coordinate lookup. Must be paired with longitude. | empty |
| `max_items` | Integer (1-1000) | Maximum number of rows. | `10` |

#### Output fields

- `entity`: the platform's entity number, the unique id of a row
- `name`: the name as the platform prints it
- `dataset`, `typology` and `reference`: which dataset the row belongs to and its reference inside that dataset
- `organisation_entity`: entity number of the organisation that manages the row
- `entry_date`, `start_date` and `end_date`: the dates exactly as the platform prints them; an empty end date means none is recorded
- `point`: a point location as WKT text; the boundary geometry is not requested
- `quality`: the quality label the platform gives the row
- `grade`: the listed-building or park-and-garden grade where the dataset has one, otherwise empty
- `documentation_url`: link to the source document where the platform holds one

If the platform refuses the request (HTTP 401, 403 or 429), the run ends with one row whose `entity` is `STATUS_ACCESS_REFUSED`. That row is not charged and nothing is retried.

### Tutorial

1. Open the Actor and choose a `dataset` from the 14 available options.
2. Optionally narrow the rows by setting `organisation_entity`, `entry_date_since`, or point coordinates (`longitude` and `latitude`).
3. Set `max_items`, the most rows you want (1 to 1000).
4. Start the run and open the dataset when it ends. Download JSON, CSV or Excel.

The platform returns up to 100 rows per page. The Actor caps the number of pages by the rows you still need, so `max_items` of 250 reads at most 3 pages. The platform lets a search browse only its first 10,000 rows, and this Actor stops far below that bound.

### Pricing

The price is **$0.0001** per delivered row under the `FREE` tier on Apify Pay-Per-Event (event name: `planning-entity`).

- Event name: `planning-entity`
- Pricing model: Apify Pay-Per-Event
- Tier prices:
  - FREE: $0.0001 per event
  - BRONZE: $0.00009 per event
  - SILVER: $0.00008 per event
  - GOLD: $0.00006968 per event
  - PLATINUM: $0.00006968 per event
  - DIAMOND: $0.00006668 per event

Each row is pushed to the dataset first and charged right after a successful push. A refused charge or a reached spending limit stops the run at once; failed page requests push nothing and charge nothing. If a run is restarted, rows already delivered are recognised by their entity number and are never pushed or charged twice.

### Actor recommendations

Pair this Actor with a spreadsheet, a database or a mapping integration to keep a planning constraints table up to date. For the full record of one entity, open `documentation_url` in your own browser.

### FAQ and support

**Does it need a login or an API key?** No. It reads the public entity API with plain requests.

**Why did my filter return no rows?** The platform holds no row for that organisation, date, or coordinate query. A search with no match returns no rows and costs nothing.

**How current are the rows?** The Actor copies what the platform returns at the time of the run. The platform states that it gives no warranty on its content, so look at `entry_date` before you rely on a row.

**Why are some datasets missing?** Datasets that carry addresses or free text are left out on purpose. Only places, buildings and areas across the 14 supported constraint types are offered.

**Is the use of the data allowed?** The platform says most content is published under the Open Government Licence. You are responsible for following that licence and its attribution conditions.

**Where do I report a problem?** Use the Issues tab of this Actor on Apify.

# Actor input Schema

## `dataset` (type: `string`):

Which Planning Data dataset to read: conservation-area, listed-building, article-4-direction-area, scheduled-monument, world-heritage-site, green-belt, park-and-garden, tree-preservation-zone, flood-risk-zone, area-of-outstanding-natural-beauty, site-of-special-scientific-interest, national-park, ancient-woodland or battlefield.

## `organisation_entity` (type: `integer`):

Only rows managed by this organisation, given as its Planning Data entity number (for example 75). 0 means no organisation filter.

## `entry_date_since` (type: `string`):

Only rows whose entry date is on or after this date, written YYYY-MM-DD. Leave empty for all dates.

## `longitude` (type: `string`):

Optional WGS84 longitude (-9.0 to 3.0, e.g. -0.1276 for Westminster) to find planning constraints at a specific point. Must be set together with latitude; leave empty for all locations.

## `latitude` (type: `string`):

Optional WGS84 latitude (49.0 to 61.0, e.g. 51.5072 for Westminster) to find planning constraints at a specific point. Must be set together with longitude; leave empty for all locations.

## `max_items` (type: `integer`):

Maximum number of rows to output (prefilled default 10, upper bound 1000). Each page holds up to 100 rows.

## Actor input object example

```json
{
  "dataset": "conservation-area",
  "organisation_entity": 0,
  "entry_date_since": "",
  "longitude": "",
  "latitude": "",
  "max_items": 10
}
```

# Actor output Schema

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

Dataset items produced by this run.

# 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 = {
    "dataset": "conservation-area",
    "organisation_entity": 0,
    "entry_date_since": "",
    "longitude": "",
    "latitude": "",
    "max_items": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("plainkitbin/pd-england-planning-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 = {
    "dataset": "conservation-area",
    "organisation_entity": 0,
    "entry_date_since": "",
    "longitude": "",
    "latitude": "",
    "max_items": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("plainkitbin/pd-england-planning-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 '{
  "dataset": "conservation-area",
  "organisation_entity": 0,
  "entry_date_since": "",
  "longitude": "",
  "latitude": "",
  "max_items": 10
}' |
apify call plainkitbin/pd-england-planning-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,plainkitbin/pd-england-planning-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/L084eZaGx3htwJdrL/builds/rWUeNWR0g0XyzAlzs/openapi.json
