Street Grader API

Street grades for your product, as JSON

One call gives you the grade for any postcode, street, neighbourhood, town, council or county in England and Wales: A+ to C from official open data, with the six measures behind it.

  • 100 free calls a month
  • No card to start
  • Plain JSON over HTTPS
B+
YO10 5ALKensal Rise, York · Very good
  • BSafety51
  • B+Living standards60
  • B+Schools73
  • AAmenities85
  • B+Green space66
  • B+Transport69

Flood risk: very low · Data release 2026.10.4

What’s in every answer

The same grades as the Street Grader app and website, on one national scale, so an A+ in Cornwall means the same as an A+ in Cardiff. How grades work

  • One overall grade

    A+ to C, in words too (“Good”), with a score from 0 to 100.

  • Six measures

    Safety, Living standards, Schools, Amenities, Green space and Transport, each with its own grade and 0–100 score.

  • Flood risk

    The long-term risk from rivers and the sea: high, medium, low or very low.

  • Strengths and weaknesses

    The measures an area stands out for, and the ones it’s weaker on, as in the app’s summaries.

  • The areas around it

    A postcode’s street, neighbourhood, town or suburb, council and county, each with its own grade.

  • Links and attribution

    A link to the place in Street Grader, the data release it comes from, and the line to show beside it.

  • Postcodes1.4mgraded at their own spot
  • Streets808,000searchable by name
  • Neighbourhoods35,7002021 LSOAs
  • Places19,300cities, towns, villages, suburbs
  • Councils318and 69 counties

Grades only. The API describes areas, never people: it holds no data about individuals, and ethnicity, religion and country of birth are never used in any grade.

One request, one answer

Look up a postcode, with your key in the Authorization header:

curl -H "Authorization: Bearer sg_live_…" \
  https://www.streetgrader.com/api/v1/grades/postcode/YO105AL

And you get back:

{
  "postcode": "YO10 5AL",
  "lat": 53.949103,
  "lng": -1.073239,
  "graded": true,
  "grade": "B+",
  "grade_words": "Very good",
  "score": 67,
  "measures": {
    "safety": { "grade": "B", "score": 51 },
    "living_standards": { "grade": "B+", "score": 60 },
    "schools": { "grade": "B+", "score": 73 },
    "amenities": { "grade": "A", "score": 85 },
    "green_space": { "grade": "B+", "score": 66 },
    "transport": { "grade": "B+", "score": 69 }
  },
  "flood_risk": "very_low",
  "street": "Kensal Rise",
  "neighbourhood": { "code": "E01013364", "name": "York 019E", "grade": "B+", "score": 70 },
  "place": {
    "id": "north-yorkshire/fishergate",
    "name": "Fishergate",
    "type": "suburb",
    "url": null,
    "grade": "A",
    "score": 83,
    "part_of": {
      "id": "north-yorkshire/york",
      "name": "York",
      "type": "city",
      "url": "https://www.streetgrader.com/places/north-yorkshire/york/",
      "grade": "B+",
      "score": 67
    }
  },
  "council": { "code": "E06000014", "name": "York", "grade": "B+", "score": 73 },
  "county": { "id": "north-yorkshire", "name": "North Yorkshire" },
  "links": { "app": "https://www.streetgrader.com/s/E00067435" },
  "data_version": "2026.10.4",
  "attribution": "Grades: Street Grader (https://www.streetgrader.com), from official open data. Contains public sector information licensed under the Open Government Licence v3.0."
}

A real answer from data release 2026.10.4.

Pricing

Start free, then pick a plan when you need more calls. Pay monthly, or yearly and get two months free. Prices are in pounds, and no VAT is charged.

  • Free

    £0

    No card needed

    100 calls a month

    • For trying the API
    • Every endpoint except batch
  • Starter

    £29 a month

    or £290 a year

    10,000 calls a month

    • Every endpoint except batch
  • Growth

    £99 a month

    or £990 a year

    50,000 calls a month

    • Every endpoint
    • Batch postcode lookups
  • Scale

    £299 a month

    or £2,990 a year

    250,000 calls a month

    • Every endpoint
    • Batch postcode lookups

Every plan includes commercial use with attribution, and you can cancel any time. There are no surprise bills: when you’ve used your monthly calls, the API stops answering until the 1st of next month, or until you upgrade.

Need every grade at once? A bulk data licence covers the whole grades table for each data release. Ask us.

Docs

Address and keys

Every endpoint is under https://www.streetgrader.com/api/v1 and answers in JSON. Send your key with every request, in either header:

Authorization: Bearer sg_live_…
X-Api-Key: sg_live_…

Keep keys on your server. Don’t put them in an app or a web page, where anyone could copy them. If a key gets out, revoke it in your account and make a new one.

Endpoints

Paths below are relative to /api/v1. Each answered lookup counts as one call; errors (400, 404 and so on) are free.

GET/grades/postcode/{postcode}

The grade for one postcode, worked out at the postcode’s own spot, with its street, neighbourhood, town or suburb, council and county.

postcode
A full postcode in England or Wales, any case, with or without the space: YO105AL or YO10%205AL.

A postcode with no homes (mostly business postcodes) comes back with "graded": false and no grade of its own; use its neighbourhood’s.

POST/grades/postcodesGrowth and Scale

Up to 100 postcodes in one request. Each postcode we answer counts as one call; ones that are invalid or not found are free.

{"postcodes": ["YO10 5AL", "CF10 1EP"]}

Answers come back in results, in the order you sent them. A postcode we can’t answer comes back as {"query": "…", "error": "postcode_not_found"} (or invalid_postcode).

GET/grades/point?lat=&lng=

The grade of the nearest graded postcode within 2 km of a point, as for a postcode, plus distance_m: how far away it is, in metres.

lat, lng
Decimal degrees (WGS84), such as lat=51.2788&lng=1.0835.

GET/grades/street?name=

Streets with that name, biggest first, each with its grade. A street takes the grade of its main 2021 Output Area (about 130 households). Postcodes are graded at their own spot, so a postcode and its street can differ slightly.

name
Required. The street name, such as Kensal Rise. If nothing matches exactly, names that start with it.
town
Optional. A town, area or post town.
postcode
Optional. A postcode district (CT1) or a full postcode.
council
Optional. An ONS council code, such as E07000106.
limit
Optional. 1 to 50; 10 if you leave it out.

GET/grades/neighbourhood/{code}

A neighbourhood: a 2021 Lower layer Super Output Area (LSOA) of about 1,500 people, by its ONS code, such as E01013364. With its town or suburb and council.

GET/grades/output-area/{code}

A 2021 Output Area of about 130 households (the level streets are graded at), by its ONS code, such as E00067435.

GET/grades/place/{county}/{place}

A city, town, village or suburb, graded across its neighbourhoods and weighted by how many people live in each. The ids are the same as in our place pages’ addresses: kent/canterbury for /places/kent/canterbury/.

GET/grades/places?q=

Find places by name: exact matches first, otherwise names that start with what you sent. Cities come first, then towns, villages and suburbs, biggest first.

q
Required. A place name, such as Canterbury.
type
Optional. city, town, village or suburb.
county
Optional. A county id, such as kent.
limit
Optional. 1 to 50; 10 if you leave it out.

GET/grades/council/{code}

A council (local authority district), by its ONS code, such as E07000106 for Canterbury.

GET/grades/county/{id}

A county, by the id in its place page address, such as kent for /places/kent/.

Grades, scores and flood risk

  • A+Exceptional
  • AExcellent
  • B+Very good
  • BGood
  • C+Fair
  • CBelow average
  • grade is the letter and grade_words the words above. score runs from 0 to 100, and higher is better. A measure is null where there’s no data for it.
  • measures always has the same six keys: safety, living_standards, schools, amenities, green_space and transport. Where an answer has strengths and weaknesses, they’re lists of those keys.
  • flood_risk is high, medium, low or very_low: the long-term risk from rivers and the sea, not a flood warning.
  • What goes into each measure, and the weights, are on How it works.

Your monthly calls

Every answer tells you where you stand:

HeaderWhat it says
X-Quota-LimitYour calls a month on your plan.
X-Quota-RemainingCalls left this month.
X-Quota-ResetWhen the count starts again: the 1st of next month (UTC), as an ISO date.

Errors

Errors come back with an HTTP status and a JSON body you can show or log:

{"error": "postcode_not_found", "message": "Postcode not found in England or Wales."}
StatuserrorWhat it means
400invalid_requestA parameter is missing or not valid; message says which.
400invalid_postcodeThat doesn’t look like a UK postcode.
400invalid_coordinateslat and lng must be decimal degrees.
400outside_coverageThe point is outside England and Wales.
401missing_keyNo API key was sent.
401invalid_keyThe key is wrong or has been revoked.
403plan_requiredBatch lookups need the Growth or Scale plan.
404not_foundNo area, place, council or county with that code or id.
404postcode_not_foundNot a postcode in England or Wales.
404nothing_nearbyNo graded homes within 2 km of that point.
429quota_exceededYou’ve used this month’s calls. They reset on the 1st (UTC), or upgrade for more.
429rate_limitedToo many requests at once. Slow down and try again in a moment.
503grades_unavailableGrades are being updated. Try again shortly.

Data releases

Grades are refreshed with each new data release, and every answer carries its data_version (such as 2026.10.4). You may keep answers for up to 30 days, but not past the next release: when data_version changes, fetch again. New fields may be added to answers at any time, so ignore any you don’t know.

Attribution

Wherever you show a grade, show “Grades: Street Grader” with a link to https://www.streetgrader.com. The attribution field in every answer has the full line, including the Open Government Licence notice for the data behind the grades. For example:

<p>Grades: <a href="https://www.streetgrader.com">Street Grader</a>, from official open data.
Contains public sector information licensed under the Open Government Licence v3.0.</p>

Using the API means agreeing to the API Terms. In short: show the attribution, don’t resell the grades in bulk, and never use them to make decisions about individual people.

Your API account

Sign in with your email to create an API account, make keys and choose a plan. If you already have a Street Grader account in the app, it’s the same one.

We use your email, company and what you tell us you’ll use the API for only to run your account, as our privacy policy explains. Our API never writes the postcodes or places you look up to its own logs or database.