apidata.one docs Get a key

listing_not_found (404)

No listing with that key (or MLS number) is being served. The listing may have sold, been withdrawn or been removed from the MLS, in which case it has been purged and no copy is kept; or the key may be malformed, from the other environment (sandbox keys don't exist on live, nor the reverse), or the listing may be kept from display because its attribution is missing.

The same answer comes from POST /v1/favorites when the listingKey isn't a served listing.

The API does not say which of these it is. It keeps nothing of a listing it no longer serves, so a key that was removed and a key that never existed get the same 404.

On your own site, answer 410 Gone only for a key you know was removed: you received its listing.removed notice, or you served it before and it is missing from the key list. For any other key answer 404 (what to answer for a listing that is gone).

Fix: search again for a current listing. To look a listing up by MLS number, send ?mlsNumber=true with GET /v1/listings/{number}.

This page as Markdown