Menu · Reference
Reference

Get a collection

GEThttps://idx.ruuster.com/v1/collections/{collectionId}

publishable or secret key · 1 unit · cached 300 s

Get one saved collection, with its name, its saved search in the API's own parameters, and its display options.

View as Markdownopenapi.json

One saved collection: its name, its saved search as query (the parameters /v1/listings takes), whether it is handPicked, and its display options.

What to know

  • An unknown id answers 404 not_found.
  • To show its listings, call GET /v1/collections/{collectionId}/listings, which applies your boards' rules to every listing as it answers.

Path parameters

Name Type Description
collectionId string A collection id (emb_…), from /v1/collections.

Query parameters

Name Type Description
format enum, default json json = the public API shapes; widget = the shapes the Ruuster widget reads (for the widget and its adapters). Values: json, widget.

Response

The answer is { ok: true, data, meta }. These are the fields of data; meta carries brokerageId, freshness.asOf, mls (each board's display rules) and canonical.

Field Type Description
id string The collection id (emb_…).
name string Its name.
query string The saved search in the public grammar (sorted querystring), exactly as /v1/listings takes it.
handPicked boolean True when the collection lists hand-picked listings; /v1/collections/{id}/listings returns the ones this key can show, in order.
options object The saved widget display options (the data-* equivalents), known keys only.
options.hideBackground boolean data-hide-background.
options.hideSearchbar boolean data-hide-searchbar.
options.hideButtons boolean data-hide-buttons.
options.newTab boolean data-new-tab.
options.forceRegistration boolean Saved for embed mode; API-key mode has no registration.
options.limit integer data-limit (1 to 1000).
options.listingsPerPage integer data-listings-per-page (1 to 50).
options.iframeTopMargin integer data-iframe-top-margin (0 to 999).
options.registrationPopupAfter integer Saved for embed mode (0 to 100).
options.customCrmTags string Saved for embed mode; API-key mode sends no CRM events.
options.menuPlacement string (enum) data-menu-placement. One of bottom, top, auto.
options.nextButtonPosition string (enum) data-next-button-position. One of left, center, right.
updatedAt string When it was last saved (ISO).

Errors

These are the error codes this endpoint can answer. Every error has the same body; Errors explains each code and what to show.

invalid_parameter, secret_key_in_url, invalid_credentials, missing_credentials, payment_required, access_revoked, brokerage_not_enabled, origin_not_allowed, origin_required, secret_key_in_browser, not_found, daily_quota_exceeded, rate_limited, internal_error, api_paused, source_unavailable