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.

Try it
Ready-made, maintained by usPlaces, 27 fieldsv1.0

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

State
Two-letter code of a US state, such as VT or CA, or DC, PR, GU, VI, AS, MP. BIE gives Bureau of Indian Education schools.
Example: VT
Yearoptional
School year by the year it starts, such as 2022 for 2022-23 (1986 to 2024). Left empty: the newest year the portal has.
Example: 2022
School leveloptional
Only schools of this level, as NCES classifies them by the grades they teach.
Cityoptional
Only schools in this city, as written in the school's location address, such as Burlington.
Example: Burlington
Include closedoptional
Also return schools reported as closed or inactive that year.

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
Endpoint
POSThttps://pullrow.dev/v1/apis/us-k12-schools/run
  • Small runs answer in the same request; longer ones answer 202 with a run to poll.
  • fields returns only the fields you name. The examples send the ones picked on this page.
  • Idempotency-Key is optional. A retry with it is never charged twice.
  • You pay for records returned. Zero records cost zero.

Every run option, explained

Calling it needs a key
10,000 free records of this API to start. No card.
curl
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.

statetextrequired
Two-letter code of a US state, such as VT or CA, or DC, PR, GU, VI, AS, MP. BIE gives Bureau of Indian Education schools.
example: VT
yearnumber
School year by the year it starts, such as 2022 for 2022-23 (1986 to 2024). Left empty: the newest year the portal has.
example: 2022
school_leveltext
Only schools of this level, as NCES classifies them by the grades they teach.
example: highone of: primary, middle, high, secondary, prekindergarten, ungraded, adult_education, other
citytext
Only schools in this city, as written in the school's location address, such as Burlington.
example: Burlington
include_closedyes/no
Also return schools reported as closed or inactive that year.
default: false

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

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 nameTypeShown on this page asFilled
idtextID (hidden)3 of 3
urllinkLink3 of 3
nametextName3 of 3
district_idtextDistrict ID (hidden)3 of 3
district_nametextDistrict name3 of 3
state_school_idtextState school ID (hidden)3 of 3
streettextStreet3 of 3
citytextCity3 of 3
statetextState3 of 3
zip_codetextZip code3 of 3
county_fipstextCounty fips3 of 3
phonetextPhone3 of 3
latitudenumberLatitude3 of 3
longitudenumberLongitude3 of 3
localetextLocale3 of 3
school_leveltextSchool level3 of 3
school_typetextSchool type3 of 3
statustextStatus3 of 3
lowest_gradetextLowest grade3 of 3
highest_gradetextHighest grade3 of 3
is_charteryes or noCharter3 of 3
virtual_statustextVirtual status3 of 3
enrollmentnumberEnrollment3 of 3
teachers_ftenumberTeachers fte3 of 3
free_lunch_countnumberFree lunch count1 of 3
free_or_reduced_lunch_countnumberFree or reduced lunch count1 of 3
school_yeartextSchool year3 of 3

How it reads the site

Runs on a reader we built and maintain by hand for this site.

Sample records

Sample records
RecordNameDistrict nameCounty fipsLocaleSchool levelSchool typeStatusLowest gradeHighest gradeCharterVirtual statusEnrollmentTeachers fteFree lunch countFree or reduced lunch countStreetCityStateZip codeLatitudeLongitudeSchool yearLinkPhone
1Patricia A. Hannaford Career CenterPatricia Hannaford Career Center50001Town, distantHighVocational schoolOpen912NoNot virtual016——51 Charles AvenueMiddleburyVT0575344.00555-73.1623922022-23nces.ed.gov/ccd/schoolsearch/school_detail.asp?Search=1&ID=500002100099(802)382-••••
2Southwest TechSouthwest Tech50003Town, distantHighVocational schoolOpen912NoNot virtual014——321 Park StreetBenningtonVT0520142.886582-73.1921652022-23nces.ed.gov/ccd/schoolsearch/school_detail.asp?Search=1&ID=500002200103(802)447-••••
3Samuel Morey Elementary SchoolRivendell Interstate School District50017Rural, remotePrimaryRegular schoolOpenPre-K5NoNot virtual116102330214 School StreetFairleeVT0504543.908031-72.1459982022-23nces.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.
Known limits
  • 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.