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
| Alert | Watch | |
|---|---|---|
| What it follows | the properties matching its criteria | one property, by propertyId |
Without notificationConfig | sends nothing | keeps the property in the list, free |
NEW_MATCH | at PROPERTY or LISTING scope | at LISTING scope only: a new listing publishes the property. At PROPERTY, 422 |
| Starting point | the properties entering its scope | the property as it is now: nothing is sent about its past |
| Webhook | alert.kind is MARKET | alert.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
{
"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. notificationConfigandnotificationDestinationtake 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: nullstops notifications and keeps the property.enabled: falsepauses 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 inenabledor 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. AREACTIVATEDrule tells you of its return. - It is merged — the watch follows the kept property:
propertyIdtakes its id. If you already watched the kept property in the same place, the two watches merge andGET /watchlist/{id}returns404for 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.
| Favorites | Watchlist |
|---|---|
POST /favorite-properties | POST /watchlist, without notificationConfig |
GET /favorite-properties | GET /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 watchGET /watchlist— list, filtersalertIdandpropertyId[](100 ids at most)GET /watchlist/{id}— detailPUT /watchlist/{id}— updateDELETE /watchlist/{id}— remove the property from the watchlistGET /watchlist/{watchId}/events— the watch's eventsGET /watchlist/{watchId}/events/{id}— one event
See the reference.