# Sandbox and sample data

Source: https://help.ruuster.com/idx/guide-sandbox

> Build against the Ruuster Listings API before your account is live, with free sandbox keys on sample listings in Atlanta and Dallas, then go live by swapping keys.

The sandbox lets you build your whole site before your brokerage's account is set up. Sign up with
your email and you get a pair of sandbox keys in about a minute. They call the same API, at the same
endpoints, with the same answers, over a fully made-up set of listings. When your account goes live
you swap the keys and change nothing else.

## Sandbox keys

| Key | Looks like | Where it goes |
|---|---|---|
| Secret | `idx_sk_test_…` | Your server only, as `Authorization: Bearer idx_sk_test_…` |

- They follow the same rules as live keys. The secret key works from your server, including your
  listings route on `localhost` on any port, and is refused in a URL or a browser. Your pages carry
  no key: they call your listings route ([No key in your
  pages](https://help.ruuster.com/idx/keys-and-domains)). A site builder page on a domain you add in
  the console can call the API with no key, and gets sample listings.
- The secret key is shown once, when you create it. Keep it in `.env.local` as `IDX_SECRET_KEY`.
  Each pair also holds a key starting `idx_pk_test_`, which new pages don't use. You can hold up to
  three key pairs at a time.
- Each key may make 1 request a second and 2,000 requests a day (America/Chicago days). A call over
  either limit answers 429 with `Retry-After`. Sandbox keys last as long as your account.
- Every answer to a sandbox key has `meta.sandbox: true` and is never cached, so you can tell the
  two worlds apart in your logs.

## The sample data

- About 4,000 listings on two made-up boards, **Sample MLS** and **Sample MLS North**, in the
  Atlanta, GA and Dallas, TX areas. The streets, cities, ZIP codes, neighborhoods and counties are
  real; the house numbers, the homes, the agents and the owners are invented.
- Every status is there: coming soon, active, under contract, pending and sold, with sold prices
  and close dates for the last 12 months.
- The data moves through the day. New listings appear, prices drop, homes go under contract and
  close, each at its own minute, so `/v1/changes`, your sitemaps and listing-change webhooks have
  real work to do. Open houses fall on the coming weekend.
- Some homes are listed on both boards, so you can see one card per home when a search covers both.
  A few hide their address, so you can check how your pages handle a hidden address.
- Photos come from a licensed stock set and are served from `idx.ruuster.com`. You may show them on
  public pages while you build.
- Each board's disclaimer says the listings are sample data. Show the attribution and disclaimer
  exactly as you will live: [Attribution and disclaimers](https://help.ruuster.com/idx/compliance-attribution).

## Places to try

- Search by place: `city=Atlanta&state=GA`, `zip=30308` or `city=Dallas&state=TX`.
- Type into `/v1/suggest`: a neighborhood such as Midtown or Lakewood, a county, a ZIP code, a sample
  street address or a sample MLS number. Every pick works in search, market stats and boundaries.
- `ownListings=1` answers the listings of Sample Realty Group, the made-up brokerage your sandbox
  account stands for.

## Public records

Every sample home also has a county record: owners with invented names, five years of taxes, every
recorded sale and the mortgages. Your sandbox secret key reads them at
[Sample public records lookup](https://help.ruuster.com/idx/sandbox-public-records-lookup) and
[Sample public record history](https://help.ruuster.com/idx/sandbox-public-records-history).

Your sandbox key also answers the Public Records add-on's own endpoints from the same sample
records, with nothing to buy: [Public record lookup](https://help.ruuster.com/idx/public-records-lookup),
[Public record history](https://help.ruuster.com/idx/public-records-history) and
[Public records market figures](https://help.ruuster.com/idx/public-records-market). They take the
same parameters and answer the same shapes as they do live, so build against these.
[Public records for CMAs and listing presentations](https://help.ruuster.com/idx/guide-public-records)
says what the add-on may be used for.

## What starts empty

Saved shapes and saved collections belong to a live account, so the sandbox has none:
`/v1/shapes` answers an empty list and a collection id answers 404 `not_found`. Usage at
`/v1/usage` reports your sandbox key's own days and limits.

## Going live

1. In the console, choose **Go live** and tell us your brokerage, your MLS boards, your live domains
   and when you want to launch.
2. We confirm your brokerage and request approval from each board. Each board approves on its own
   schedule. You sign the data terms, one e-signature sent to your inbox.
3. When your request is approved, **Go live** shows your first invoice. Pay it with a card.
4. Open **Keys and domains** and press **Create live keys**.
5. Put the live keys where the sandbox keys were. Your code stays the same.

[Going live](https://help.ruuster.com/idx/guide-go-live) has each step, the MLS picker and the first
invoice.

Learn more: [Keys, domains and environment names](https://help.ruuster.com/idx/keys-and-domains)
and [Quickstart: your first search in three calls](https://help.ruuster.com/idx/quickstart).
