Returns the closest K-12 schools to the specified latitude and longitude, ordered by distance. Results include school name, level, district, rating (if available), and distance in meters.
Data about schools and districts is provided by Federal NCES datasets. Sources for data ratings are provided in each school record.
Your access token or API key. Pass as Authorization: Bearer <token>.
If true, limits results to schools within the same school district as the search location. If false, searches nationwide.
Optional filter for school level. Valid values: 'elementary', 'middle', 'high'. You can include multiple levels separated by commas (e.g. 'elementary,middle'). If not specified, schools of all levels will be included.
elementary, middle, high The maximum number of closest schools to return (defaults to 10, maximum 50).
1 <= x <= 50The latitude of the search location in decimal degrees (WGS 84). Must be between -90 and 90.
-90 <= x <= 90The longitude of the search location in decimal degrees (WGS 84). Must be between -180 and 180.
-180 <= x <= 180Successful Response
Schools matching the search criteria.
A list of matching schools, sorted by proximity (only for location-based searches).
The authoritative source dataset for the school information.
The calendar year of the dataset used for these results.
Any additional information or disclaimers about the search results.