Postcode data and fuel prices, ready to use.
Area codes, flood risk, crime and schools for any postcode in one call, plus current UK fuel prices.
Fuel prices are free on every key. Read the quickstart
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: areas, flood, crime or schools
What postcode check does not cover
100 checks a month free. Paid plans from £15 a month.
curl https://api.vardic.dev/v1/postcodes/SW1A2AA \
-H "x-api-key: $VARDIC_API_KEY"const res = await fetch("https://api.vardic.dev/v1/postcodes/SW1A2AA?schools=3", {
headers: { "x-api-key": process.env.VARDIC_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.vardic.dev/v1/postcodes/SW1A2AA",
params={"include": "areas,flood,schools"},
headers={"x-api-key": os.environ["VARDIC_API_KEY"]},
timeout=15,
)
pc = r.json()["data"]
print(pc["areas"]["ward"]["name"], pc["flood"]["addressesAtRisk"])Example response (made-up sandbox data)
{
"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": {
"sandbox": true,
"notice": "Sandbox: made-up test data. Not a real record or lookup, and never billed.",
"requestId": "req_2c9d4e1f7a6b3c50",
"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"
}
}
}
}Coverage and freshness
- ONS Postcode Directory
- Great Britain. Northern Ireland, Channel Islands and Isle of Man postcodes are not covered. Quarterly releases (the one in use is on the status page).
- Environment Agency flood risk data
- England only. Scotland and Wales have their own flood agencies. The release dated on the status page.
- police.uk
- England, Wales and Northern Ireland. Police Scotland does not publish street-level crime. Locations are anonymised to a nearby point. Monthly. Each month is published about two months later.
- Get Information About Schools and Ofsted outcomes
- Schools in England only. The releases dated on the status page.
Not covered
- Northern Ireland, Channel Islands and Isle of Man postcodes
- Flood risk outside England, and schools outside England
- Street-level crime in Scotland
- Property prices, energy ratings and broadband
In practice: a property listing page
Under the address, show the flood risk, recent crime nearby and the closest schools, with the source named under each.
const { data } = await (await fetch(
`https://api.vardic.dev/v1/postcodes/${postcode}`, { headers })).json();
show("Flood risk", data.flood.addressesByRisk); // high, medium, low
show("Crime, last 12 months", data.crime.total);
show("Council", data.areas.localAuthority.name);A sketch of the integration: headers carries your key. A sandbox key returns made-up sandbox data.
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
What fuel prices does not cover
1,000 requests a month free. 20,000 a month with any paid plan.
curl "https://api.vardic.dev/v1/fuel/nearest?postcode=SW1A%202AA&fuel=E10&radius=5" \
-H "x-api-key: $VARDIC_API_KEY"const res = await fetch("https://api.vardic.dev/v1/fuel/nearest?postcode=SW1A2AA&fuel=E10&sort=price", {
headers: { "x-api-key": process.env.VARDIC_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.vardic.dev/v1/fuel/nearest",
params={"postcode": "SW1A 2AA", "fuel": "B7", "limit": 5},
headers={"x-api-key": os.environ["VARDIC_API_KEY"]},
timeout=10,
)
for s in r.json()["data"]["items"]:
print(s["station"]["name"], s["price"], s["distanceKm"])Example response (made-up sandbox data)
{
"data": {
"fuel": "E10",
"location": {
"lat": 51.50101,
"lng": -0.141563
},
"radiusKm": 5,
"sort": "price",
"total": 4,
"items": [
{
"station": {
"id": "0505050505050505050505050505050505050505050505050505050505050505",
"name": "EXAMPLE SERVICE STATION VAUXHALL",
"brand": "EXAMPLE SERVICE STATION",
"address": {
"line1": "5 Sample Road",
"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": "EXAMPLE SERVICE STATION BATTERSEA",
"brand": "EXAMPLE SERVICE STATION",
"address": {
"line1": "2 Sample Road",
"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": {
"sandbox": true,
"notice": "Sandbox: made-up test data. Not a real record or lookup, and never billed.",
"requestId": "req_4d8b2a6c1e9f3b70",
"source": "fuel_finder",
"dataRefreshedAt": "2026-11-24T07:55:00.000Z",
"dataAgeSeconds": 457349,
"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"
}
}
}Coverage and freshness
- Fuel Finder (Motor Fuel Price (Open Data) Regulations 2025)
- Forecourts that report to the scheme. Price history starts on 24 November 2026 and is kept for 90 days. Never older than 15 minutes, each price with its own timestamp.
Not covered
- Forecourts that do not report to the scheme
- Price history before 24 November 2026
In practice: a fleet driver app
Show the cheapest E10 within a few miles of the driver, with each price's own timestamp as the scheme requires.
const { data } = await (await fetch(
"https://api.vardic.dev/v1/fuel/nearest?postcode=SW1A2AA&fuel=E10", { headers })).json();
const best = data.items[0];
show(best.station.name, `${best.price}p`, best.priceLastUpdated);A sketch of the integration: headers carries your key. A sandbox key returns made-up sandbox data.
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.
Make your first call in under a minute.
Sign up with your email and your key is on screen straight away. Fuel prices are free on every key. For volume, an SLA or invoice billing, talk to us.