Menu · Reference
Reference

Errors

The complete table of error codes with their HTTP status, whether they can be retried, and what to show or do.

View as Markdownopenapi.json

Every error the API can answer, generated from the API's own error table. Every error body has the shape { "ok": false, "error": { "code", "message", "retryable" }, "requestId" }. Errors and what to show explains how to handle each kind.

Every error answer has the same body, with the HTTP status that matches the code:

{
  "ok": false,
  "error": {
    "code": "rate_limited",
    "message": "Too many requests. Back off and retry after the Retry-After interval.",
    "retryable": true
  },
  "requestId": "req_7Qa2kd9"
}

retryable: true means the same request can succeed later: wait the Retry-After seconds the answer carries, then try once more. Every other code needs a changed request.

Error codes

Code HTTP Retry What it means What to show or do
area_too_large 400 No The search area is too large. Use a smaller bbox, or a polygon with at most 200 vertices. Ask the visitor to zoom in, or send a smaller map box or a simpler drawn area.
invalid_cursor 400 No The cursor is malformed, or was issued for a different query or key. Start again without a cursor, from the first page.
invalid_parameter 400 No A parameter is missing, unknown or malformed. Fix the request; the message names the parameter. On a page, show the results without the filter the visitor typed.
location_required 400 No Search needs a location: where, near, bbox, polygon, boundariesId, zip, city, state or shape (or ownListings, agent, office, or a collection). Add a location (where, bbox, polygon, boundariesId, zip, city, state or shape) before you search.
page_depth_exceeded 400 No Paging is limited to page 40 and 50 results per page (2,000 results per query). Narrow the search. Stop paging at this point and ask the visitor to narrow the search.
secret_key_in_url 400 No Secret keys must be sent as Authorization: Bearer from your server, never in a URL. This key has been flagged; rotate it. Create a new secret key in your console under Keys and domains now, then send the new one only as Authorization: Bearer from your server.
sold_period_required 400 No Closed (sold) searches need soldPeriod (7d, 1m, 3m, 6m or 12m). Add soldPeriod to every search that asks for closed listings.
invalid_credentials 401 No The API key is not valid. Check that the key was copied in full from your console and that it is the right kind for this code.
missing_credentials 401 No Send a publishable key as ?key= or a secret key as Authorization: Bearer. Send your publishable key as ?key= from the browser, or your secret key as Authorization: Bearer from your server.
payment_required 402 No This account is paused for an unpaid invoice. Pay the invoice in your console's Billing page and the API answers again within a minute. GET /v1/account/billing shows the status. Keep serving your cached pages, and pay the open invoice from your console's Billing page. The API answers again within a minute of the payment. Do not retry in a loop.
access_revoked 403 No This API key has been revoked, has expired, or was flagged. Create a new key in your console, or email helpme@ruuster.com. Create a new key in your console under Keys and domains, then update your environment variables. If the new key is refused too, email helpme@ruuster.com.
addon_not_enabled 403 No This endpoint is part of an add-on that is not switched on for this account. Add it in your console's Billing page. Hide the feature that needs the add-on, or add the add-on in your console under Billing, Add-ons.
brokerage_not_enabled 403 No The Ruuster Listings API is not enabled for this brokerage, or no MLS is approved for it yet. Open Go live in your console to see which step your account is on. Pages can show a short notice until then.
origin_not_allowed 403 No This publishable key is not allowed on this site. Add the domain to the key's allowed origins. Add this domain under Keys and domains in your console and request MLS approval for it there, or call from a domain that is already approved.
origin_required 403 No Publishable keys work only from a browser on an allowed origin. From a server, use your secret key. A publishable key with no Origin header is refused. Call with the publishable key from a browser page, or use your secret key from your server.
secret_key_in_browser 403 No Secret keys must never be used in a browser. This key has been flagged; rotate it and use a publishable key on the page. Create a new secret key in your console under Keys and domains now, and use your publishable key on the page.
secret_key_required 403 No This endpoint needs your secret key, sent from your server as Authorization: Bearer. Call this endpoint from your server with your secret key.
agent_not_found 404 No No agent with that slug or id at this brokerage. Check the agent's slug or id; show the brokerage's own listings in the meantime.
boundary_not_found 404 No That boundary id is unknown. Search takes the ids /v1/suggest returns; /v1/boundaries/{id} answers outlines for neighborhood, county, ZIP and school boundaries from /v1/suggest and for boundary-library areas. Look the place up again with /v1/suggest and save the new id.
mls_not_in_scope 404 No This listing is not available to this key. Answer your own page with 404; this key cannot show that listing.
not_found 404 No No such resource. Answer your own page with 404 and leave it out of your sitemap.
shape_not_found 404 No No saved shape with that id for this key. /v1/shapes lists the shapes this key can use. Pick a shape from /v1/shapes. To have a shape added, email helpme@ruuster.com.
method_not_allowed 405 No This API is read-only: use GET. Send a GET request.
ambiguous_address 409 No More than one property matches that address. Be more specific: add the unit number, or look the property up by parcelNumber and postalCode. Ask the person for the unit number or the full street name, or look the property up by parcel number. Never guess between properties.
cursor_expired 410 No The cursor has expired. Start again without a cursor. Start again without a cursor (for the changes feed, resync from /v1/listings/ids).
listing_removed 410 No This listing is no longer available. Remove its page (410 Gone, noindex) and drop it from your sitemap. Answer the listing's page with 410 Gone and noindex, show similar homes, and drop the URL from your sitemap.
filter_not_supported 422 No That filter is not available through the API. Use a filter key that /v1/filters lists.
location_not_supported 422 No That kind of location can't be used here. Use a location returned by /v1/suggest, a bbox or a polygon. Use a row from /v1/suggest, a map box or a drawn area instead. On a Public Records lookup it means Ruuster has no public records in that state: hide the lookup for that property.
own_listings_unconfigured 422 No ownListings needs the brokerage's agent or office MLS ids on file. Email helpme@ruuster.com to have them set up. Email helpme@ruuster.com to have your agents' or offices' MLS ids added, then try again.
sold_not_permitted 422 No Sold listings can't be shown for the MLSs in this search. Leave closed out of the status list, or narrow the search with filterByMls to boards that show sold listings.
daily_quota_exceeded 429 Yes, after Retry-After This key's daily quota is used up. It resets at 00:00 America/Chicago. Serve cached pages until the quota resets at midnight America/Chicago. To ask for a higher limit, email helpme@ruuster.com.
rate_limited 429 Yes, after Retry-After Too many requests. Back off and retry after the Retry-After interval. Wait Retry-After seconds, then try once more. In server rendering, throw so your cache keeps serving the last good page.
internal_error 500 Yes, after Retry-After Something went wrong on our side. Try once more after Retry-After seconds; if it keeps failing, contact support with the requestId.
api_paused 503 Yes, after Retry-After The Ruuster Listings API is temporarily paused for maintenance. Keep serving your cached pages and try again after Retry-After seconds.
source_unavailable 503 Yes, after Retry-After Listing data is temporarily unavailable. Retry after the Retry-After interval. Wait Retry-After seconds, then try once more. In server rendering, throw so your cache keeps serving the last good page.