APIHub
Back to Explore

DistrictAPI

DistrictAPI lets you look up U.S. public school districts by address, latitude/longitude or NCES LEA ID, retrieve full district profiles, search districts by name/state/county, and enumerate open schools in a district. It also provides location‑based school search, detailed school profiles, and a way to fetch a school's parent district.

Government
apiKeyHeader
HTTPS
CORS: Yes
Description enriched
Visit official documentation

Latency

1991ms p95

Uptime

100.0% 30d

Playground

Verified

live

Endpoints

REST · JSON
GET

/v1/districts

Look up a district by address, latitude/longitude, or NCES LEA ID.

  • address (query) — Street address — geocoded to lat/lng, then spatial lookup against district boundaries.
  • lat (query) — Latitude (use with lng).
  • lng (query) — Longitude (use with lat).
  • nces_id (query) — 7-digit NCES LEA ID.
GET

/v1/districts/{id}

Get the full profile for a district by its 7‑digit NCES LEA ID.

  • id (path, required) — 7‑digit NCES LEA ID of the district.
GET

/v1/districts/{id}/schools

List all open schools in a district.

  • id (path, required) — 7‑digit NCES LEA ID of the district.
  • type (query) — Filter by school type (1=Regular, 2=Special Ed, 3=Vocational, 4=Alternative).
  • charter (query) — Filter to charter schools only.
GET

/v1/districts/search

Search districts by name, state, or county.

  • name (query) — District name (full‑text search).
  • state (query) — Two‑letter state abbreviation.
  • county (query) — County name (partial match).
  • limit (query, limit) — Results per page (max 100, default 20).
  • offset (query, offset) — Pagination offset (default 0).
GET

/v1/schools

Find schools near an address or coordinates.

  • address (query) — Center address for radius search.
  • lat (query) — Latitude.
  • lng (query) — Longitude.
  • radius_miles (query) — Search radius in miles (max 50, default 5).
  • limit (query, limit) — Max results (max 100, default 20).
GET

/v1/schools/{id}

Get the full profile for a school by its 12‑digit NCES school ID.

  • id (path, required) — 12‑digit NCES school ID.
GET

/v1/schools/{id}/district

Get the parent district for a school.

  • id (path, required) — 12‑digit NCES school ID.

7 endpoints auto-detected

Authentication

This API uses an API key, passed in the "X-API-Key" header. No OAuth required.

curl -X GET \
  "https://districtapi.dev/docs/v1/districts" \
  -H "X-API-Key: YOUR_API_KEY"

districtapi.dev · HTTPS only