docs/api reference/Schools Near Point (TX)
Home ↗
GET/api/schools

Schools Near Point (TX)

Returns the containing Texas school district plus the nearest elementary, middle, and high school by Haversine distance. Pass an address for a one-shot query, or pass lat/lon if you already have coordinates. Backed by a D1 mirror of 8,981 campuses and 1,197 districts from txschools.gov, refreshed monthly.

Parameters

addressstringoptional

Street address. When provided, the API resolves it to lat/lon via the production geocoder chain (cache → Census → ZIP + district PIP). Recommended for most use cases.

latnumberoptional

Latitude in decimal degrees (WGS84). Required only when 'address' is not provided.

lonnumberoptional

Longitude in decimal degrees (WGS84). Required when 'lat' is provided.

How to use

curl -G https://api.parcelkit.us/api/schools \
  -H "x-api-key: sk_live_your_key" \
  --data-urlencode "address=560 Landfall Ln, Conroe, TX 77302"
response.json
{
  "district": {
    "id": "170902",
    "name": "Conroe ISD",
    "county": "Montgomery",
    "superintendent": "Dr Curtis Null",
    "enrollment": 67600,
    "schoolsCount": 61,
    "rating": "B",
    "score": 85,
    "website": "www.conroeisd.net"
  },
  "elementary": {
    "id": "170902104",
    "name": "Houston Elem",
    "campusType": "Elementary",
    "enrollment": 562,
    "rating": "B",
    "score": 84,
    "distanceMeters": 577,
    "gradesLabel": "KG–4"
  },
  "middle": {
    "id": "170902042",
    "name": "Travis Int",
    "campusType": "Intermediate",
    "rating": "D",
    "score": 65,
    "distanceMeters": 746,
    "gradesLabel": "5–6"
  },
  "high": {
    "id": "170902001",
    "name": "Conroe HS",
    "campusType": "High",
    "enrollment": 2810,
    "rating": "B",
    "score": 84,
    "distanceMeters": 1240,
    "gradesLabel": "9–12"
  },
  "source": "txschools.gov",
  "geocode": {
    "address": "560 Landfall Ln, Conroe, Montgomery County, TX 77302",
    "source": "chain:census",
    "county": "Montgomery"
  }
}
curl -G https://api.parcelkit.us/api/schools \
  -H "x-api-key: sk_live_your_key" \
  --data-urlencode "lat=30.3119" \
  --data-urlencode "lon=-95.4561"

TEA does not publish official attendance zone polygons — this endpoint uses the Zillow/Redfin pattern of nearest-school by distance. Results are a strong proxy for the actual zoned school but may differ for addresses near zone boundaries.