# Zumper Schools

type=all (default) returns public schools near a coordinate. type=private returns private schools. type=level returns schools of one level and needs level.

- **Documentation:** [https://scrappa.co/docs/zumper-api/zumper_schools](https://scrappa.co/docs/zumper-api/zumper_schools)
- **API group:** Zumper API
- **Endpoint:** `GET https://scrappa.co/api/zumper/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 |
| --- | --- | --- | --- |
| `lat` | number | Yes | Latitude. |
| `lng` | number | Yes | Longitude. |
| `type` | string | No | all (default), private, or level. Allowed: all, private, level. |
| `level` | string | No | School level. Required for type=level. Allowed: elementary, middle, high. |

## Example response

```json
{
    "data": {
        "schools": [
            {
                "city": "SAN FRANCISCO",
                "name": "Edwin and Anita Lee Newcomer School",
                "state": "CA",
                "address": "657 MERCHANT ST",
                "zipcode": 94111,
                "is_magnet": false,
                "is_public": true,
                "grade_overall": "C",
                "grades_offered": "K-5",
                "grade_academics": "C"
            }
        ]
    },
    "success": true
}
```

## Errors

| Status | Error | Description |
| --- | --- | --- |
| 404 | Not Found | The requested listing, building, or page was not found. This response is not billable. |
| 422 | Validation Error | A required public parameter is missing or invalid. This response is not billable. |
| 503 | Service Unavailable | The service could not obtain a complete result. This response is not billable. |

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