GET/v1/schools/districts/{districtId}/schools
The schools in a district (paginated).
[ OPTIONS ]
| Name | Type | Required | Description |
|---|---|---|---|
districtId | string (path) | Yes | The district id (NCES leaid). |
source / level / sector / charter / type | string | No | Same filters as /v1/schools. |
page | integer | No | Page number (default 1). |
per_page | integer | No | Results per page (default 25, max 100). |
[ EXAMPLE REQUEST ]
curl "https://atlasblock.dev/api/v1/schools/districts/3700001/schools"[ 200 OK ]
{
"status": "success",
"data": {
"district_id": "3700001",
"schools": [
{
"id": "370297001543",
"name": "Myers Park High",
"source": "ccd",
"level": "high",
"zip": "28207"
}
],
"pagination": {
"page": 1,
"per_page": 25,
"total": 176,
"total_pages": 8
}
}
}[ TRY IT ]Open playground →
GET/v1/schools/districts/3700001/schools
[ PATH ]
[ QUERY ]
[ CURL ]
curl "https://atlasblock.dev/api/v1/schools/districts/3700001/schools" \ -H "Authorization: Bearer $ATLASBLOCK_API_KEY"
[ EVERY REQUEST ]
Send an Authorization: Bearer key against the base URL https://atlasblock.dev/api. Every call counts toward your plan quota. See the overview for authentication, rate limits, and status codes.
