GET /v1/listings/{listingKey}/schools
A listing's school district, and the schools its agent entered.
| Access | |
|---|---|
| Keys | publishable or secret |
| Plan | Premium |
| Environment | live and sandbox |
| Acts for | the account |
| While the account is suspended | refused |
| During a data stop | refused |
Path
| Name | Type | Description |
|---|---|---|
listingKey |
string | Required. The listing's key. With ?mlsNumber=true, an MLS number, current or past, in its place. |
Headers
| Name | Description |
|---|---|
X-Client-Token |
Optional, with a publishable key: a token your server minted for a consumer with POST /v1/client-tokens. With it, each listing says whether it is a favorite of theirs (isFavorite). |
X-Client-Id |
Optional, with a secret key: your own opaque ID for a consumer, to the same end. |
Answers
200: The listing's schools
The answer is { data, meta, compliance, warnings }: meta holds requestId, environment and dataLastUpdatedAt; compliance is the block of notices to show; warnings is a list of Warning, empty when there is nothing to say.
data is a ListingSchoolsAnswer.
Errors
Every error has the same body, and says how to fix it (responses and errors).
More
Premium only (403 tier_insufficient with capability: "schools" on Basic).
{
"data": {
"listingKey": "805454359664",
"district": { "placeId": "pl_…", "displayName": "Lower Merion School District, PA", "districtType": "unified", "grades": "KG-12" },
"districts": [ { "placeId": "pl_…", "displayName": "Lower Merion School District, PA", "districtType": "unified", "grades": "KG-12" } ],
"assigned": [
{ "level": "elementary", "name": "PENN VALLEY", "source": "listing" },
{ "level": "middle_or_junior", "name": "WELSH VALLEY", "source": "listing" },
{ "level": "high", "name": "HARRITON", "source": "listing" }
],
"asOf": "2026-11-09T18:30:00.000Z",
"notice": "School assignments are subject to change; verify with the school district."
},
"meta": { "…": "as for the detail" },
"compliance": { "…": "the compliance block" },
"warnings": []
}
districtis the school district the listing lies in, as a place: search it with itsplaceIdinlocation.placeIds, and read more about it withGET /v1/places/{placeId}.nullwhen the listing lies in no district. Where a listing lies in two (an elementary and a secondary district, as in parts of New Jersey),districtslists both anddistrictis the first of them: a unified district before an elementary one before a secondary one.assignedis what the listing's agent entered, as Bright sends it: up to one school per level, in the orderelementary,middle_or_junior,high.sourceislisting: the names come from the listing, not from a school authority. Empty when the agent entered none (most listings name no school).asOfis the listing'supdatedAt.- A listing whose address is withheld has the same object; its district comes from the district the listing itself names, never from a point.
- The listing's own rules apply:
500 data_staleduring the 12-hour stop, and404 listing_not_foundfor a listing that isn't served.
This page is made from the route's own declaration by npm run openapi. To change it, change the declaration or its explanation, never this file.