Changes since a cursor
https://idx.ruuster.com/v1/changessecret key only · 5 units · never cached
Poll what changed in your listings since a time or a cursor, to re-render changed pages and drop removed ones.
What changed in your key's scope since a time, then since each cursor: listings created or changed
(upsert, with change, previous and current), listings removed (removed) and boards that left
your scope (scope_removed).
What to know
- Secret key only, from your server.
- Send
since, an ISO time within the last seven days, on the first call, then each answer'snextCursor. Call again at once whilehasMoreis true, and in a few minutes when it is false. - At least once: a listing can repeat. Treat every row as idempotent.
- A cursor is valid for seven days. An older one answers 410
cursor_expired: rebuild from/v1/listings/ids, then start again withsince. - Webhooks send the same changes to your server as they happen. Keeping pages fresh.
Query parameters
| Name | Type | Description |
|---|---|---|
cursor |
string | The nextCursor of the previous page (valid 7 days; after that, resync from /v1/listings/ids). Delivery is at least once: a listing can repeat (platform re-saves that changed nothing included; compare modifiedAt) and a removal can be reported again, so treat every row as idempotent and revalidate pages with If-None-Match (a 304 costs no units). |
since |
string | First call only: changes after this ISO time (at most 7 days ago). Then follow nextCursor: call again at once while hasMore is true, later when it is false. |
limit |
integer 1 to 1000, default 500 | Changes per page (1 to 1000). A page can hold fewer, even none, while more are waiting: follow hasMore, not the row count. |
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 |
|---|---|---|
changes |
array of object | |
changes[].kind |
string (enum) | upsert: (re)render the listing's page. removed: drop the page (410) and the sitemap entry; the same removal can be reported again (a deleted listing the platform re-saves), so treat it as idempotent. scope_removed: a whole board left this key's scope; drop every listing whose mls is the row's id. One of upsert, removed, scope_removed. |
changes[].id |
string | The listing's platform UUID; for scope_removed, the board's MLS id. |
changes[].slug |
string or null | The listing's current slug on upsert; null on removed and scope_removed. |
changes[].updatedAt |
string | The change's time: when the platform wrote the row (no-op re-saves included; scope_removed: when the API noticed it; a sold listing leaving the window: when it left). |
changes[].modifiedAt |
string or null | Upsert rows only. When the MLS last modified the listing (its modificationTimestamp), ISO 8601 UTC; null when the board sends none. A hint: updatedAt also moves when the platform re-saves a listing without changing anything a page shows. |
changes[].change |
string (enum) | What changed, on upsert and removed rows (not on scope_removed). created: the listing is new to this key (just listed, or newly shown). price_changed and status_changed: previous and current hold the values before and after. removed: the listing is no longer shown. updated: anything else (photos, remarks, a re-save). photos_changed: the photos changed and nothing else did (only where the account has photo change events turned on; otherwise that is updated). One of created, price_changed, status_changed, removed, updated, photos_changed. |
changes[].previous |
object | price_changed and status_changed rows: the price and status before this change, when the listing's history records them. |
changes[].previous.price |
number or null | The price (the sold price on a sold listing); null when unknown. |
changes[].previous.status |
string (enum) or null | The status, as the API names it; null when unknown. One of active, coming_soon, pending, under_contract, closed. |
changes[].current |
object | Upsert rows: the price and status now. On a sold listing the price is the sold price. |
changes[].current.price |
number or null | The price (the sold price on a sold listing); null when unknown. |
changes[].current.status |
string (enum) or null | The status, as the API names it; null when unknown. One of active, coming_soon, pending, under_contract, closed. |
nextCursor |
string | Always set: pass it as cursor on the next poll. 410 cursor_expired after 7 days, when a board joined the scope, or when what a board may show changed (statuses, sold window, opt-outs, rentals, excluded states): resync from /v1/listings/ids. |
asOf |
string | When this page was read. |
hasMore |
boolean | true: more changes are already readable, call again now with nextCursor. false: you are caught up (or a listing is waiting for the index); poll again later. |
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_cursor, invalid_parameter, secret_key_in_url, invalid_credentials, missing_credentials, payment_required, access_revoked, brokerage_not_enabled, secret_key_in_browser, secret_key_required, cursor_expired, daily_quota_exceeded, rate_limited, internal_error, api_paused, source_unavailable