Schools API - US School Directory & District Lookup
us_schools_apiOfficial 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 miles, one school by NCES id, all schools of a district with totals, bulk 50 queries. Usable from AI agents via MCP. Free: 5 calls/day per IP. Paid: Radar API key (from €9/mo at https://radarbg.com/pricing#starter via X-API-Key) or $0.02/call via x402 at https://radarbg.com/x402/us-schools-api.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"mode": "search",
"name": "Lincoln",
"state": "CA",
"radiusMiles": 5
},
"name": "us_schools_api"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| lat | No | near mode: centre latitude (use with lon instead of zip). | |
| lon | No | near mode: centre longitude. | |
| zip | No | 5-digit ZIP. search: schools in this ZIP; near: centre of the radius. | |
| city | No | City name (search mode), e.g. Austin. | |
| mode | No | search = filter by name/city/state/ZIP/district; near = schools within radiusMiles of lat/lon or a ZIP; school = one or more schools by NCES id; district = all schools of a district (LEAID or name) plus a summary row; bulk = up to 50 querie | |
| name | No | Part of the school name, case-insensitive (search mode), e.g. Lincoln. | |
| level | No | Public schools only: elementary, middle, high, secondary, prekindergarten, other. | |
| limit | No | 1-5000, default 100. | |
| state | No | 2-letter code or full name, e.g. CA or California. | |
| ncesIds | No | school mode: up to 50 NCES school ids (12-digit public NCESSCH or 8-character private PPIN). | |
| queries | No | bulk mode: up to 50 objects, each one an input of another mode, e.g. {"mode":"near","zip":"10001","radiusMiles":1}. A failing query returns an error row; the others still answer. | |
| district | No | District NCES LEAID (7 digits) or district name (search and district modes), e.g. 0622710 (Los Angeles Unified). | |
| schoolType | No | public (default), private or all. | |
| radiusMiles | No | near mode: 0.1-50 miles, default 5. Rows are sorted by distanceMiles. |