---
title: "Get nearby schools"
method: GET
path: "/schools"
---

# Get nearby schools

`GET /schools`

## Request

- Base URL: `https://api.propertydata.co.uk`
- URL: `https://api.propertydata.co.uk/schools`
- Auth: HTTP bearer

Costs 1 credit per call. Coverage: England only, not Wales, Scotland or Northern Ireland.

## Query parameters

- `postcode` string
- `location` string
- `town` string

## Response `200`

Successful response

- object
  - `status` string
  - `postcode` string
  - `postcode_type` string
  - `url` string
  - `data` object
    - `state` object
      - `nearest` object[]
        - `name` string
        - `local_authority` string
        - `postcode` string
        - `lat` string
        - `lng` string
        - `type` string
        - `phase` string
        - `sixth_form` string
        - `num_pupils` integer
        - `deprivation` string
        - `inspection_start` string
        - `inspection_end` string
        - `inspection_pub` string
        - `url` string
        - `distance` string
    - `independent` object
      - `nearest` object[]
        - `name` string
        - `postcode` string
        - `lat` string
        - `lng` string
        - `type` string
        - `gender` string
        - `phase` string
        - `num_pupils` unknown
        - `telephone` string
        - `website` string
        - `url` string
        - `distance` string
  - `process_time` string: Server processing time in seconds

## Other responses

- `4XX`: Error response. Common codes: X02 missing key (400), X03 invalid key (422), X04 credit limit exceeded (403), X06/X07 missing or invalid location input (400/422), X08 insufficient data for location (404), X13 free trial limit exceeded (403), X14 rate limited (429), X20 server busy, retry after 60 seconds (503).

---

[API](https://skmtc.dev/propertydata/apis/propertydata-api.md) · [All operations](https://skmtc.dev/propertydata/apis/propertydata-api/llms.txt) · [OpenAPI document](https://skmtc.dev/propertydata/apis/propertydata-api/revisions/38ab011f2f4c?raw)
