The School District API for developers

Look up the school district serving any US address — with enrollment, demographics, per-pupil spending, schools, and GeoJSON boundaries. Clean JSON, built on free federal data. No scraping, no PDFs, no 50-state portal hunting.

curl "https://api.districtapi.dev/v1/districts?address=1600+Pennsylvania+Ave+NW+Washington+DC" \
  -H "X-API-Key: your_api_key"
{
  "data": [{
    "ncesId": "1100030",
    "name": "District of Columbia Public Schools",
    "state": "DC",
    "enrollment": { "total": 49000 },
    "gradeRange": "PK-12",
    "perPupilSpending": 22800,
    "boundary": { "type": "Polygon", "coordinates": [ ... ] }
  }],
  "meta": { "creditsUsed": 1, "creditsRemaining": 499 }
}

What you get

Address → district
Point-in-polygon lookup returns the exact district serving any street address.
GeoJSON boundaries
Every district's boundary polygon, ready for Mapbox, Leaflet, or PostGIS.
Enrollment & demographics
Total enrollment plus a full racial/ethnic breakdown per district.
Per-pupil spending & finance
Per-pupil expenditure and federal/state/local revenue.
Schools in every district
The full school roster — grades, charter/magnet/Title I flags.
Free federal data
NCES CCD + EDGE + Census TIGER. Annual refresh. No licensing fees.

Why districtapi.dev

The underlying data is public and free — but it ships as a maze of CSVs, SAS files, and shapefiles spread across multiple federal sites, with no address lookup. We do the normalization, geocoding, and spatial matching so you get one clean API call instead of an ETL project. Address-to-district lookup and GeoJSON boundaries are on the free tier, not gated behind an enterprise plan.

See pricing →

Frequently asked questions

How do I get the school district for an address?

Call GET /v1/districts?address=… with any US street address. The API geocodes it, runs a point-in-polygon match against district boundaries, and returns the district serving that address — including enrollment, demographics, per-pupil spending, and the list of schools.

What data source is this built on?

Free, public federal data: the NCES Common Core of Data (CCD) for districts and schools, NCES EDGE for geocoding, and Census TIGER for district boundary polygons. It's refreshed annually.

Is there a free tier?

Yes — 500 requests per month, no credit card, with full access to every endpoint including address lookup and GeoJSON boundaries.

Can I get district boundaries as GeoJSON?

Yes. Every district includes its boundary polygon as GeoJSON, ready to drop into Mapbox, Leaflet, or any GIS tool.

Do you cover all US school districts?

Yes — roughly 19,000 public school districts and 100,000+ schools across all 50 states, DC, and the territories.

Start with 500 free requests/month

No credit card. Every endpoint, full schema, GeoJSON boundaries.

Get your API key