US Schools Directory
Public K-12 schools in any US state or territory for a school year, from the NCES Common Core of Data: name, NCES and district ids, address, phone, map position, level, type, grades, charter status, enrollment, teachers and free-lunch counts.
$0.50 per 1,000 records
You pay only for the records you get. Zero records cost zero. 10,000 free records of this API to start (5,000 at the base price of $1 per 1,000), no card.
Data from educationdata.urban.org/documentation/schools.html
Get this data
Try it here with a few records, download the sample, fill a Google Sheet, or call it from your own code.
Try it
Run it on this page, or call it from your code with the endpoint in the developer section. A free key covers 10,000 records of this API, no card. Create a free key
For developers: the API and MCPThe endpoint, code in curl, JavaScript and Python, every input, and files for your tools
- Small runs answer in the same request; longer ones answer
202with a run to poll. fieldsreturns only the fields you name. The examples send the ones picked on this page.Idempotency-Keyis optional. A retry with it is never charged twice.- You pay for records returned. Zero records cost zero.
curl -X POST "https://pullrow.dev/v1/apis/us-k12-schools/run" \
-H "Authorization: Bearer $PULLROW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"state":"VT"},"max_items":50}'Inputs
Send them as input in the request body. Leave one out to use its default.
What's in each record
27 fields: 24 here, 3 technical ones under Technical details.
Basics
- Name
Name of the school.
Example Patricia A. Hannaford Career Center
- District name
Name of the school district (local education agency).
Example Patricia Hannaford Career Center
- County fips
Five-digit FIPS code of the county, such as 50007.
Example 50001
- Locale
NCES urban-centric locale, such as City, large or Rural, remote.
Example Town, distant
- School level
Primary, Middle, High, Secondary, Prekindergarten, Ungraded, Adult education or Other.
Example High
- School type
Regular school, Special education school, Vocational school, Other/alternative school or Reportable program.
Example Vocational school
- Status
Status at the start of the school year: Open, New, Reopened, Added, Changed agency, Future, Closed or Inactive.
Example Open
- Lowest grade
Lowest grade taught: Pre-K, Kindergarten, 1 to 13, Adult education or Ungraded.
Example 9
- Highest grade
Highest grade taught, in the same terms as lowest_grade.
Example 12
- Charter
True for a charter school; false also in states without charter schools.
Example No
- Virtual status
Not virtual, Virtual, Virtual with face-to-face options or Supplemental virtual courses.
Example Not virtual
- Enrollment
Number of students enrolled (fall count).
Example 0
- Teachers fte
Classroom teachers as full-time equivalents.
Example 16
- Free lunch count
Students eligible for free lunch under the National School Lunch Program.
Example 23
- Free or reduced lunch count
Students eligible for free or reduced-price lunch.
Example 30
Location
- Street
Street address of the school building.
Example 51 Charles Avenue
- City
City of the school building.
Example Middlebury
- State
Two-letter state code of the school building.
Example VT
- Zip code
ZIP code of the school building.
Example 05753
- Latitude
Latitude of the school building.
Example 44.00555
- Longitude
Longitude of the school building.
Example -73.162392
Dates
- School year
School year of the record, such as 2022-23.
Example 2022-23
Links
- Link
The school's page in the NCES public school search.
Example nces.ed.gov/ccd/schoolsearch/school_detail.asp?Search=1&ID=500002100099
Contact details
- Phone
Main office phone number of the school.
Example (802)382-••••
Technical detailsField names and types for developers, and the 3 fields hidden above
Hidden by default
These 3 fields come with each record too. They are internal codes, notes about how the record was read or a copy of what was searched for, so the lists above leave them out.
- ID
idNCES school id (12 digits), the federal id of the school. - District ID
district_idNCES id of the school district (local education agency), 7 digits. - State school ID
state_school_idThe school's id in its state's own records.
Field names and types
The names your code reads in each record. "Filled" counts how many of the 3 sample records carry the field.
| Field name | Type | Shown on this page as | Filled |
|---|---|---|---|
id | text | ID (hidden) | 3 of 3 |
url | link | Link | 3 of 3 |
name | text | Name | 3 of 3 |
district_id | text | District ID (hidden) | 3 of 3 |
district_name | text | District name | 3 of 3 |
state_school_id | text | State school ID (hidden) | 3 of 3 |
street | text | Street | 3 of 3 |
city | text | City | 3 of 3 |
state | text | State | 3 of 3 |
zip_code | text | Zip code | 3 of 3 |
county_fips | text | County fips | 3 of 3 |
phone | text | Phone | 3 of 3 |
latitude | number | Latitude | 3 of 3 |
longitude | number | Longitude | 3 of 3 |
locale | text | Locale | 3 of 3 |
school_level | text | School level | 3 of 3 |
school_type | text | School type | 3 of 3 |
status | text | Status | 3 of 3 |
lowest_grade | text | Lowest grade | 3 of 3 |
highest_grade | text | Highest grade | 3 of 3 |
is_charter | yes or no | Charter | 3 of 3 |
virtual_status | text | Virtual status | 3 of 3 |
enrollment | number | Enrollment | 3 of 3 |
teachers_fte | number | Teachers fte | 3 of 3 |
free_lunch_count | number | Free lunch count | 1 of 3 |
free_or_reduced_lunch_count | number | Free or reduced lunch count | 1 of 3 |
school_year | text | School year | 3 of 3 |
How it reads the site
Runs on a reader we built and maintain by hand for this site.
Save as pipeline
A pipeline remembers this API, your inputs and the fields you picked. It can run on a schedule and email you the results.
Sample records
| Record | Name | District name | County fips | Locale | School level | School type | Status | Lowest grade | Highest grade | Charter | Virtual status | Enrollment | Teachers fte | Free lunch count | Free or reduced lunch count | Street | City | State | Zip code | Latitude | Longitude | School year | Link | Phone |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Patricia A. Hannaford Career Center | Patricia Hannaford Career Center | 50001 | Town, distant | High | Vocational school | Open | 9 | 12 | No | Not virtual | 0 | 16 | — | — | 51 Charles Avenue | Middlebury | VT | 05753 | 44.00555 | -73.162392 | 2022-23 | nces.ed.gov/ccd/schoolsearch/school_detail.asp?Search=1&ID=500002100099 | (802)382-•••• |
| 2 | Southwest Tech | Southwest Tech | 50003 | Town, distant | High | Vocational school | Open | 9 | 12 | No | Not virtual | 0 | 14 | — | — | 321 Park Street | Bennington | VT | 05201 | 42.886582 | -73.192165 | 2022-23 | nces.ed.gov/ccd/schoolsearch/school_detail.asp?Search=1&ID=500002200103 | (802)447-•••• |
| 3 | Samuel Morey Elementary School | Rivendell Interstate School District | 50017 | Rural, remote | Primary | Regular school | Open | Pre-K | 5 | No | Not virtual | 116 | 10 | 23 | 30 | 214 School Street | Fairlee | VT | 05045 | 43.908031 | -72.145998 | 2022-23 | nces.ed.gov/ccd/schoolsearch/school_detail.asp?Search=1&ID=500002400131 | (802)333-•••• |
Sample records from the example output this API publishes. Email addresses and phone numbers in them are masked. Hover over a column name to see the field name your code reads.
Reliability
Counted from real runs. Our own health checks are left out. A run succeeded when it finished and the site neither blocked it nor broke it.
Incidents and repairs
How it is kept working What a repair can't do
A ready-made API, maintained by us. It is not part of the daily check or the automatic rebuild yet.
- You pay only for records returned. A run that returns none costs nothing.
- Data from the Urban Institute's Education Data Portal, built from the NCES Common Core of Data, under the ODC-By licence: credit the Education Data Portal (Urban Institute) and NCES when you publish it.
- Public schools only: regular, charter, special-education, vocational and alternative schools. Private schools are not in the Common Core of Data.
- One state and one school year per run. Years run from 1986 (1986-87) to 2024 (2024-25); NCES publishes a school year more than a year after it starts, so the newest year lags.
- Values a state did not report, or that NCES suppresses, are empty. Free-lunch counts are often empty where schools use the Community Eligibility Provision (DC and Delaware, for example). Career and technical centers that share students with other schools often report 0 enrollment.
- Closed and inactive schools are left out unless include_closed is true. city matches the school's location address exactly (any letter case).
- Schools are listed under the state that reports them: Bureau of Indian Education schools come only with BIE as the state, and a few schools of interstate districts have an address in a neighbouring state.
- phone is the school's main office number as NCES publishes it. No staff names or personal contact details are returned.
- At most 15,000 schools per run, more than the largest state holds (California, about 10,400).
Version history
A run uses the live version unless the request names another one with version.
Manage this API
Only your workspace sees this part.
Automatic repair
Off: a rebuilt version is stored and waits for you in the version history.
Delete this API
Removes the API, its versions and the saved records of its runs. Calls to its address then answer 404. Records already charged stay charged. This cannot be undone.