# Attribution and disclaimers

Source: https://help.ruuster.com/idx/compliance-attribution

> Where each listing's attribution and each board's disclaimer, logo and notices go on cards, listing pages, results pages and maps, with the fields that hold them.

Every board requires two kinds of credit: **attribution** on each listing (who listed it) and a
**disclaimer** on each page (whose data it is, and how current). The API returns the exact text for
both, so you print it as it comes.

## Attribution on each listing

- `listing.attribution.line` is the exact attribution text the listing's board requires, such as the
  listing office's name in the board's own wording. Print it on every card and on the listing page,
  near the address, whenever it is not null.
- `listing.attribution.courtesy` is a courtesy line some boards add. Print it beside the attribution
  when it is set.
- `listing.attribution.contact` holds the agent's or office's email or phone only on boards that
  require them. Show them as text; never use them to route leads or send them to your CRM.

<figure class="idx-shot"><img src="/idx-docs/screens/ours/listing-card-1440.png" alt="Listing card with photos and the attribution its board requires on cards, on a desktop (1440 px wide)" width="1440" height="900" loading="lazy" decoding="async"><figcaption>Attribution on a card: the courtesy line under the address.</figcaption></figure>

<figure class="idx-shot"><img src="/idx-docs/screens/ours/listing-card-375.png" alt="Listing card with photos and the attribution its board requires on cards, on a phone (375 px wide)" width="375" height="812" loading="lazy" decoding="async"><figcaption>Attribution on a card: the courtesy line under the address.</figcaption></figure>

The markup is `static/html/listing-card.html` in `@ruuster/idx-recipes`. The [HTML and CSS recipe](https://help.ruuster.com/idx/recipe-html-css) shows how to fill it and which stylesheet and script to load.

## The disclaimer on each page

`meta.mls` has one block for each board in the answer. On every page that shows listings, print for
each block:

- the disclaimer (`disclaimer.html` when it is set, else `disclaimer.text`);
- the board's logo (`logo.url`, at `logo.width` by `logo.height`, with `logo.alt`), when it has one;
- its `notices` (copyright, source and DMCA notices);
- the date the data was last updated, from `meta.freshness.asOf`.

Print every board's block, not only the first: one page of results can mix boards. `MlsDisclaimers`
does all of this.

<figure class="idx-shot"><img src="/idx-docs/screens/ours/mls-disclaimers-1440.png" alt="The disclaimers of every board in the answer, and the Data last updated line, on a desktop (1440 px wide)" width="1440" height="900" loading="lazy" decoding="async"><figcaption>The board's disclaimer and the Data last updated line at the end of a listing page.</figcaption></figure>

<figure class="idx-shot"><img src="/idx-docs/screens/ours/mls-disclaimers-375.png" alt="The disclaimers of every board in the answer, and the Data last updated line, on a phone (375 px wide)" width="375" height="812" loading="lazy" decoding="async"><figcaption>The board's disclaimer and the Data last updated line at the end of a listing page.</figcaption></figure>

The markup is `static/html/mls-disclaimers.html` in `@ruuster/idx-recipes`. The [HTML and CSS recipe](https://help.ruuster.com/idx/recipe-html-css) shows how to fill it and which stylesheet and script to load.

## On maps

A map that shows listings shows the disclaimer of every board on it, inside the map frame. `AreaMap`
does this. Pins carry no attribution of their own: the hover card and the listing page do.

## Where each board puts each element

`meta.mls[].required` lists each element the board requires and its placement (`card`, `detail`,
`page` or `map`). The recipe components follow it. If you design your own,
[Rendering the JSON yourself](https://help.ruuster.com/idx/guide-render-json-yourself) explains every
element, and `assertDisplayable` from `@ruuster/idx` tells you what a card or page is missing.

## Shared listings and screenshots

When you share a listing outside your site, such as in an email or a social post, keep its attribution
with it and link back to its page on your site, where the disclaimer is.
