# Zillow Schools

<p>Find schools near an area, or look up specific schools by id. Results include the school name, coordinates, school type, the grade levels it serves, its grades and a link to the school profile.</p><h2>Two ways to query</h2><p>Pass a bounding box to search an area, or a list of school ids to resolve schools you already know. School detail does not include walk, transit or bike scores.</p>

- **Documentation:** [https://scrappa.co/docs/zillow-api/zillow_schools](https://scrappa.co/docs/zillow-api/zillow_schools)
- **API group:** Zillow API
- **Endpoint:** `GET https://scrappa.co/api/zillow/schools`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `north_latitude` | number | No | Northern bound of the search area. |
| `south_latitude` | number | No | Southern bound of the search area. |
| `east_longitude` | number | No | Eastern bound of the search area. |
| `west_longitude` | number | No | Western bound of the search area. |
| `school_ids[]` | array | No | Resolve specific schools by id instead of searching an area. |
| `page` | integer | No | Page number, 1-based. |
| `page_size` | integer | No | Schools per page, up to 50. |

## Example request

```bash
#!/bin/bash

curl -X GET \
    -H "x-api-key: YOUR_API_KEY_HERE" \
    "https://scrappa.co/api/zillow/schools?north_latitude=47.75&south_latitude=47.45&east_longitude=-122.15&west_longitude=-122.45"
```

## Example response

```json
{
    "data": {
        "schools": [],
        "total_schools": 0,
        "count": 0
    }
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 400 | The request validation failed | A query parameter is missing, malformed, or outside its documented range. This is the only Zillow response that carries no error code: the body has a message and a field list and nothing else, so match it on the 400 status. |
| 422 | No research dataset matches that family and geography | The requested research file does not exist for the combination given. |
| 422 | More than one research dataset matches | The family, geography and variant given do not identify a single research file. |
| 422 | No accuracy figures are published for that region | The named state or metropolitan area publishes no estimate-accuracy data. |
| 422 | The upstream rejected the request | Zillow answered with a deterministic 4xx. |
| 422 | The building returned does not match the requested address | The decoded building token resolved to a building at a different address than the slug names. |
| 503 | The listing source answered with a block or rate-limit page | The request reached the source, but what came back was a challenge or rate-limit page rather than the data. |
| 503 | The listing source returned a server error | The request was served and answered with a 5xx. |
| 503 | The listing source did not answer in time | The request was sent and no answer came back before the deadline. |
| 503 | The request could not be sent | No approved exit could be reached, so the request never reached the listing source. |
| 503 | No approved exit is available | There was no usable approved exit to send the request through. |
| 503 | The upstream returned a document this integration cannot read | The publisher changed the shape of a response or served a document that is not the expected file. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
