Menu · Rules
Rules

Compliance: MUST and NEVER

The rules every site built on the Ruuster Listings API follows, as one list of things you must do and things you must never do.

View as Markdownopenapi.json

Your boards let you show their listings on the condition that every page follows their rules. The API applies most of them before an answer reaches you: it returns only listings you may show, masks hidden addresses, and leaves out sold data where a board doesn't allow it. Your pages do the rest. This is the whole list. RUUSTER_IDX.md carries the same list for AI coding tools, word for word.

MUST

  1. Keep the secret key on your server. Send IDX_SECRET_KEY only as Authorization: Bearer from server code. Never put it in a URL, a browser, a repository, a chat or a prompt.
  2. Put no key in a page. Your pages call your own listings route (createListingsRoute from @ruuster/idx/route), which adds the secret key on your server. A site builder page with no server calls the API with no key, from an approved address on your account.
  3. Pass where objects back exactly as /v1/suggest returned them. Never build one or change its fields. The one change you may make is adding "operator":"not" to exclude an area.
  4. Show each listing's attribution. Print attribution.line on every card and every listing page where it is not null.
  5. Show every board's disclaimer. On every page that shows listings, and inside every map frame, print the disclaimer, logo and notices of every board in meta.mls, with the date the data was last updated.
  6. Follow each board's placements. Show every element in meta.mls[].required where its placement says: on the card, on the listing page, once on the page or on the map.
  7. Keep hidden addresses hidden. Use the address, slug and alt text exactly as the API returns them. When address.hidden is true, show no street, no unit, no map pin and no coordinates anywhere: not in the page, the URL, the head tags, the JSON-LD, analytics events or CRM payloads.
  8. Answer the listing's status. 410 when the API answers 410, 404 when it answers 404, and a 301 from an outdated slug to the current one. Drop removed listings from your sitemap.
  9. Handle 429 and 503 calmly. Wait Retry-After seconds before you try again. In server rendering, throw, so your cache keeps serving the last good page.
  10. Check /v1/meta capabilities before you build on sold data, maps or your own listings, and build those features only where they are available.
  11. Send forms to your own server, then to your own CRM. Consent boxes start unchecked, and the lead source is your site's name.
  12. Follow fair housing in every word. Describe homes, places and amenities, never people or who a place suits, and show the Equal Housing Opportunity notice.
  13. Print JSON-LD safely, with <JsonLd> in React or jsonLdHtml exactly as returned.

NEVER

  1. Never store listings beyond a cache. Don't copy listings, photos or their fields into a database of your own, and never keep showing a listing after the API stops returning it.
  2. Never add data the API didn't return. Don't show a field it left out, and don't fill one from another source.
  3. Never show sold data the API didn't return. Don't keep sold listings or sold prices from earlier answers once they leave the API.
  4. Never call a CRM from the browser. Lead data goes from your form to your server, and from your server to your CRM.
  5. Never put calls to action on result cards. Tour and contact buttons belong on the listing page.
  6. Never use attribution contact details to route leads. An agent's email or phone in attribution.contact is for display only.
  7. Never fetch pages in parallel, and never keep more than four calls in flight per key.
  8. Never let staging or visitor-filtered search pages be indexed.
  9. Never rank schools or describe who lives in a place as a reason to buy.

Approved domains

Listings may show only on domains your boards approved, and each domain is approved per board. The API enforces it: a browser call from any other domain is refused, a secret key answers only its own site domain's boards, and a secret key whose pages turn up on another domain is paused. Keys and domains explains how approvals work.

Where each rule is explained

Check before launch

Prompt: compliance and launch audit checks your site against this list and changes nothing until you approve. The launch checklist covers the rest.