The sandbox
The sandbox is a made-up world for building and testing your site. It answers exactly like the
live API (the same endpoints, the same shapes, the same errors), and you reach it with a test
key: pk_test_… in the browser and sk_test_… on your server. Nothing in it is a real
listing, and nothing you do in it touches live data.
Going live is changing the key. Swap _test_ keys for _live_ keys and nothing else: the
host and every path stay the same. Place IDs you found in the sandbox are the same places on live.
What is in it
- About 20,000 listings across the whole region (Pennsylvania, New Jersey, Delaware, Maryland, Washington DC, Virginia and West Virginia), in every county and at every status: Active, Coming Soon, Active Under Contract, Pending and Closed. Every property class and every structure type appears.
- Real places, made-up homes. Towns, counties, ZIP codes and school districts are the real
public ones, with the same place IDs as live. Streets, people, offices and schools are invented:
an office is always called "Sandbox …", phone numbers are 555 numbers, emails end in
example.com, and tour and video links point athttps://example.com/…. - Keys you can tell apart. A sandbox listing key starts with
SBXand so does its MLS number. Treat a listing key as text in both environments: live keys are digits, sandbox keys are not. - Photos are drawings. Each photo is a simple drawing marked SANDBOX, in the same five sizes as live photos, so your layout can be tested without real pictures.
- Features, rooms, open houses, price history: all there, as on live.
Two things the sandbox does not have: postal-city and subdivision places (search by city name, ZIP code, county or municipality instead), and, for a listing whose address is hidden in Pennsylvania or New Jersey, the match by municipality that live also makes. A hidden-address listing in the sandbox is found by its state, county, ZIP code and school district.
Listings that never change
These listings have fixed keys and always show the same thing, so you can build a test around each one. The sandbox's own changes and your triggers never touch them.
| Key | What it is | What it shows |
|---|---|---|
SBX900000001 |
Hidden address | The address, the coordinates and the parcel are null; it is found by state, county and ZIP, never on a map. |
SBX900000002 |
Hidden address inside a community and a school district | As the hidden address above, and still found by its school district and its community. |
SBX900000003 |
Coming Soon with no photos | No photos, no days on market, no price history and no tour, with the date it is expected on the market. |
SBX900000004 |
Closed with a sale | The sale price, the sale date and the selling office and agent. |
SBX900000005 |
A town in two counties (first county) | The same town name as the next case, in another county. |
SBX900000006 |
A town in two counties (second county) | The same town name as the case before, in another county. |
SBX900000007 |
No list price | The list price is null. |
SBX900000008 |
Price may not be shown | Every price field is null because the listing does not allow prices to be displayed. |
SBX900000009 |
A very large gallery | 150 photos. |
SBX900000010 |
Open house in person | An upcoming open house held in person. |
SBX900000011 |
Open house by video | An upcoming open house held by live video, with its link. |
SBX900000012 |
Open house in person and by video | An upcoming open house held both ways, with its link. |
SBX900000013 |
Open house that has ended | Its open house was yesterday, so the open-house list is empty. |
SBX900000014 |
Rooms | A room list with sizes, levels and features. |
SBX900000015 |
Back on market | Went under contract and came back; the price history shows each price it had. |
SBX900000016 |
A past MLS number | Listed before under another MLS number, and found by either one. |
SBX900000017 |
The lowest sale price | A list price of $1,000, the lowest of any listing for sale. A lease's monthly rent can be lower. |
SBX900000018 |
The highest price | A list price of $45,000,000. |
SBX900000019 |
No bedrooms | A studio: zero bedrooms. |
SBX900000020 |
Many bedrooms | Fourteen bedrooms. |
SBX900000021 |
The oldest year built | Built in 1720. |
SBX900000022 |
The newest year built | New construction, built this year. |
SBX900000023 |
Remarks in other scripts | Remarks in Cyrillic, Japanese, Arabic, Greek and Hebrew, returned whole. |
SBX900000024 |
No attribution | Stored without a listing office name, so it is never served: 404 by key and in no search. |
SBX900000025 |
Withheld | Stored, then withheld by a record we could not read, so it is never served: 404 by key and in no search. |
SBX900000026 |
No coordinates | No point: found by its town, county and ZIP names, and absent from every map search. |
SBX900000027 |
Photos hidden off market | Closed, with the off-market photo hide: of its photos only the two chosen ones remain, and no tour. |
SBX900000028 |
Tour and video links | A 3D tour link and a video link beside the gallery. |
SBX900000029 |
Land | Land: bedrooms, baths and living area are null. |
SBX900000030 |
Days on site may not be shown | Days on market and the dates it is counted from are null because the listing does not allow them to be displayed. |
SBX900000001 lies in Baltimore City, Maryland (ZIP 21207). SBX900000002 lies in Frederick
County, Maryland (ZIP 21703), in the Frederick County Public Schools district; its community is
"Sandbox Hollow Commons", so location.subdivisions=Sandbox Hollow Commons|MD finds it.
SBX900000005 and SBX900000006 are both in Telford, Pennsylvania, one in Bucks County and
one in Montgomery County.
Open-house dates and the Coming Soon date of these listings are moved forward once a day, so an upcoming open house is always upcoming. Nothing else about them changes.
The sandbox changes by itself
Every 5 minutes a few listings change, the way live data does: prices move, listings go under contract, close, or come back on the market, a photo or an open house is added, new listings arrive, and once an hour a couple are removed. Within any hour every kind of change happens.
So your saved searches and favorites produce real notices in the sandbox without you doing
anything: instant alerts follow each round of changes, and daily and weekly digests go out at
07:00 New York time, as on live. meta.dataLastUpdatedAt is the time of the last round.
The 12-hour stop of live data never applies to the sandbox.
Removal notices in the sandbox
On live, every account gets a listing.removed notice for every removed listing. The sandbox
is shared by everyone who signs up, so there it goes only to the accounts that are looking. A
sandbox account gets listing.removed for a removal when one of these holds:
- it has a webhook endpoint (any endpoint, whatever events it subscribes to);
- it read its events list (
GET /v1/events) in the last 30 days; - its own trigger asked for that removal.
A sandbox account that has not read its events for 30 days, and has no endpoint, gets no removal notices until it reads them again. From then on it gets them as before, but not the ones it missed: when you come back to the sandbox after a while, check the listings you stored against the list of listing keys and delete the ones that are gone.
favorite.listing_removed is not affected: a consumer who saved a listing is always told when
it is removed, in the sandbox as on live.
Making something happen now
To test one case without waiting, send a sandbox trigger: a new listing that matches one of your saved searches, a change to one of your favorites, or the removal of a listing a trigger made. The change is real, so the notice, the webhook delivery and the events list follow as they would on live.
The sandbox is shared: a change you trigger is visible to every sandbox user, and another developer's changes may match your searches too. Listings made by triggers are removed after 24 hours.
Tiers in the sandbox
A test key carries the tier it was issued with, Basic or Premium, so you can try both. A saved search is checked for alerts at the tier of the key that created it or last changed its criteria.