# Realtor.com Nearby Schools API Documentation

<p><strong>Realtor.com Nearby Schools API</strong> Get the schools near one property, grouped by up to limit_per_level schools per school level. Each school has a name, distance in miles, rating, education levels, funding type, student count, grades and coordinates.</p>

- **Documentation:** [https://scrappa.co/docs/realtor-com-api/realtor_com_schools](https://scrappa.co/docs/realtor-com-api/realtor_com_schools)
- **API group:** Realtor.com API
- **Endpoint:** `GET https://scrappa.co/api/realtor-com/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 |
| --- | --- | --- | --- |
| `property_id` | string | Yes | Realtor.com property id, 5 to 20 digits. Example: 7707272774. Get one from the search endpoint or from an address result of the autocomplete endpoint. |
| `radius_mi` | number | No | Search radius in miles, 0.5 to 25. Default 5. |
| `limit_per_level` | integer | No | Schools per school level, 1 to 10. Default 3. |

## Example response

```json
{
    "data": {
        "schools": [
            {
                "name": "River Oaks Elementary School",
                "grades": [
                    "K",
                    "1",
                    "2",
                    "3",
                    "4",
                    "5"
                ],
                "rating": 6,
                "coordinates": {
                    "lat": 30.408829,
                    "lon": -97.687045
                },
                "funding_type": "public",
                "student_count": 551,
                "distance_miles": 1.4,
                "education_levels": [
                    "elementary"
                ]
            },
            {
                "name": "Westview Middle School",
                "grades": [
                    "6",
                    "7",
                    "8"
                ],
                "rating": 2,
                "coordinates": {
                    "lat": 30.416679,
                    "lon": -97.689493
                },
                "funding_type": "public",
                "student_count": 770,
                "distance_miles": 1.9,
                "education_levels": [
                    "middle"
                ]
            }
        ],
        "radius_mi": 5,
        "property_id": "7707272774"
    },
    "meta": {
        "billable": true,
        "endpoint_family": "schools"
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A required parameter is missing or invalid. This response is not billable. |
| 404 | Property Not Found | No property has this id. This response is not billable. |
| 503 | Temporarily Unavailable | Realtor.com did not answer after several attempts. This response is not billable. Retry after a short pause. |

## 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)
