Blog ·Tutorial·Updated

How to Search UK Planning Applications by Postcode

Find planning records matching a postcode, a postcode district or a radius around a location. These are different searches: choose the one your application needs, then check the source evidence and coverage.

Updated 5 November 2026. Examples checked against the deployed PlanWire API contract. Output fixtures are fictional and do not establish current council coverage.

Choose exact postcode, district or nearby search

Start with the UK planning API evaluation page for fields, access limits and a complete synthetic response. A postcode query matches the postcode captured on the planning record. It does not establish a complete property history.

Make an authenticated postcode request

Keep your key in the server environment as PLANWIRE_KEY. No browser or public repository should contain it.

curl · one read-only request

curl --fail-with-body --max-time 15 --get 'https://api.planwire.io/v1/applications' \
  -H "X-API-Key: $PLANWIRE_KEY" \
  --data-urlencode 'postcode=N16' --data-urlencode 'limit=5'

Python

Python 3.10+

import json, os
from urllib.parse import urlencode
from urllib.request import Request, urlopen

url = "https://api.planwire.io/v1/applications?" + urlencode({"postcode": "N16", "limit": 5})
request = Request(url, headers={"X-API-Key": os.environ["PLANWIRE_KEY"]})
with urlopen(request, timeout=15) as result:
    payload = json.load(result)  # HTTP errors raise; never turn them into []
for app in payload["data"]:
    print(app["reference"], app.get("applicationDate"), app.get("url"))

JavaScript

Node.js 20+

// Node.js 20+, server-side
if (!process.env.PLANWIRE_KEY) throw new Error('Set PLANWIRE_KEY');
const url = new URL('https://api.planwire.io/v1/applications');
url.search = new URLSearchParams({ postcode: 'N16', limit: '5' });
const response = await fetch(url, {
  headers: { 'X-API-Key': process.env.PLANWIRE_KEY },
  signal: AbortSignal.timeout(15_000),
});
if (!response.ok) throw new Error('PlanWire HTTP ' + response.status);
const payload = await response.json();
for (const app of payload.data) console.log(app.reference, app.applicationDate, app.url);

Read the response without assuming fields exist

The full synthetic response is downloadable JSON. The following is a labelled record-field excerpt from that fixture, not the complete response:

Synthetic record excerpt

{
  "reference": "DEMO/2026/0001",
  "postcode": "N16 0AA",
  "applicationDate": "2026-11-03",
  "receivedDate": "2026-11-02",
  "validatedDate": "2026-11-03",
  "url": "https://example.invalid/planning/DEMO-2026-0001",
  "lat": null,
  "lng": null
}

Records are in data. The original source link is url. meta.total and meta.pages can be null; do not interpret null as zero. Request bounded pages using page and the applied meta.limit, stopping on empty or short pages and respecting daily limits. Concurrent writes can move results between pages, so this is not a stable export.

Use nearby search for a measured radius

Coordinate search · illustrative point

curl --fail-with-body --max-time 15 --get 'https://api.planwire.io/v1/applications/nearby' \
  -H "X-API-Key: $PLANWIRE_KEY" \
  --data-urlencode 'lat=51.56' --data-urlencode 'lng=-0.075' \
  --data-urlencode 'radius_km=1' --data-urlencode 'limit=5'

The point above is illustrative; use verified coordinates for your property. A postcode centroid is not an exact building location. Nearby results cross postcode boundaries and exclude records without usable coordinates. Do not assume the list endpoint's page parameter is supported by nearby search.

Dates, empty results and failures

date_from and date_to filter applicationDate: the later available received/validated date. Records missing both are excluded by those date filters. A free key can return only older identity samples; current status, decisions and freshness are omitted. Empty data means no accessible matches, not that a site has no planning applications.

Check council coverage and the dated field-completeness report for missing postcode and coordinate evidence. Use the status/date guide when interpreting results, and signed webhooks when monitoring captured changes. Download tested Python/JavaScript source and offline fixtures.

Start querying planning data by postcode

Free sandbox, no credit card. 25 requests/day for API shape and sample postcode workflows.