# GET /v1/listings/{listingKey}/similar Listings like this one: same city and class, near its price and size. | Access | | | --- | --- | | Keys | publishable or secret | | Plan | every plan | | 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. | ## Query | Name | Type | Description | | --- | --- | --- | | `limit` | integer | How many: 1 to 10. 3 when left out. | ## 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 similar listings, nearest price first 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 list of [ListingSummary](../objects.md#listingsummary). ## 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) | | 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 Up to `limit` (1 to 10, default 3) listings in the same city and property class, with the same on-market or closed status, within ±10% of the subject's price and living area, nearest price first. A subject with no shown price or no living area is matched without that range, with the warning `filter_not_applicable`. _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._