Postcode data and fuel prices, ready to use.
A postcode check that joins area codes, flood risk, crime and schools in one call, and current UK fuel prices from the government Fuel Finder scheme. For property, insurance, relocation, fleet and driving apps.
Postcode check
One call with a postcode in Great Britain returns its area codes, the Environment Agency flood risk, a 12-month crime summary from police.uk and the nearest schools with their latest Ofsted outcome.
- Local authority, ward, constituency, LSOA, MSOA, police force, NHS ICB, rural or urban and coordinates, from ONS data
- Flood risk for the postcode (England)
- Crime counts by type for the last 12 months (England and Wales)
- Nearest schools with Ofsted outcomes (England)
- Ask for only the parts you need with include=
100 checks a month free. Paid plans from £15 a month.
curl https://api.tychelabs.net/v1/postcodes/SW1A2AA \
-H "x-api-key: $TYCHE_API_KEY"const res = await fetch("https://api.tychelabs.net/v1/postcodes/SW1A2AA?schools=3", {
headers: { "x-api-key": process.env.TYCHE_API_KEY },
});
const { data } = await res.json();
console.log(data.areas.localAuthority.name); // Westminster
console.log(data.flood.addressesByRisk); // Environment Agency risk bands
console.log(data.crime.total, data.schools.items[0].name);import os, requests
r = requests.get(
"https://api.tychelabs.net/v1/postcodes/SW1A2AA",
params={"include": "areas,flood,schools"},
headers={"x-api-key": os.environ["TYCHE_API_KEY"]},
timeout=15,
)
pc = r.json()["data"]
print(pc["areas"]["ward"]["name"], pc["flood"]["addressesAtRisk"])Example response
{
"data": {
"postcode": "SW1A 2AA",
"areas": {
"postcode": "SW1A 2AA",
"outcode": "SW1A",
"incode": "2AA",
"status": "live",
"terminated": null,
"usertype": "large",
"latitude": 51.50101,
"longitude": -0.141563,
"eastings": 529090,
"northings": 179645,
"positionalQuality": 1,
"country": {
"code": "E92000001",
"name": "England"
},
"region": {
"code": "E12000007",
"name": "London"
},
"localAuthority": {
"code": "E09000033",
"name": "Westminster"
},
"county": null,
"ward": {
"code": "E05013806",
"name": "St James's"
},
"parish": {
"code": "E43000236",
"name": "Westminster, unparished area"
},
"parliamentaryConstituency": {
"code": "E14001172",
"name": "Cities of London and Westminster",
"boundaries": "2024"
},
"lsoa21": {
"code": "E01004736",
"name": "Westminster 018C",
"type": "lsoa_2021"
},
"msoa21": {
"code": "E02000977",
"name": "Westminster 018",
"type": "msoa_2021"
},
"outputArea21": "E00023938",
"policeForceArea": {
"code": "E23000001",
"name": "Metropolitan Police"
},
"nhs": {
"icb": {
"code": "E54000071",
"name": "NHS West and North London Integrated Care Board"
},
"subIcbLocation": {
"code": "E38000256",
"name": "NHS West and North London ICB - W2U3Z"
}
},
"ruralUrban": {
"code": "UN1",
"description": "Urban: Nearer to a major town or city",
"urbanRural": "Urban",
"classification": "Rural Urban Classification 2021"
}
},
"flood": {
"release": "2026-11-11",
"inDataset": true,
"addressesByRisk": {
"high": 0,
"medium": 2,
"low": 5
},
"addressesAtRisk": 7,
"groundwater": "unlikely",
"sources": [
"Risk of Flooding from Rivers and Sea",
"Risk of Flooding from Surface Water",
"Groundwater flood alert areas"
],
"note": "Number of addresses in the postcode in areas at high (3.3% or more a year), medium (1% to 3.3%) and low (0.1% to 1%) long-term flood risk, taking the higher of the risk from rivers and the sea and from surface water. Addresses at very low risk are not counted. Groundwater is separate: possible when any address is in a groundwater flood alert area. The risk is for the area around each address, not the building.",
"checkUrl": "https://www.gov.uk/check-long-term-flood-risk"
},
"crime": {
"months": [
"2025-10",
"2025-11",
"2025-12",
"2026-01",
"2026-02",
"2026-03",
"2026-04",
"2026-05",
"2026-06",
"2026-07",
"2026-08",
"2026-09"
],
"latestMonth": "2026-09",
"total": 1284,
"byCategory": {
"theft-from-the-person": 402,
"other-theft": 233,
"anti-social-behaviour": 188,
"violent-crime": 151,
"shoplifting": 96,
"robbery": 71,
"public-order": 52,
"bicycle-theft": 31,
"criminal-damage-arson": 22,
"drugs": 18,
"vehicle-crime": 11,
"burglary": 6,
"possession-of-weapons": 2,
"other-crime": 1
},
"radius": {
"metres": 805,
"description": "Within about half a mile of the postcode (police.uk refuses areas with more than 10,000 crimes a month, so we used a smaller area)",
"reduced": true,
"centre": {
"latitude": 51.501,
"longitude": -0.142
}
},
"note": "Street-level crimes and anti-social behaviour reported by police forces to police.uk. Locations are approximate: police.uk moves each crime to a nearby anonymous map point."
},
"schools": {
"phase": "all",
"limit": 2,
"items": [
{
"urn": 100000,
"name": "Sandbox Church of England Primary School",
"phase": "Primary",
"type": "Voluntary aided school",
"typeGroup": "Local authority maintained schools",
"distanceMetres": 412,
"postcode": "SW1P 1AA",
"localAuthority": "Westminster",
"ageRange": {
"low": 3,
"high": 11
},
"gender": "Mixed",
"ofsted": {
"framework": "report_card",
"overallEffectiveness": null,
"reportCard": {
"safeguarding": "Met",
"inclusion": "Strong standard",
"curriculumAndTeaching": "Expected standard",
"achievement": "Expected standard",
"attendanceAndBehaviour": "Strong standard",
"personalDevelopmentAndWellbeing": "Expected standard",
"earlyYears": "Expected standard",
"post16": null,
"leadershipAndGovernance": "Expected standard"
},
"categoryOfConcern": null,
"inspectionType": "S5 Inspection",
"inspectedOn": "2026-03-10",
"publishedOn": "2026-04-21",
"relatesToPredecessorSchool": false,
"previousGradedInspection": {
"framework": "grade",
"overallEffectiveness": "Good",
"judgements": {
"qualityOfEducation": "Good",
"behaviourAndAttitudes": "Good",
"personalDevelopment": "Outstanding",
"leadershipAndManagement": "Good",
"earlyYears": "Good"
},
"safeguardingEffective": true,
"categoryOfConcern": null,
"inspectedOn": "2019-05-14",
"publishedOn": "2019-06-20",
"relatesToPredecessorSchool": false,
"reportUrl": null
},
"reportUrl": "https://reports.ofsted.gov.uk/"
}
},
{
"urn": 100001,
"name": "Sandbox Academy",
"phase": "Secondary",
"type": "Academy converter",
"typeGroup": "Academies",
"distanceMetres": 730,
"postcode": "SW1P 2AA",
"localAuthority": "Westminster",
"ageRange": {
"low": 11,
"high": 18
},
"gender": "Mixed",
"ofsted": {
"framework": "grade",
"overallEffectiveness": "Good",
"judgements": {
"qualityOfEducation": "Good",
"behaviourAndAttitudes": "Good",
"personalDevelopment": "Good",
"leadershipAndManagement": "Good",
"sixthForm": "Good"
},
"safeguardingEffective": true,
"categoryOfConcern": null,
"inspectedOn": "2023-01-24",
"publishedOn": "2023-03-02",
"relatesToPredecessorSchool": false,
"reportUrl": "https://reports.ofsted.gov.uk/",
"latestUngradedInspection": {
"inspectedOn": "2025-02-11",
"publishedOn": "2025-03-20",
"outcome": "School remains Good",
"relatesToPredecessorSchool": false
}
}
}
]
}
},
"meta": {
"requestId": "req_2c9d4e1f7a6b3c50",
"sandbox": true,
"partial": false,
"stale": false,
"sources": {
"areas": {
"status": "ok",
"release": "August 2026",
"cache": "sandbox"
},
"flood": {
"status": "ok",
"release": "2026-11-11",
"cache": "sandbox"
},
"crime": {
"status": "ok",
"cache": "sandbox"
},
"schools": {
"status": "ok",
"release": {
"gias": "2026-11-24",
"ofsted": "2026-10-31"
},
"cache": "sandbox"
}
},
"usage": {
"plan": "free",
"used": 4,
"limit": 100,
"period": "2026-11"
}
}
}Fuel prices
Current prices at UK forecourts from the government Fuel Finder scheme, with a plain API key. Find the nearest or cheapest by postcode or coordinates, look up a station and see its price history.
- Unleaded (E10, E5), diesel (B7), premium diesel, B10 and HVO
- Nearest or cheapest within a radius, sorted on price or distance only
- Each price keeps the time the forecourt reported it
- Price history for any station
1,000 requests a month free. 20,000 a month with any paid plan.
curl "https://api.tychelabs.net/v1/fuel/nearest?postcode=SW1A%202AA&fuel=E10&radius=5" \
-H "x-api-key: $TYCHE_API_KEY"const res = await fetch("https://api.tychelabs.net/v1/fuel/nearest?postcode=SW1A2AA&fuel=E10&sort=price", {
headers: { "x-api-key": process.env.TYCHE_API_KEY },
});
const { data } = await res.json();
for (const s of data.items) {
console.log(s.station.name, s.price, s.priceLastUpdated, s.distanceKm);
}import os, requests
r = requests.get(
"https://api.tychelabs.net/v1/fuel/nearest",
params={"postcode": "SW1A 2AA", "fuel": "B7", "limit": 5},
headers={"x-api-key": os.environ["TYCHE_API_KEY"]},
timeout=10,
)
for s in r.json()["data"]["items"]:
print(s["station"]["name"], s["price"], s["distanceKm"])Example response
{
"data": {
"fuel": "E10",
"location": {
"lat": 51.50101,
"lng": -0.141563
},
"radiusKm": 5,
"sort": "price",
"total": 4,
"items": [
{
"station": {
"id": "0505050505050505050505050505050505050505050505050505050505050505",
"name": "PLACEHOLDER ENERGY VAUXHALL",
"brand": "PLACEHOLDER ENERGY",
"address": {
"line1": "5 Placeholder Place",
"line2": null,
"city": "LONDON",
"county": null,
"postcode": "SE11 1AA",
"country": "England"
},
"location": {
"lat": 51.4862,
"lng": -0.1229
},
"isMotorway": false,
"isSupermarket": false,
"temporaryClosure": false,
"permanentClosure": false
},
"distanceKm": 2.09,
"fuel": "E10",
"price": 132.9,
"unit": "pence_per_litre",
"priceLastUpdated": "2026-11-24T06:31:12.000Z",
"priceEffectiveAt": "2026-11-24T06:30:00.000Z"
},
{
"station": {
"id": "0202020202020202020202020202020202020202020202020202020202020202",
"name": "SAMPLE SUPERSTORE BATTERSEA",
"brand": "SAMPLE SUPERSTORE",
"address": {
"line1": "2 Sample Way",
"line2": null,
"city": "LONDON",
"county": null,
"postcode": "SW11 1AA",
"country": "England"
},
"location": {
"lat": 51.4791,
"lng": -0.15
},
"isMotorway": false,
"isSupermarket": true,
"temporaryClosure": false,
"permanentClosure": false
},
"distanceKm": 2.51,
"fuel": "E10",
"price": 132.9,
"unit": "pence_per_litre",
"priceLastUpdated": "2026-11-24T06:31:12.000Z",
"priceEffectiveAt": "2026-11-24T06:30:00.000Z"
}
]
},
"meta": {
"requestId": "req_4d8b2a6c1e9f3b70",
"sandbox": true,
"source": "fuel_finder",
"dataRefreshedAt": "2026-11-24T07:55:00.000Z",
"dataAgeSeconds": 22505,
"reportDiscrepancyUrl": "https://www.fuel-finder.service.gov.uk/motorist/price-report",
"ranking": "price, then distance",
"excluded": {
"closed": 1,
"implausiblePrice": 0
},
"plausiblePriceRange": {
"min": 50,
"max": 400,
"unit": "pence_per_litre"
},
"usage": {
"plan": "free",
"used": 9,
"limit": 1000,
"period": "2026-11"
}
}
}Questions
Where does the postcode data come from?
Area codes come from the ONS Postcode Directory. Flood risk comes from the Environment Agency, crime from police.uk, and schools from the Department for Education with Ofsted inspection outcomes. All are published under the Open Government Licence.
Do you cover Northern Ireland?
Not yet. Northern Ireland postcode data needs a separate commercial licence, so BT postcodes (and Channel Islands and Isle of Man postcodes) return a clear unsupported response that is not counted.
Which areas do flood, crime and schools cover?
Flood risk and schools cover England. Crime covers England and Wales (police.uk does not include Scotland). Area codes cover all of Great Britain.
How fresh are fuel prices?
Forecourts must report price changes to Fuel Finder within 30 minutes. Prices stay fresh to within minutes, each with the time the forecourt reported it, unchanged.
Do you rank or favour fuel brands?
No. Results are sorted by price or distance only, as the Fuel Finder fair use policy requires.