Schools API - US School Directory & District Lookup
Pricing
from $0.70 / 1,000 results
Schools API - US School Directory & District Lookup
Official US K-12 school directory as JSON, no API key: 102,274 public and 22,510 private schools from NCES (2023-24) with NCES id, district, address, lat/lon, locale, grades, enrollment, teachers and student-teacher ratio. Search by name, city, state or ZIP, schools near a point or ZIP within N mile
Pricing
from $0.70 / 1,000 results
Rating
0.0
(0)
Developer
Martin Petrov
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
10 days ago
Last modified
Categories
Features
Share
Problem: your real-estate app needs "schools near this home", your edtech CRM needs a clean list of every school in a district, your relocation site or AI agent needs enrollment, grades and student-teacher ratio for a school by name. Rating sites forbid scraping, and the official NCES files are shapefiles and 100,000-row CSVs with coded columns.
This API: one JSON call, no API key, answers from a maintained copy of the official NCES school directory (EDGE locations + CCD characteristics, school year 2023-24): 102,274 public and 22,510 private schools, 19,637 districts.
- search: by
name(part of it),city,state(CAorCalifornia),zip,district; filter bylevel(elementary, middle, high ...) andschoolType(public, private, all). - near: schools within
radiusMiles(0.1-50) oflat/lonor azip, sorted bydistanceMiles. - school: up to 50 schools by NCES id (
ncesIds). - district: every school of a district (NCES LEAID or name) plus a summary row: school count, total enrollment, teachers, charter schools, schools by level.
- bulk: up to 50 queries in one call; a bad query returns an error row, the others still answer.
- Fields: NCES id, district id and name, address, county, lat/lon, locale (City: Large ... Rural: Remote), metro area, congressional district, level, grades low/high, enrollment, teachers (FTE), student-teacher ratio, free/reduced lunch eligible, charter, virtual, status.
- Monitor:
onlyNew+monitorIdreturns only schools not returned before (new schools, changed enrollment).
Example (API)
curl -X POST "https://api.apify.com/v2/acts/martin10291~us-schools-api/run-sync-get-dataset-items?token=YOUR_TOKEN" \-H "Content-Type: application/json" \-d '{"mode": "near", "zip": "78701", "radiusMiles": 1}'
Output row (measured 2026-11-14):
{"rowType": "school", "ncesId": "480147313991", "name": "UNIVERSITY OF TEXAS AT AUSTIN H S", "schoolType": "public","districtId": "4801473", "street": "2901 N IH 35", "city": "AUSTIN", "state": "TX", "zip": "78722", "county": "Travis County","lat": 30.279356, "lon": -97.742885, "localeLabel": "City: Large", "congressionalDistrict": "TX-37", "level": "High","gradeLow": "09", "gradeHigh": "12", "enrollment": 788, "teachersFte": 28.0, "studentTeacherRatio": 28.14,"distanceMiles": 0.4, "schoolYear": "2023-2024", "source": "NCES EDGE/CCD 2023-24, U.S. public domain"}
More inputs:
{"mode": "search", "name": "Lincoln", "state": "CA"}-> 68 schools named Lincoln in California.{"mode": "district", "district": "0622710"}-> Los Angeles Unified: 785 schools, 418,503 students, plus every school.{"mode": "search", "city": "Austin", "state": "texas", "level": ["high"]}-> high schools in Austin.{"mode": "bulk", "queries": [{"mode": "near", "zip": "10001", "radiusMiles": 1}, {"mode": "school", "ncesIds": ["060177000049"]}]}
Use from agents (MCP)
Add the Apify MCP server (https://mcp.apify.com?tools=martin10291/us-schools-api) to Claude, Cursor or any MCP client and ask: "Which public high schools are within 3 miles of ZIP 94110, and what is their student-teacher ratio?".
Data source
U.S. Department of Education, National Center for Education Statistics (NCES): EDGE public and private school locations and Common Core of Data (CCD) characteristics, school year 2023-24, via the official NCES ArcGIS services. U.S. government work, public domain; the source is named on every row. No scraping, no ratings, no personal data (no staff names, e-mails or phones).
Schedule it
Run it from your app on demand, or schedule it on Apify (Schedules -> every week) with onlyNew: true and a monitorId per area to get only new schools and changed enrollment. Chain it with an integration (webhook, Google Sheets, Zapier, Make) to push results into your CRM.
FAQ
- How fresh is the data? NCES publishes the directory once a year; this API serves school year 2023-24 (the newest year with both public and private schools) and re-checks the source daily.
schoolYearis on every row; if NCES is down the last copy is served with"stale": true. - Limits: up to 5,000 rows per call (
limit, default 100), radius 0.1-50 miles, 50 NCES ids or 50 bulk queries per call. - Errors: an unknown state, ZIP or district or a bad radius returns a clear
invalid inputmessage; in bulk mode only that query becomes an error row. - Ratings or test scores? No: only official NCES data (no GreatSchools/Niche ratings, no staff names or contacts).
- Private schools: location fields only (NCES does not publish enrollment by private school in this layer).
Pricing
$1.00 per 1,000 rows. A school call for one NCES id = 1 row.