# Redfin Schools Near a Property

<p>List the schools that serve a property: name, GreatSchools rating (1-10), parent rating, distance in miles, grade range, public or private type, whether the school serves the home, number of students, student-teacher ratio, address, rating parts (test scores, student growth, equity) and the school district. An empty list is a valid result. The data is US only.</p><p><strong>Cost:</strong> 1 credit per successful request. Failed requests are not charged.</p>

- **Documentation:** [https://scrappa.co/docs/redfin-api/redfin_schools](https://scrappa.co/docs/redfin-api/redfin_schools)
- **API group:** Redfin API
- **Endpoint:** `GET https://scrappa.co/api/redfin/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 | <p>Redfin property ID from /api/redfin/search (property_id).</p> |

## Example response

```json
{
    "count": 3,
    "schools": [
        {
            "id": 54817,
            "name": "James Baldwin Elementary School",
            "type": "Public",
            "grades": "PreK-5",
            "rating": 8,
            "ratings": [
                {
                    "type": "Test Scores",
                    "rating": 6
                }
            ],
            "district": "Seattle Public Schools",
            "students": 287,
            "serves_home": true,
            "parent_rating": 5,
            "distance_miles": 1.1
        }
    ],
    "districts": [
        {
            "id": 4179,
            "name": "Seattle Public Schools",
            "has_choice_schools": false
        }
    ],
    "property_id": 102610
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 400 | Invalid characters in parameter | The request contains null bytes or unsupported control characters. |
| 422 | The request validation failed | One or more Redfin request parameters failed validation. |
| 404 | Property not found | Property not found |
| 500 | Failed to fetch data from Redfin after multiple attempts. | The upstream service is temporarily unavailable. Please retry shortly. |

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