List Schools
Returns GreatSchools schools around a point, with ratings, levels and distance in miles. Use it for the nearby schools section of a listing or building page.
/v1/schoolsAuthentication
?key=pk_…Public key in the `key` query parameter. No OAuth, no secret.
Edge cache: public, max-age=3600, s-maxage=86400, stale-while-revalidate=604800
Query Parameters
keystringThe site's public key (pk_…). It selects the account. Safe to ship to the browser.
latnumberLatitude of the point, between -90 and 90. Rounded to 3 decimals.
lngnumberLongitude of the point, between -180 and 180. Rounded to 3 decimals.
radiusnumberSearch radius in miles, from 1 to 50. Out-of-range values are clamped.
5typestring (CSV)School types, comma-separated. Empty or unknown values return all types.
publicprivatecharterResponses
application/jsonavailablebooleanFalse when the schools provider is down. Show "not available", not "no schools".
schoolsarrayUp to 50 schools. `gsRating` is 1 to 10. `levelName` is `elementary`, `middle`, `high` or `unknown`. `distance` is in miles.
totalnumberNumber of schools returned.
Errors
400`lat` and `lng` are missing or out of range.401Missing or invalid public key.403The account is not active. The body also has `code: "TENANT_INACTIVE"`.429Too many requests. The limit is 60 per minute per visitor IP and account. `Retry-After` is 60 seconds.500Internal Server Error.Notes
- Show "Powered by GreatSchools" and link each school to `overviewLink`. GreatSchools requires it.
- A provider failure answers 200 with `available: false` and is not cached.
curl --request GET \--url "https://api.pandaidx.com/v1/schools?key={{public_key}}&lat=25.7617&lng=-80.1918"
{"available": true,"schools": [{"gsId": "12345","name": "Example Elementary School","address": "100 Example St","city": "Miami","state": "FL","zip": "33131","phone": null,"website": null,"geometry": {"location": {"lat": 25.766,"lng": -80.19}},"gsRating": 8,"ratingBand": "Above average","level": "e","levelName": "elementary","type": "public","gradeRange": "PK-5","district": "Example County Public Schools","overviewLink": "https://www.greatschools.org/school?id=12345","distance": 0.4,"county": "Miami-Dade","summary": null}],"total": 1}