Location intelligence

Demographics API

Retrieve eight Census 2021 datasets in one response, covering age, household composition, tenure, bedrooms, ethnicity, religion, qualifications, and occupations.

Endpoint

GET/api/v1/area/demographics

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.

Parameters

NameRequiredTypeDescription
postcodeYesstringFull England or Wales postcode.

Source and coverage

Source
Census 2021, Office for National Statistics and Welsh Government
Coverage
England and Wales, at LSOA 2021 level

Example request

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

Example response

{
  "success": true,
  "data": {
    "postcode": "S11 8YL",
    "area": {
      "lsoaCode": "E01008049",
      "localAuthorityName": "Sheffield City Council"
    },
    "census": {
      "age": {
        "total": 1643,
        "categories": {
          "age_25_34": {
            "count": 312,
            "percentage": 19
          }
        }
      }
    }
  }
}

OpenAPI specification

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