Menu · Reference
Reference

Page sightings

GEThttps://idx.ruuster.com/v1/beacon

publishable or secret key · free · never cached

Record that a page on your site shows listings, so your usage reports show which pages display your boards' listings.

View as Markdownopenapi.json

A small ping a page sends from the browser once per visit to tell Ruuster it shows listings: the page's host, the first part of its path, your bundle version and which kind of page it is. It feeds the pages list in your usage reports, which also helps your boards' audits.

What to know

  • It costs no units and is never cached.
  • From a browser, use the publishable key. host must be the page's own host.
  • Only the first part of the path is kept, never the rest or the query string.
  • It is optional. Pages built with the recipes work the same without it.

Query parameters

Name Type Description
host string The page's hostname (must match the Origin for a publishable key). At most 253 characters. Required.
path string The page path, e.g. window.location.pathname (only its first segment, at most 64 characters, is stored). At most 2048 characters.
v string The widget version.
embed string The saved configuration the page embeds, if any.
surface enum Which widget surface the page shows. Values: search, results, detail, map.

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
recorded boolean false when the sighting could not be stored (the call still succeeds).

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, internal_error, api_paused, source_unavailable