# 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`](create-client-token.md). 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`](../objects.md#compliance) is the block of notices to show; `warnings` is a list of [Warning](../objects.md#warning), empty when there is nothing to say. `data` is a [ListingSchoolsAnswer](../objects.md#listingschoolsanswer). ## Errors | Status | Codes | | --- | --- | | 400 | [`client_id_must_be_opaque`](../../errors/client_id_must_be_opaque.md), [`validation_failed`](../../errors/validation_failed.md) | | 401 | [`client_token_account_mismatch`](../../errors/client_token_account_mismatch.md), [`client_token_expired`](../../errors/client_token_expired.md), [`client_token_invalid`](../../errors/client_token_invalid.md), [`invalid_api_key`](../../errors/invalid_api_key.md), [`key_revoked`](../../errors/key_revoked.md), [`missing_api_key`](../../errors/missing_api_key.md) | | 403 | [`account_pending`](../../errors/account_pending.md), [`account_suspended`](../../errors/account_suspended.md), [`origin_not_allowed`](../../errors/origin_not_allowed.md), [`secret_key_in_browser`](../../errors/secret_key_in_browser.md), [`tier_insufficient`](../../errors/tier_insufficient.md) | | 404 | [`listing_not_found`](../../errors/listing_not_found.md) | | 429 | [`rate_limited`](../../errors/rate_limited.md) | | 500 | [`data_stale`](../../errors/data_stale.md), [`internal_error`](../../errors/internal_error.md), [`temporarily_unavailable`](../../errors/temporarily_unavailable.md) | Every error has the same body, and says how to fix it ([responses and errors](../../concepts/responses-and-errors.md)). ## More **Premium only** (`403 tier_insufficient` with `capability: "schools"` on Basic). ```json { "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": [] } ``` - `district` is the school district the listing lies in, as a place: search it with its `placeId` in `location.placeIds`, and read more about it with `GET /v1/places/{placeId}`. `null` when the listing lies in no district. Where a listing lies in two (an elementary and a secondary district, as in parts of New Jersey), `districts` lists both and `district` is the first of them: a unified district before an elementary one before a secondary one. - `assigned` is what the listing's agent entered, as Bright sends it: up to one school per level, in the order `elementary`, `middle_or_junior`, `high`. `source` is `listing`: the names come from the listing, not from a school authority. Empty when the agent entered none (most listings name no school). - `asOf` is the listing's `updatedAt`. - 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_stale` during the 12-hour stop, and `404 listing_not_found` for 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._