Atlasblock API

GET/v1/schools/nearby

Schools within a radius of a point, sorted by distance.

[ OPTIONS ]
NameTypeRequiredDescription
latnumberYesLatitude of the center point.
lngnumberYesLongitude of the center point.
radiusnumberNoMiles (default 5, max 50).
source / level / sector / charter / typestringNoSame filters as /v1/schools.
pageintegerNoPage number (default 1).
per_pageintegerNoResults per page (default 25, max 100).
[ EXAMPLE REQUEST ]
curl "https://atlasblock.dev/api/v1/schools/nearby?lat=35.20&lng=-80.85&radius=3&level=elementary"
[ 200 OK ]
{
  "status": "success",
  "data": {
    "center": {
      "latitude": 35.2,
      "longitude": -80.85,
      "radius_miles": 3
    },
    "schools": [
      {
        "id": "370297001501",
        "name": "Dilworth Elementary",
        "level": "elementary",
        "distance_miles": 0.4
      }
    ],
    "pagination": {
      "page": 1,
      "per_page": 25,
      "total": 12,
      "total_pages": 1
    }
  }
}
GET/v1/schools/nearby?lat=35.20&lng=-80.85&radius=3
[ QUERY ]
[ CURL ]
curl "https://atlasblock.dev/api/v1/schools/nearby?lat=35.20&lng=-80.85&radius=3" \
  -H "Authorization: Bearer $ATLASBLOCK_API_KEY"
[ EVERY REQUEST ]

Send an Authorization: Bearer key against the base URL https://atlasblock.dev/api. Every call counts toward your plan quota. See the overview for authentication, rate limits, and status codes.