Stream EstateStream Estate
Concepts

Watchlist

Follow one specific property, with or without notifications

A watch follows one property. With no rule, it keeps the property in your watchlist and costs nothing. With rules, it notifies the property's changes, as an alert does: same rules, same destinations, same webhook.

How a watch differs from an alert

AlertWatch
What it followsthe properties matching its criteriaone property, by propertyId
Without notificationConfigsends nothingkeeps the property in the list, free
NEW_MATCHat PROPERTY or LISTING scopeat LISTING scope only: a new listing publishes the property. At PROPERTY, 422
Starting pointthe properties entering its scopethe property as it is now: nothing is sent about its past
Webhookalert.kind is MARKETalert.kind is WATCH, alert.id is the watch's id, alert.name is null

Each notification costs a credit, as an alert's does.

Add a watch

POST /watchlist
{
  "propertyId": "019dedb1-fdf4-714c-8392-5b9cfd63cde3",
  "notificationConfig": {
    "rules": [
      { "eventType": "PRICE_CHANGE", "variationPercent": [{ "lte": -5 }] },
      { "eventType": "EXPIRED" }
    ]
  },
  "notificationDestination": { "webhookUrl": "https://your-server.com/webhooks/alerts" }
}
  • Without notificationConfig, the watch keeps the property and sends nothing.
  • notificationConfig and notificationDestination take an alert's shape: see Notification rules and Attaching a destination.
  • An id retired by a merge is accepted: the watch is made on the kept property.
  • An unknown property returns 404.
  • A watchlist holds at most 10,000 watches. Adding one more returns 422.

File a watch under an alert

alertId files the watch under one of your alerts. Omitted, the watch is filed under none.

  • A property is watched once per alert, and once under no alert. A duplicate returns 409, with the existing watch's id.
  • DELETE /alerts/{id} also deletes the watches filed under the alert. Watches of the same property under no alert, or under another alert, stay.

Update a watch

PUT /watchlist/{id} changes only the fields sent: alertId, notificationConfig, notificationDestination, enabled. The property never changes.

  • notificationConfig: null stops notifications and keeps the property.
  • enabled: false pauses the watch. Enabling it again starts from the property as it is then, without reporting what changed meanwhile.
  • Moving a watch, through alertId, where you already watch the property merges the two into the watch already there, which is returned. If both have rules and differ in enabled or in their destination: 409. The merge in detail is in the reference.

When the property changes

  • It leaves the market — the watch stays, with expired: true. A REACTIVATED rule tells you of its return.
  • It is merged — the watch follows the kept property: propertyId takes its id. If you already watched the kept property in the same place, the two watches merge and GET /watchlist/{id} returns 404 for the one that goes.

A watch's events

GET /watchlist/{watchId}/events lists a watch's events, newest first: one per change of the property that one of its rules admitted. notifiedAt is null while the event waits for delivery.

From favorites

/favorite-properties is deprecated: the watchlist replaces it.

FavoritesWatchlist
POST /favorite-propertiesPOST /watchlist, without notificationConfig
GET /favorite-propertiesGET /watchlist; propertyId[] filters on a list of ids
DELETE /favorite-properties/{id}DELETE /watchlist/{id}

A favorite only keeps a property. A watch can also tell you of its changes, on the same endpoint.

Endpoints

  • POST /watchlist — add a watch
  • GET /watchlist — list, filters alertId and propertyId[] (100 ids at most)
  • GET /watchlist/{id} — detail
  • PUT /watchlist/{id} — update
  • DELETE /watchlist/{id} — remove the property from the watchlist
  • GET /watchlist/{watchId}/events — the watch's events
  • GET /watchlist/{watchId}/events/{id} — one event

See the reference.

Version 0.34.464Last updated

On this page