# UK Planning Applications Scraper (`nice_dev/uk-planning-applications-scraper`) Actor

UK planning applications with the applicant and the agent / architect: London boroughs and every UK council. Filter by council, keyword, postcode, dates, status, size. Export to JSON, CSV or Excel.

- **URL**: https://apify.com/nice_dev/uk-planning-applications-scraper.md
- **Developed by:** [Nice Dev](https://apify.com/nice_dev) (community)
- **Categories:** Real estate, Lead generation, MCP servers
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 50.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.39 / 1,000 planning applications

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

### 🏗️ What is UK Planning Applications Scraper?

**UK Planning Applications Scraper** extracts **planning applications with the applicant and the agent / architect** from the planning registers of **London's 32 boroughs and the City** and of **every other UK council**: site address and postcode, proposal, status and decision, all key dates, **applicant name, agent name and company, case officer**, and for London the **UPRN, land-registry title number, floor area gained, projected cost of works and new dwellings**.

Type one or more **council names** (`Lambeth`, `Greenwich`, `Leeds`), pick a date range, click **Start**, and download the applications in JSON, CSV or Excel. No login, nothing to set up.&#x20;

### 📋 What data can you extract from UK planning registers?

One item per application, 73 fields:

| Category | What you get |
| --- | --- |
| 🏷️ **Application** | council, reference, link to the council's page, proposal — `Lambeth 26/02604/FUL` |
| 📍 **Site** | address, postcode, ward, map point, site boundary, UPRN, land-registry title — `251 Kennington Road, SE11 6BY` |
| 👤 **Applicant** | applicant name, company (developer) and address |
| 📐 **Agent / architect** | agent name, company, address, and phone and e-mail when the council publishes them (option) — `Montagu Evans LLP` |
| ⚖️ **Status and decision** | status and decision in the council's words, and a simple status (Permitted, Rejected, Undecided…), who decided, the case officer |
| 🕒 **Dates** | received, validated, consultation, target, decision, committee, permission expiry |
| 🏢 **Scheme (London)** | new homes, floor area gained, storeys, site area, projected cost of works, intended start and completion |
| 📎 **Links** | documents, comments and map pages of the council |

Every field, with an example, is listed in the **Output** section below.

The applicant, agent and case officer come from each council's own planning page: they are read when **Read applicant and agent on the council portal** is ticked (off by default), on the councils listed under **Known limitations**. `detailsStatus` says why they are empty otherwise.

### ✅ Why use UK Planning Applications Scraper?

- 🧑‍💼 **The applicant and the architect, not « see source »**: read on each council's own page, where most other tools stop at the address.
- 🗺️ **London in depth**: UPRN, land-registry title number, floor area gained, projected cost of works and new dwellings of the London schemes.
- 🇬🇧 **The whole UK in the same run**: London boroughs and any other council by name, one search per council.
- 🎯 **Filters that matter for leads**: validation and decision dates, status, size, application type, postcode area, minimum new homes, only applications with an agent.
- 🔔 **Monitoring built in**: tick **Only new applications**, schedule the Actor, and each run returns (and charges) only what it has never delivered before.
- 🔌 API, scheduling, integrations (Make, Zapier, n8n, Google Sheets…) and JSON/CSV/Excel export via the Apify platform.

### 🚀 How to scrape UK planning applications

1. Create a free Apify account.
2. Open **UK Planning Applications Scraper** and type one or more **Councils** (e.g. `Lambeth`, `Ealing`) — or leave it empty for the 35 London planning authorities.
3. Set **Validated after** (e.g. `14 days`) and any other filter; or paste council application pages into **Application URLs**. Tick **Read applicant and agent on the council portal** to get the applicant, the agent and the case officer.
4. Set **Max applications** (100 by default, 0 = no limit) — and **Max applications per search** when you search several councils — then click **Start**.
5. Download the dataset in JSON, CSV, Excel or via API.

### 💰 How much does it cost to scrape UK planning applications?

This Actor uses **pay per event** pricing: **$0.42 per 1,000 applications** ($0.39 on the Gold plan), a higher price when the applicant and agent were read on the council's page, plus **$0.01 per run start**:

| You pay for | No subscription | Bronze | Silver | Gold |
| --- | --- | --- | --- | --- |
| Application, list fields (`apify-default-dataset-item`) | $0.42 per 1,000 | $0.41 | $0.40 | $0.39 |
| Applicant and agent read on the council's page, on top (`applicant-details`) | $0.89 per 1,000 | $0.88 | $0.87 | $0.86 |
| **Application with its applicant and agent** (both lines) | **$1.31 per 1,000** | **$1.29** | **$1.27** | **$1.25** |
| Agent's e-mail, on top, only when one is found (`agent-email`) | $1.19 per 1,000 | $1.18 | $1.17 | $1.16 |
| List of documents, on top, only when there is at least one (`document-list`) | $0.31 per 1,000 | $0.30 | $0.29 | $0.28 |
| Application read on the council's page and left out by a filter that needs that page (`detail-filter-check`) | $0.57 per 1,000 | $0.56 | $0.55 | $0.54 |
| Run start (`apify-actor-start`, one per GB of memory: one at the default) | $0.01 | $0.01 | $0.01 | $0.01 |

Platinum and Diamond pay the Gold price. An application whose council page could not be read (`detailsStatus` says why) pays the list price only. Two examples at the Gold price:

- 1,000 London applications with the default, **Read applicant and agent on the council portal** turned off: $0.39 + $0.01 ≈ **$0.40** ($0.43 without a subscription).
- 1,000 London applications with **Read applicant and agent on the council portal** turned on, about 600 of them with the applicant and agent read (see **Known limitations**): $0.16 (400 × list price) + $0.75 (600) + $0.01 ≈ **$0.92** ($0.96 without a subscription).

The agent's e-mail (**Read the agent's e-mail on the council portal**, off by default) is billed as its own event `agent-email`, at the price shown in Pricing, only for an application saved with an e-mail. The list of documents (**Read the list of documents on the council portal**, off by default) is billed as its own event `document-list`, at the price shown in Pricing, only for an application saved with at least one document. The two filters that need the council page (`applicantOrAgent`, `onlyWithAgentContact`) are billed `detail-filter-check` for each application whose page was read and that the filter left out; the other filters cost nothing. Platform usage (compute, proxy) is included in the price.

### ⚙️ Input

```json
{
    "councils": ["Lambeth", "Ealing", "Leeds"],
    "postedAfter": "14 days",
    "maxItems": 200
}
```

Several councils and keywords, a cap per search, only large schemes with an agent, only the ones not delivered before:

```json
{
    "councils": ["Lewisham", "Greenwich", "Ealing"],
    "searchQueries": ["residential", "mixed use"],
    "maxItemsPerQuery": 50,
    "postedAfter": "30 days",
    "appSize": ["Large"],
    "extractDetails": true,
    "onlyWithAgentContact": true,
    "onlyNew": true,
    "stateKey": "major-schemes"
}
```

Or with application pages of a council portal (you get the fields of each page's summary tab; add `"extractDetails": true` for the applicant, the agent and the case officer, charged on top):

```json
{
    "startUrls": [
        { "url": "https://planning.lambeth.gov.uk/online-applications/applicationDetails.do?keyVal=TL68KZBOMUC00&activeTab=summary" }
    ]
}
```

| Field | Notes |
| --- | --- |
| `councils` | Council names: a London borough (`Lambeth`, `Greenwich`) or any UK council (`Leeds`), in any usual spelling (`leeds`, `Leeds City Council`, `Stoke-on-Trent`, `Kingston upon Hull`). A name several councils start with (Newcastle) is refused, with their names. Empty = the 35 London planning authorities (32 boroughs, the City of London, OPDC and LLDC), so each keyword makes 35 searches (with `source` `planit`: the whole UK in one search). One search per council (max 500 searches per run). |
| `startUrls` | Application pages of a council portal (`https://planning.lambeth.gov.uk/online-applications/applicationDetails.do?keyVal=TL68KZBOMUC00`) or of PlanIt (`https://www.planit.org.uk/planapplic/Leeds/26/01234/FU/`). A portal page gives the fields of its summary tab; tick `extractDetails` to also get the applicant, the agent and the case officer (charged on top). |
| `query`, `searchQueries` | Words searched in the proposal text (`solar panels`, `basement`); `searchQueries` adds more keywords (one search each, times each council). |
| `source` | `auto` (London datahub for London, PlanIt elsewhere; a borough that stopped sending its applications to the datahub, such as Brent since May 2026, is read from PlanIt), `datahub` or `planit`. |
| `nearPostcode` | Search around a place: the UK postcode at the centre of a circle (`SW1A 1AA`, capitals and space optional). An unknown postcode stops the run before any search. |
| `latitude`, `longitude` | The centre of the circle as coordinates instead of a postcode (latitude 49 to 61, longitude -9 to 2). Give both or none. |
| `radiusMeters` | Radius of the circle in metres: 50 to 20,000, default 1,000. Read only with a centre. |
| `references` | Council references of the applications you want (`26/06078/ADFULL`), typed as the council writes them. One search per reference (times each council in `councils`; with no council, the London datahub and PlanIt are both asked). |
| `uprns` | Property numbers (UPRN, digits): every application on that property. London only; refused when `source` is PlanIt only. |
| `extractDetails` | Read the applicant, the agent and the case officer on the council's page (default off: one or two more pages per application, charged on top). Left off, an application pasted in `startUrls` as a portal page gives its summary tab only, without applicant, agent or case officer. |
| `extractAgentEmail` | Also read the agent / architect's e-mail on the council's Contacts tab, where the council publishes it (default off: one more page per application). Needs `extractDetails`. |
| `extractDocuments` | Also read the list of documents (plans, reports, decision notice) on the council portal: date, type, description and a link to each file (default off: one more page per application). Needs `extractDetails`. |
| `maxItems` | Stop after this many applications for the whole run (`0` = unlimited). |
| `maxItemsPerQuery` | Cap for EACH search (council × keyword). 0 = no per-search cap. |
| `postedAfter`, `postedBefore` | Validation date range: `2026-09-01`, or a period before now (`7 days`, `2 weeks`, `1 month`). |
| `decidedAfter`, `decidedBefore` | Decision date range, same forms (`30 days`). The date judged is the decision date of the list, else the portal's Decision Issued Date (an application pasted as a portal page has that one only). |
| `appState` | `Permitted`, `Rejected`, `Undecided`, `Withdrawn`, `Appeal`, `Other`. |
| `appSize` | `Large` (10+ homes or 1,000 m²+), `Medium`, `Small` (householder). In London the size is worked out from the application; elsewhere it is the size PlanIt gives, and PlanIt calls most applications `Small`. |
| `appTypes` | Words of the application type (`Full`, `Outline`, `Listed`, `Prior Approval`). |
| `postcodes` | Postcode area (`E`), district (`SW1`, `E14`), sector (`SW1A 1`) or full postcode (`SW1A 1AA`). A district also covers its sub-districts (`SW1` includes `SW1A`), never another district (`E1` is not `E14`); an area is never another area (`E` is not `EC1A`). |
| `minDwellings`, `onlyWithAgentContact` | At least this many new homes; only applications with an agent or applicant found. Needs `extractDetails`: without it `onlyWithAgentContact` is ignored. |
| `applicantOrAgent` | Keep the applications whose applicant or agent (name or company) contains one of these words (`Savills`, `Barratt`). Needs `extractDetails` (refused without it). In London the council page of every application of the search is read to check them; an application whose council page was not read (portal not supported or not reachable) has no applicant or agent and is not delivered. Outside London the search already looks for these words in company names and addresses: a person's name alone may miss some applications there. |
| `excludeKeywords` | Drop the applications whose proposal contains one of these words (`tree`, `advertisement`). |
| `onlyNew`, `stateKey`, `resetState` | Monitoring: only the applications never delivered under this memory key; `resetState` forgets the memory. |
| Advanced | `proxyConfiguration` (Apify proxy by default, included in the price; the residential proxy is not available), `portalMinIntervalSecs`, `maxConcurrency`, `maxRequestsPerMinute`, `minRequestIntervalMs`, `maxRequestRetries`, `debugLog`. |

### 📦 Output

A real item (empty fields left out):

```json
{
    "id": "Lambeth/26/02604/FUL",
    "reference": "26/02604/FUL",
    "council": "Lambeth",
    "url": "https://planning.lambeth.gov.uk/online-applications/applicationDetails.do?activeTab=summary&keyVal=TL553DBO02G00",
    "address": "251 Kennington Road, SE11 6BY",
    "postcode": "SE11 6BY",
    "description": "Application for Full Planning Permission for the installation of an external condensing unit and roof access hatch at roof level…",
    "applicationType": "Full Planning Permission",
    "appSize": "Medium",
    "appState": "Undecided",
    "status": "Application Under Consideration",
    "publishedAt": "2026-09-23",
    "targetDecisionDate": "2026-11-18",
    "applicantName": "Mr Carew",
    "agentName": "Mr Carew",
    "agentAddress": "10-11 Bishop's Terrace London SE11 4UE",
    "caseOfficer": "Paria Mundhra",
    "uprn": "100021857059",
    "latitude": 51.490229,
    "longitude": -0.110782,
    "portalSystem": "idox",
    "source": "datahub",
    "detailsStatus": "read",
    "scrapedAt": "2026-09-26T02:16:29.121Z"
}
```

You can download the dataset in various formats such as JSON, HTML, CSV or Excel.

#### All 73 fields

| Fields | What you get |
| --- | --- |
| `id`, `reference`, `council`, `url` | `Lambeth/26/02604/FUL`, `26/02604/FUL`, `Lambeth`, the council's page of the application |
| `address`, `postcode`, `ward`, `parish`, `district` | site address and area |
| `description`, `applicationType`, `developmentType` | proposal and type, in the council's words |
| `appSize`, `appState` | `Large` / `Medium` / `Small`; `Permitted` / `Rejected` / `Undecided` / `Withdrawn` / `Appeal` / `Other` |
| `status`, `decision`, `decidedBy` | status, decision and decision level in the council's words |
| `receivedDate`, `publishedAt`, `consultationStartDate`, `consultationEndDate`, `commentDate`, `siteNoticeEndDate` | `YYYY-MM-DD` (`publishedAt` = validated: what the date filters read) |
| `targetDecisionDate`, `decisionDate`, `decisionIssuedDate`, `decisionPublishedDate`, `meetingDate` | decision dates, committee date |
| `permissionExpiresDate`, `applicationExpiresDate`, `appealStatus`, `appealDecision` | expiry and appeal |
| `applicantName`, `applicantCompany`, `applicantAddress` | **Applicant** (developer) |
| `agentName`, `agentCompany`, `agentAddress`, `agentTel`, `agentEmail` | **Agent / architect** (`agentEmail` with **Read the agent's e-mail**) |
| `caseOfficer`, `amenitySociety` | council officer, amenity society consulted |
| `dwellings`, `floorAreaGainedSqm`, `projectedCostOfWorks`, `storeys`, `siteArea`, `intendedStart`, `intendedCompletion` | **Scheme** (London datahub) |
| `uprn`, `titleNumber`, `epcNumber`, `planningPortalId` | property and form identifiers |
| `latitude`, `longitude`, `easting`, `northing`, `sitePolygon` | map point and site boundary (GeoJSON) |
| `portalSystem`, `documentsUrl`, `commentUrl`, `mapUrl` | council portal software and links |
| `nDocuments`, `nComments`, `nConstraints`, `nStatutoryDays` | counts published by the council |
| `documents` | **List of documents** (with **Read the list of documents**): date, type, description and link to each file; empty list = none published |
| `planitUrl`, `lastChanged`, `source`, `detailsStatus`, `searchUrl`, `scrapedAt` | where the list came from, why portal fields are empty, the search that found it, ISO timestamps |

### 💡 Tips

#### How to get more results

Set `maxItems` to `0`, leave `councils` empty for the 35 London planning authorities, and widen the dates. A London search pages through up to 10,000 applications: split a long period into several date ranges.

#### How to reduce costs

The price is per application, so the levers are `maxItems`, `maxItemsPerQuery`, the filters and `onlyNew` for recurring runs (you never pay twice for the same application). Leave `extractDetails` off when the list fields are enough.

#### Several searches in one run

Fill `councils` and / or `searchQueries`: the Actor runs one search per council × keyword (3 keywords × 4 councils = 12 searches, up to 500 per run). An application found by several searches is saved — and charged — once. Set `maxItemsPerQuery` to give every search its own cap.

#### Search around a postcode, or by reference

Example: all applications within 1 km of a postcode.

```json
{
    "nearPostcode": "SW1A 1AA",
    "radiusMeters": 1000,
    "postedAfter": "30 days"
}
```

With `councils` empty, the circle is ONE search (not one per borough): the London datahub when the centre is in London, PlanIt elsewhere. With `councils`, each council is searched inside the circle. Give `latitude` and `longitude` instead of `nearPostcode` to centre it on a point. To look up applications you already know, fill `references` (`26/06078/ADFULL`) or, for London, `uprns`: those searches ignore `postedAfter` and `postedBefore` (you named the applications), and the other filters still apply.

#### Monitoring: only the new applications

Tick **Only new applications** (`onlyNew`) and schedule the Actor. The first run returns everything; each later run skips the applications already delivered: they are not saved, not charged, and their council page is not even opened. The memory lives in a named key-value store of your account (`uk-planning-applications-scraper-seen`, up to 150,000 applications per key) and is only updated with applications that really reached the dataset. Give each schedule its own `stateKey`, and tick `resetState` once to start over.

#### Filter by validation date

`postedAfter` and `postedBefore` take a date (`2026-09-01`, the whole day is included, UK time) or a period before now (`7 days`, `2 weeks`, `1 month`). The filter reads `publishedAt`, the date the council validated the application; an application without one is dropped as soon as a date bound is set. Searches are sorted by newest and stop once they reach older applications. Outside the London datahub (PlanIt), applications are listed by the day the council received them, often weeks before it validated them: the search starts 90 days earlier to find those, and only the applications validated inside your dates are saved and charged.

### 🔌 Integrations and API

Call the Actor via the Apify API, the JavaScript or Python clients, or connect it with integrations and webhooks (Make, Zapier, n8n, Google Sheets, Slack, Airtable…). The dataset can be fetched as JSON or CSV from any tool.

### 🤖 Use with AI agents (MCP)

AI agents (Claude, ChatGPT, Cursor…) can find and run this Actor through the [Apify MCP server](https://mcp.apify.com), billed to their Apify account like any run. It returns one item per UK planning application. Actor id: `nice_dev/uk-planning-applications-scraper`; MCP server with this Actor only: `https://mcp.apify.com/?tools=fetch-actor-details,nice_dev/uk-planning-applications-scraper`.

Smallest input, for a cheap first call:

```json
{
    "councils": ["Lambeth"],
    "postedAfter": "7 days",
    "maxItems": 10
}
```

Key output fields: `council`, `reference`, `address`, `description`, `appState`, `publishedAt`, `applicantName`, `agentCompany`, `url`.

Cost: see the pricing section above. Cap each call with `maxItems` and, through the API, with the run option `maxTotalChargeUsd`.

### ❓ FAQ

#### Is it legal to scrape UK planning applications?

The Actor only reads what the councils and the public planning registers show to any anonymous visitor: planning registers are public by law. It logs in to nothing and solves no captcha. Applicants and agents can be private persons: their names, addresses, phones and e-mails are personal data protected by UK GDPR — use them for a legitimate interest, tell the people you contact where you found them, and never send unsolicited marketing e-mails to private persons or sole traders (PECR). You are responsible for using the data in compliance with the councils' terms and applicable law. This Actor is not affiliated with any council, the Greater London Authority or PlanIt.

#### Does it need a login or a proxy?

No login. The proxy is included in the price: leave the default setting (the residential proxy is not available). A request a portal turns away is retried at once on a new proxy session, up to 10 times on top of the retries. Without a proxy, the list sources (London datahub, PlanIt) are asked again after a pause of 5 seconds, doubled at each retry up to 150 seconds. A council portal that blocks the run's address (« Temporary Block ») is not asked again in that run: its remaining applications are saved with the list fields and `detailsStatus: "rate_limited"`. With the default setting, the 15 London Idox portals and Leeds are read. The Northgate portal of Hounslow did not answer at the last check: its applications are saved with the list fields and `detailsStatus: "portal_unreachable"`, like those of any portal that does not answer during a run. Your own proxies (`proxyUrls`) carry every page of the run: take them in the UK or in Europe, since 7 London council portals (Westminster, Barnet, Bexley, Kingston, Newham, Southwark, Sutton) refuse addresses from other countries.

#### Is the data safe to open in Excel or to show on a web page?

Proposals and names are the councils' own text, copied as they are. A text can begin with `-`, `+`, `=` or `@`: Excel and Google Sheets may read such a cell of a CSV file as a formula. When you open a CSV, import these columns as text. Every URL field holds an http(s) URL or null. On a web page, escape every field like any text written by a stranger.

#### Known limitations

- The applicant and agent are read on council portals of the Idox software (15 London councils and most other UK councils) and on the Northgate portal of Hammersmith & Fulham; the others (Camden, Wandsworth, Hackney, Islington…, and Enfield, whose search asks for a captcha) give the list fields only, with `detailsStatus: "unsupported_portal"`.
- With the default proxy, these 15 London portals and Leeds are read. The Northgate portal of Hounslow did not answer at the last check: its applications have no applicant (`detailsStatus: "portal_unreachable"`), like those of any portal that does not answer during a run. Your own proxies (`proxyUrls`) carry every page: take them in the UK or in Europe, since 7 London council portals (Westminster, Barnet, Bexley, Kingston, Newham, Southwark, Sutton) refuse addresses from other countries. Of the 5,798 London applications validated from 6 October to 5 November 2026, 60 % came from the portals read with the default proxy and 40 % from portals not read.
- The agent's e-mail is published by some councils only. Measured on 27 September 2026, 5 applications per council: Ealing, Greenwich and Lewisham 4 in 5 (Lambeth, Brent, Tower Hamlets, Croydon: none), 34 in 46 on 12 councils outside London (Cambridge, Leeds, Mid Sussex, Winchester: all; Guildford: none).
- Council portals are read one page at a time, 15 seconds apart by default (`portalMinIntervalSecs`): they block an address that reads too fast. Reading the applicant of 1,000 applications of ONE council takes 4 to 8 hours; several councils are read side by side. On some portals, several runs at the same time share this pace: each one reads that council slower. The agent's e-mail adds one page per application read.
- A London search pages through 10,000 applications at most: narrow the dates for more.
- Outside the London datahub, an application validated months after the council received it can be missed by `postedAfter`. On PlanIt's records of 27 September 2026, a search of the last 7 days finds Brent 28 of 28 applications validated, Southwark 48 of 48, Birmingham 68 of 77.
- `onlyNew` remembers application ids, not their content: an application whose decision changed is not returned again.
- With `onlyNew`, a pasted PlanIt search that is not sorted newest first (it asks its own order) stops after 20 results pages of 200 in a row where every application was already delivered by a previous run: a run with nothing new does not read the whole search. A search sorted newest first (every search the form builds) keeps its own, earlier stop.

**A run that reaches its timeout** stops itself about 45 seconds before it: no new page is asked, what it read is saved and, with `onlyNew`, remembered, and the run ends *Succeeded* with "Stopped before the run's timeout". Resurrect it to go on from there, or give the next run a longer timeout (Run options). With the applicant and agent read, one council gives about 120 to 240 applications an hour (one or two portal pages each, a page every 15 seconds).

**A run the platform stops without warning** (out of memory, a lost server)

- Resurrect it: it goes on from where it stood at most a minute before the stop. What it had read since is read again, and the applications already saved are skipped: none is delivered or charged twice, and `maxItems` still counts them.

#### Something doesn't work?

The last line of the log counts the applications saved and filtered out, and the requests that failed after every retry. Those requests are listed, with the reason, in the `FAILED_REQUESTS` record of the run's key-value store. A run that saved nothing and had failed requests fails, and its last message gives the cause.

If a source changes its pages, you are told instead of paying for blank rows. If the first 20 applications read all lack their reference, validation date, proposal or — when the council's portal is read — application type or applicant, the run saves nothing more, stops and fails, and its last message names the missing field: at most those first applications are charged. An application that `postedAfter` / `postedBefore` drops because it has no date at all counts among those 20. A run of fewer applications (a scheduled `onlyNew` run that finds a few new ones, a small **Max applications**) is checked at its end, from 5 applications: its applications are already saved, and the run fails with the missing field instead of ending green.

### 🛟 Support

Open an issue in the **Issues** tab with a link to your run: the run log and the `FAILED_REQUESTS` record of the key-value store show exactly which requests failed and why.

# Actor input Schema

## `councils` (type: `array`):

Local planning authorities to search, by name: a London borough (`Lambeth`, `Greenwich`, `Ealing`, `City of London`…) or any other UK council (`Manchester`, `Leeds`, `Cornwall`…), in any usual spelling (`leeds`, `Leeds City Council`, `Stoke-on-Trent`). Empty = the 35 London planning authorities (32 boroughs, the City of London, OPDC and LLDC), so each keyword makes 35 searches (with **Data source** PlanIt only: the whole UK in one search). One search per council (times each keyword below, max 500).

## `startUrls` (type: `array`):

Single applications to read directly: a council planning-portal page (`https://planning.lambeth.gov.uk/online-applications/applicationDetails.do?keyVal=TL68KZBOMUC00`, Idox Public Access) or a PlanIt application page (`https://www.planit.org.uk/planapplic/Lambeth/26/02618/FUL/`). A portal page gives the fields of its summary tab; tick **Read applicant and agent on the council portal** to also get the applicant, agent and case officer (charged on top). When this list is not empty, the search fields are ignored. Max 1 000 URLs.

## `query` (type: `string`):

Words searched in the proposal text (e.g. `solar panels`, `basement`, `loft conversion`). Empty = every application.

## `searchQueries` (type: `array`):

Several keywords in one run: one search per keyword (times each council). Added to **Keyword**; an application found by several searches is saved once.

## `source` (type: `string`):

Where the list of applications comes from. `auto` = the Greater London Authority planning datahub for London boroughs (freshest, with UPRN, land-registry title, floor area and projected cost of works) and PlanIt for every other council.

## `maxItems` (type: `integer`):

Maximum number of applications to save for the whole run (after deduplication and filters). 0 = no limit.

## `maxItemsPerQuery` (type: `integer`):

Cap for EACH search (council × keyword), so that the first council cannot use up the whole **Max applications** budget. 0 = no per-search cap.

## `extractDetails` (type: `boolean`):

Open each application on the council's own planning portal (1 extra request, 2 when the portal has to be searched) for the applicant name and address, the agent / architect name, company and address, and the case officer. Charged on top of the application only when its council page was read (see Pricing). Off by default = list fields only (faster, cheaper): tick it to get the applicant, agent and case officer. Left off, an application pasted as a portal page gives its summary tab only: its applicant, agent and case officer stay empty (`detailsStatus` `off`).

## `extractAgentEmail` (type: `boolean`):

Also open the application's Contacts tab on the council's portal (1 extra request per application) for the agent / architect's e-mail, and phone, where the council publishes them: Ealing, Greenwich, Lewisham, Cambridge and most councils outside London do; Lambeth, Brent, Tower Hamlets and Croydon do not. It is billed as its own event `agent-email`, at the price shown in Pricing, only for an application saved with an e-mail. Needs **Read applicant and agent on the council portal**. Off by default: each portal is read one page every 15 seconds, so it doubles the time a run takes.

## `extractDocuments` (type: `boolean`):

Also read the list of documents (plans, reports, decision notice) on the council portal: 1 extra page per application. Each document comes with its date, type, description and a link to the file. It is billed as its own event `document-list`, at the price shown in Pricing, only for an application saved with at least one document. Needs **Read applicant and agent on the council portal**. Off by default: each portal is read one page every 15 seconds, so each extra page adds to the time a run takes.

## `nearPostcode` (type: `string`):

UK postcode at the centre of the circle, e.g. `SW1A 1AA` (capital letters and the space are optional). Use this OR **Latitude** and **Longitude**. An unknown postcode stops the run before any search.

## `latitude` (type: `number`):

Latitude of the centre of the circle, between 49 and 61 (e.g. `51.5014`). Give it with **Longitude**, instead of a postcode.

## `longitude` (type: `number`):

Longitude of the centre of the circle, between -9 and 2 (e.g. `-0.1416`). Give it with **Latitude**, instead of a postcode.

## `radiusMeters` (type: `integer`):

Radius of the circle around the postcode or the coordinates, in metres (50 to 20 000). Used only when a centre is given.

## `references` (type: `array`):

Look up applications by the reference the council gave them, typed as the council writes it (e.g. `26/06078/ADFULL`). One search per reference (times each council in **Councils**; with no council, both the London datahub and PlanIt are asked). The validation dates below do not apply to them; the other filters do.

## `uprns` (type: `array`):

Unique Property Reference Numbers (digits only, e.g. `100023336956`): every application on that property. London only (the London datahub); not available with **Data source** set to PlanIt only. The validation dates below do not apply to them.

## `postedAfter` (type: `string`):

Only applications validated (registered) by the council on or after this date: `2026-09-01`, or a period before now such as `7 days`, `2 weeks`, `1 month`. Applications without a validation date are dropped.

## `postedBefore` (type: `string`):

Only applications validated on or before this date (the whole day is included), or older than a period such as `30 days`.

## `decidedAfter` (type: `string`):

Only applications decided on or after this date (or within a period such as `30 days`). Undecided applications are dropped. The date judged is the decision date of the list, else the portal's Decision Issued Date (an application pasted as a portal page has that one only).

## `decidedBefore` (type: `string`):

Only applications decided on or before this date (the whole day is included). Same date as **Decided after**: the decision date of the list, else the portal's Decision Issued Date.

## `appState` (type: `array`):

Keep only these outcomes. `Permitted` = approved (with or without conditions), `Rejected` = refused, `Undecided` = pending, `Withdrawn`, `Appeal` = under or after appeal, `Other` = not required, prior approval not needed, observations only, etc. Empty = all.

## `appSize` (type: `array`):

`Large` = major development (10 or more dwellings, or 1 000 m² or more of new floor space), `Small` = householder application, `Medium` = everything else (London). Outside London the size is the one PlanIt gives, and PlanIt calls most applications `Small`. Empty = all sizes.

## `appTypes` (type: `array`):

Keep only applications whose type contains one of these words (e.g. `Full`, `Outline`, `Listed`, `Prior Approval`, `Householder`, `Advertisement`, `Trees`). Case ignored. Empty = all types.

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

Keep only sites inside one of these postcode areas: area (`E`, `SW`), district (`SW1`, `E14`), sector (`SW1A 1`) or full postcode (`SW1A 1AA`). A district also covers its sub-districts (`SW1` includes `SW1A` to `SW1Y`) but never another district (`E1` does not include `E14`), and an area never another area (`E` does not include `EC1A`). Empty = anywhere in the councils searched.

## `minDwellings` (type: `integer`):

Keep only applications that propose at least this many new homes (when the source gives the number). 0 = no minimum.

## `onlyWithAgentContact` (type: `boolean`):

Keep only applications for which an agent company, agent name or applicant name was found. Needs **Read applicant and agent on the council portal** (`extractDetails`): without it this filter is ignored and every application is delivered.

## `applicantOrAgent` (type: `array`):

Keep applications whose applicant or agent (name or company) contains one of these words (case and accents ignored), e.g. `Savills`, `Barratt`. Needs **Read applicant and agent on the council portal** (`extractDetails`): refused without it. In London the applicant and the agent are on the council page only, so the council page of every application of the search is read to check them. An application whose council page could not be read (portal not supported or not reachable) has no applicant or agent and is not delivered. Outside London the PlanIt search already asks for these names.

## `excludeKeywords` (type: `array`):

Drop the applications whose proposal text contains one of these words (case and accents ignored), e.g. `tree`, `advertisement`.

## `onlyNew` (type: `boolean`):

Skip the applications that a previous run (same **Memory key**) already delivered: they are not saved and not charged, and their portal page is not even opened. First run = everything is new.

## `stateKey` (type: `string`):

Name of the memory used by **Only new applications**. Give each schedule / task its own key (e.g. `westminster-weekly`) so that they do not share their memory. Letters, digits, `-` and `_`.

## `resetState` (type: `boolean`):

Forget everything remembered under this **Memory key** before the run: this run returns (and charges) every application again. Untick it afterwards.

## `proxyConfiguration` (type: `object`):

Apify Proxy or your own proxies. Keep the default: it is included in the price, and the 15 London Idox portals and Leeds are read with it. The Northgate portal of Hounslow did not answer at the last check: its applications are saved without applicant and agent (`detailsStatus: "portal_unreachable"`). Your own proxies (`proxyUrls`) carry every page of the run: take them in the UK or in Europe, since 7 London council portals (Westminster, Barnet, Bexley, Kingston, Newham, Southwark, Sutton) refuse addresses from other countries. The residential Apify proxy is not available in this Actor.

## `portalMinIntervalSecs` (type: `integer`):

Smallest gap between two requests to the SAME council portal, in seconds (portals are read one request at a time; different councils are read in parallel). Council portals block an address for an hour when it reads too fast: measured on 26/09/2026, Westminster after 26 pages in 2.5 minutes, Barnet after 28 pages in 4 minutes.

## `maxConcurrency` (type: `integer`):

Maximum number of requests processed in parallel (all sources together).

## `maxRequestsPerMinute` (type: `integer`):

Most requests in any 60 seconds, all sources counted. A budget, not an even pace: spread them with the delays.

## `minRequestIntervalMs` (type: `integer`):

Smallest gap between two requests of any source, in milliseconds. 0 = no gap (council portals keep their own delay above).

## `maxRequestRetries` (type: `integer`):

Retries per request before it is marked as failed. Behind a proxy, a request a portal turns away is also retried on a new proxy session up to 10 times without using up these retries. Without a proxy, a council portal that answers « Temporary Block » is not asked again: its remaining applications are saved without portal details.

## `debugLog` (type: `boolean`):

Include debug messages in the run log.

## Actor input object example

```json
{
  "councils": [
    "Lambeth"
  ],
  "startUrls": [],
  "searchQueries": [],
  "source": "auto",
  "maxItems": 8,
  "maxItemsPerQuery": 0,
  "extractDetails": false,
  "extractAgentEmail": false,
  "extractDocuments": false,
  "radiusMeters": 1000,
  "references": [],
  "uprns": [],
  "postedAfter": "14 days",
  "appState": [],
  "appSize": [],
  "appTypes": [],
  "postcodes": [],
  "minDwellings": 0,
  "onlyWithAgentContact": false,
  "applicantOrAgent": [],
  "excludeKeywords": [],
  "onlyNew": false,
  "stateKey": "default",
  "resetState": false,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "portalMinIntervalSecs": 15,
  "maxConcurrency": 8,
  "maxRequestsPerMinute": 120,
  "minRequestIntervalMs": 0,
  "maxRequestRetries": 5,
  "debugLog": false
}
```

# Actor output Schema

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

No description

# 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 = {
    "councils": [
        "Lambeth"
    ],
    "maxItems": 8,
    "postedAfter": "14 days",
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("nice_dev/uk-planning-applications-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 = {
    "councils": ["Lambeth"],
    "maxItems": 8,
    "postedAfter": "14 days",
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("nice_dev/uk-planning-applications-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 '{
  "councils": [
    "Lambeth"
  ],
  "maxItems": 8,
  "postedAfter": "14 days",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call nice_dev/uk-planning-applications-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,nice_dev/uk-planning-applications-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/4e5ITq0iCcBUb9q4z/builds/nfO8ORaiXK3jU83TV/openapi.json
