Skip to main content
POST
Lists US public schools (Common Core of Data) or private schools (Private School Survey) of the US National Center for Education Statistics within a distance of a point, nearest first, or every school of a public school district: name, address, county, grade range, kind, charter and virtual status, enrolment, teachers and student-teacher ratio. Private schools carry no enrolment.

Authentication

Requires x402 payment in the payment-signature header.

Request Body

string
required
public for the Common Core of Data, private for the Private School Survey. One of public, private.
number
Latitude in decimal degrees, for example 42.2808. From -90 to 90.
number
Longitude in decimal degrees (west is negative), for example -83.743. From -180 to 180.
number
Distance from the point in kilometres, 0.5 to 10. From 0.5 to 10. Defaults to 2.
string
The seven-digit NCES district id (LEAID), for example 2602820 for Ann Arbor Public Schools; public schools only. district_id is the seven-digit NCES district id.
integer
Most schools to return, 1 to 50. From 1 to 50. Defaults to 20.

Response (200 OK)

Top-level envelope: success (boolean) and data (object). All fields below are nested under data.
string
Durable job ID for audit and lookup
string
Job status: completed
string
Always place_schools
object
The answer, described under Result below
object
Where the answer came from and when
string
The public body the data comes from. Always US National Center for Education Statistics.
string
public when the data comes from a public body, commercial otherwise
string
When the lookup was made, as an ISO 8601 UTC time
string | null
When the source says the fact was last updated, or null when the source gives no date

Result

Nested under data.result.
string
The collection searched.
number
Schools the source returned for the point or district, at most 2,000.
boolean
True when more schools were returned than listed, or the source held more than 2,000.
object[]
The schools, nearest first for a point, in name order for a district, up to the limit.
string
The NCES school id (public) or private school id.
string
The school’s name.
string | null
The NCES district id; null for private.
string | null
The district’s name; null for private.
string | null
Street address. null when the source gives no value.
string | null
City or town. null when the source gives no value.
string | null
Two-letter state code. null when the source gives no value.
string | null
ZIP code. null when the source gives no value.
string | null
County. null when the source gives no value.
string | null
Telephone; null for private.
string | null
School level, for example Elementary; null for private.
string | null
Kind of school, for example Regular School; null for private.
boolean | null
Whether the school is a charter school; null when not stated.
string | null
Virtual status, for example Not Virtual. null when the source gives no value.
string | null
Lowest grade offered, for example KG. null when the source gives no value.
string | null
Highest grade offered, for example 05. null when the source gives no value.
string | null
Status this school year, for example Open; null for private.
number | null
Students enrolled, excluding adult education; null for private or when suppressed.
number | null
Full-time-equivalent teachers; null when not stated.
number | null
Students per teacher; null when not stated.
number | null
Latitude of the school. null when the source gives no value.
number | null
Longitude of the school. null when the source gives no value.
number | null
Distance from the point in kilometres; null for a district search.
string | null
The school year the row describes, for example 2024-2025. null when the source gives no value.
See Pricing for this tool’s price. A wallet (x402) call receives it in the 402 quote before anything is charged; a call paid from prepaid credits is charged when the API accepts the request and answers 200.

Notes

  • Give school_type and either a point (latitude, longitude, with radius_km 0.5 to 10, default 2) or a public district_id (the seven-digit NCES district id); private schools have no district.
  • Private rows carry no enrolment, phone, district, level, kind or status: the source layer does not publish them.
  • total counts the schools the source returned, at most 2,000; more is true when more than limit were returned or the source held more than 2,000.
  • Enrolment, teachers and ratio are null when the source marks them missing, not applicable or suppressed. Each row carries its school year.
  • A point or district with no school gives total: 0 and an empty list.
  • Results return inline. The finished job stays available at /v1/requests/{request_id}