US School District Directory API

Directory of US public school districts from the federal Common Core of Data: name, address, phone, county, locale type, number of schools, enrollment, teacher count and map position.

$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 usRecords, 15 fieldsv1.0

Data from educationdata.urban.org/documentation/school_districts.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

Year
Data year (the fall of the academic year), four digits.
Example: 2021
State fipsoptional
Only this state, as its FIPS code, for example 36 for New York. Leave empty for all states.
Example: 36

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/ccd-district-directory/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/ccd-district-directory/run" \
  -H "Authorization: Bearer $PULLROW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"year":"2021"},"max_items":50}'

Inputs

Send them as input in the request body. Leave one out to use its default.

yeartextrequired
Data year (the fall of the academic year), four digits.
example: 2021
state_fipstext
Only this state, as its FIPS code, for example 36 for New York. Leave empty for all states.
example: 36

What's in each record

15 fields: 14 here, 1 technical one under Technical details.

Basics

  • Leaid

    The federal district id (LEAID).

    Example 3600001

  • District name

    Example DOLGEVILLE CENTRAL SCHOOL DISTRICT

  • County name

    Example Herkimer County

  • Urban locale

    Locale type, such as City large, Suburb small or Rural remote.

    Example Rural, distant

  • Schools count

    Number of schools in the district.

    Example 3

  • Enrollment

    Students enrolled.

    Example 828

  • Teachers fte

    Full-time-equivalent teachers.

    Example 67

Location

  • Street

    Street address of the district office.

    Example 38 SLAWSON ST

  • City

    Example DOLGEVILLE

  • Two-letter state code

    Example NY

  • Zip

    Postal code.

    Example 13329

  • Latitude

    Latitude of the district office.

    Example 43.104

  • Longitude

    Longitude of the district office.

    Example -74.779

Contact details

  • District office phone number

    Example (315)429-••••

Technical detailsField names and types for developers, and the 1 field hidden above

Hidden by default

This field comes with each record too. It is an internal code, a note about how the record was read or a copy of what was searched for, so the lists above leave it out.

  • ID idThe district id (LEAID), seven digits.

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
leaidtextLeaid3 of 3
nametextDistrict name3 of 3
streettextStreet3 of 3
citytextCity3 of 3
statetextTwo-letter state code3 of 3
ziptextZip3 of 3
phonetextDistrict office phone number3 of 3
countytextCounty name3 of 3
urban_localetextUrban locale3 of 3
schools_countnumberSchools count3 of 3
enrollmentnumberEnrollment3 of 3
teachers_ftenumberTeachers fte3 of 3
latitudenumberLatitude3 of 3
longitudenumberLongitude3 of 3

How it reads the site

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

Sample records

Sample records
RecordDistrict nameLeaidCounty nameUrban localeSchools countEnrollmentTeachers fteStreetCityTwo-letter state codeZipLatitudeLongitudeDistrict office phone number
1DOLGEVILLE CENTRAL SCHOOL DISTRICT3600001Herkimer CountyRural, distant38286738 SLAWSON STDOLGEVILLENY1332943.104-74.779(315)429-••••
2SAUQUOIT VALLEY CENTRAL SCHOOL DISTRICT3600002Oneida CountyRural, fringe399502601 ONEIDA STSAUQUOITNY1345642.9879-75.2545(315)839-••••
3EDWARDS-KNOX CENTRAL SCHOOL DISTRICT3600003St. Lawrence CountyRural, remote2512522512 COUNTY ROUTE 24HERMONNY1365244.363946-75.201145(315)562-••••

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 comes from the Urban Institute Education Data Portal, which republishes federal NCES Common Core of Data; credit the U.S. Department of Education (NCES) and the Urban Institute. It is released once a year and lags the current school year by one to two years.
  • The directory has no website or e-mail address for districts; phone and street address are the district office.
  • Enrollment, school counts and teacher counts are empty for districts that did not report them.
  • Without a state filter one run covers the whole country (about 19,700 districts); at most 20,000 records per run. The source is read at most two requests a second.

Version history

A run uses the live version unless the request names another one with version.