Location intelligence

Liveability Score API

Resolve a postcode or coordinate to the nearest scored H3 neighbourhood, including the overall score, component scores, tags, and supporting local summaries.

Liveability score API endpoint

GET/api/v1/area/liveability

Provide postcode, or both latitude and longitude. percentile is the share of homes in the same nation whose neighbourhood scores lower. It weights every LSOA (a Census area of about 1,500 residents) equally, so it tracks homes rather than land area. England, Wales and Scotland are scored and ranked separately, so a Welsh or Scottish score cannot be compared with an English one. Welsh scores use the Welsh Index of Multiple Deprivation 2025 and OpenStreetMap amenities. Scottish scores use the Scottish Index of Multiple Deprivation 2020v2 and OpenStreetMap amenities, and are built on 2011 data zones (about 800 residents each), so lsoaCode holds an S01 data zone code. Both leave out schools, because there is no Welsh or Scottish school ratings source yet: components.schools and schoolSummary are null and excludedInputs lists what was left out.

Billing details in the response

Successful chargeable JSON responses include a top-level billing object. The endpoint examples on this page focus on the endpoint-specific data, so this repeated block may not be shown in every example.

"billing": {
  "mode": "prepaid",
  "creditsCharged": 1,
  "creditsRemaining": 1999,
  "creditsRefreshAt": "2026-08-14T09:30:00.000Z"
}
Field or headerMeaning
billing.creditsCharged
X-Credits-Charged
Credits charged by this call. Failed and non-chargeable calls return 0 in the header.
billing.creditsRemaining
X-Credits-Remaining
The credit balance after the call.
billing.creditsRefreshAt
X-Credits-Refresh-At
The next monthly credit refresh as an ISO 8601 timestamp. Trial and non-renewing balances return null and omit the header.

All authenticated API-key calls expose the billing headers, including validation errors and zero-credit status or management requests. Only successful chargeable JSON responses add the billing object to the response body.

When credits run out

If your balance is lower than the cost of a request, the API returns HTTP 402 and charges nothing. The error includes the credits needed, your balance and a link to change plan.

{
  "statusCode": 402,
  "statusMessage": "Payment Required",
  "data": {
    "success": false,
    "error": {
      "code": "INSUFFICIENT_CREDITS",
      "message": "This request costs 35 API credits. Upgrade your plan or wait for your monthly refresh: https://propertyinsights.co.uk/billing",
      "required": 35,
      "available": 12,
      "upgradeUrl": "https://propertyinsights.co.uk/billing"
    }
  }
}

Liveability score API parameters

NameRequiredTypeDescription
postcodeNostringFull England, Wales or Scotland postcode. Alternatively provide coordinates.
latitudeNonumberLatitude when postcode is omitted.
longitudeNonumberLongitude when postcode is omitted.

Source and coverage

Source
Property Insights liveability model using Census, deprivation, amenities, crime, and school data
Coverage
England, Wales and Scotland, using H3 resolution 9. Welsh and Scottish scores leave out schools

Example request

curl -X GET "https://propertyinsights.co.uk/api/v1/area/liveability?postcode=S11%208YL" \
  -H "x-api-key: YOUR_API_KEY"

Example response

{
  "success": true,
  "data": {
    "postcode": "S11 8YL",
    "nation": "england",
    "hexId": "8919423964fffff",
    "score": 94,
    "percentile": 71,
    "headline": "Better than 71% of homes in England",
    "components": {
      "safety": 91,
      "social": 88,
      "amenities": 97,
      "schools": 93
    },
    "tags": [
      {
        "id": "commuter",
        "label": "Commuter"
      }
    ]
  }
}

OpenAPI specification

Authentication, parameters, billing headers and response schemas are also published in the machine-readable OpenAPI documents in JSON and YAML.