Skip to content
Scrappa Get API key
Zumper API 1 credit/request

Zumper School Districts

GET https://scrappa.co/api/zumper/school-districts

view=districts (default) lists the school districts of a city. view=levels returns the schools of one level in a district and needs district_id and level. Take district_id from the districts list.

Zumper School Districts 1 credit/request

Endpoint

Request preview
GET
https://scrappa.co/api/zumper/school-districts
Auth header
x-api-key
Cost
1 credit/request
city = san-francisco-ca
Response preview
200 OK
{
    "data": {
        "school_districts": [
            {
                "name": "San Francisco Unified School District",
                "distance": null,
                "high_count": 17,
                "middle_count": 21,
                "total_schools": 106,
                "total_students": 48785,
                "elementary_count": 76,
                "school_district_id": "6739ad45-3827-4000-998c-fdd4f5029e17"
            }
        ]
...

Parameters

Start with the required fields, then add optional filters only when your use case needs them.

Runnable path

1 required parameter needed before sending a request.

3 optional filters available.

city string Required

City slug: lower-case words and the state or province code, for example san-francisco-ca or toronto-on.

Example value san-francisco-ca
view string Optional

districts (default) or levels. Allowed: districts, levels.

Example value example
district_id string Optional

School district id. Required for view=levels.

Example value 1234567890
level string Optional

School level. Required for view=levels. Allowed: elementary, middle, high.

Example value example

Response Schema

Example response fields are illustrative; inspect the JSON before integrating.

Example response fields

Scan these fields before integrating.

data success
JSON Response
200 OK
{
    "data": {
        "school_districts": [
            {
                "name": "San Francisco Unified School District",
                "distance": null,
                "high_count": 17,
                "middle_count": 21,
                "total_schools": 106,
                "total_students": 48785,
                "elementary_count": 76,
                "school_district_id": "6739ad45-3827-4000-998c-fdd4f5029e17"
            }
        ]
    },
    "success": true
}

Errors

Handle these documented responses before retrying or showing customer-facing failures.

Not Found

The requested listing, building, or page was not found. This response is not billable.

Validation Error

A required public parameter is missing or invalid. This response is not billable.

Service Unavailable

The service could not obtain a complete result. This response is not billable.

Generate Code with AI

Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.

Try It Live

Test this endpoint in our interactive playground with real data.