curl -X PUT "https://api.sitespy.app/api/v1/watch/095be615-a8ad-4c33-8e9c-c7612fbf6c9f" \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://updated-example.com",
"title": "Updated Monitor",
"paused": false
}'import requests
headers = {
'x-api-key': 'YOUR_API_KEY',
'Content-Type': 'application/json'
}
uuid = '095be615-a8ad-4c33-8e9c-c7612fbf6c9f'
data = {
'url': 'https://updated-example.com',
'title': 'Updated Monitor',
'paused': False
}
response = requests.put(f'https://api.sitespy.app/api/v1/watch/{uuid}',
headers=headers, json=data)
print(response.text)
const options = {
method: 'PUT',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
url: '<string>',
title: '<string>',
tag: '<string>',
tags: ['<string>'],
paused: true,
notification_muted: true,
notification_rate_limit_per_hour: 1,
notification_rate_limit_per_day: 1,
fetch_backend: 'system',
headers: {},
body: JSON.stringify('<string>'),
proxy: '<string>',
ignore_status_codes: true,
webdriver_delay: 30,
disable_javascript: false,
mobile_view: false,
noise_reduction_ads: true,
webdriver_js_execute_code: '<string>',
time_between_check: {
weeks: 26000,
days: 182500,
hours: 4380000,
minutes: 262800000,
seconds: 15768000000
},
time_between_check_use_default: true,
notification_urls: ['<string>'],
notification_title: '<string>',
notification_body: '<string>',
track_ldjson_price_data: true,
browser_steps: [{operation: '<string>', selector: '<string>', optional_value: '<string>'}],
processor: 'text_json_diff',
screenshot_enabled: false,
include_filters: ['<string>'],
subtractive_selectors: ['<string>'],
ignore_text: ['<string>'],
auto_noise_reduction_enabled: true,
trigger_text: ['<string>'],
text_should_not_be_present: ['<string>'],
alert_on_state_change: true,
extract_text: ['<string>'],
trim_text_whitespace: false,
sort_text_alphabetically: false,
remove_duplicate_lines: false,
check_unique_lines: false,
strip_ignored_lines: true,
filter_text_added: true,
filter_text_removed: true,
filter_text_replaced: true,
in_stock_only: true,
follow_price_changes: true,
price_change_threshold_percent: 123,
notification_screenshot: false,
filter_failure_notification_send: true,
use_page_title_in_list: true,
history_snapshot_max_length: 500,
time_schedule_limit: {
enabled: false,
monday: {enabled: true, start_time: '00:00', duration: {hours: '24', minutes: '00'}},
tuesday: {enabled: true, start_time: '00:00', duration: {hours: '24', minutes: '00'}},
wednesday: {enabled: true, start_time: '00:00', duration: {hours: '24', minutes: '00'}},
thursday: {enabled: true, start_time: '00:00', duration: {hours: '24', minutes: '00'}},
friday: {enabled: true, start_time: '00:00', duration: {hours: '24', minutes: '00'}},
saturday: {enabled: true, start_time: '00:00', duration: {hours: '24', minutes: '00'}},
sunday: {enabled: true, start_time: '00:00', duration: {hours: '24', minutes: '00'}}
},
conditions: [{field: '<string>', operator: '<string>', value: '<string>'}],
conditions_match_logic: 'ALL',
track_what: '<string>',
ai_tuning_started_at: 0,
filters_source: 'manual',
last_viewed: 1
})
};
fetch('https://api.sitespy.app/api/v1/watch/{uuid}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));OK{
"message": "<string>",
"erased_at_stage": "include",
"erasing_field": "subtractive_selectors",
"erasing_rules": [
"<string>"
]
}Update watch
Update an existing web page change monitor (watch) using JSON. Accepts the same structure as returned in get single watch information.
curl -X PUT "https://api.sitespy.app/api/v1/watch/095be615-a8ad-4c33-8e9c-c7612fbf6c9f" \
-H "x-api-key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://updated-example.com",
"title": "Updated Monitor",
"paused": false
}'import requests
headers = {
'x-api-key': 'YOUR_API_KEY',
'Content-Type': 'application/json'
}
uuid = '095be615-a8ad-4c33-8e9c-c7612fbf6c9f'
data = {
'url': 'https://updated-example.com',
'title': 'Updated Monitor',
'paused': False
}
response = requests.put(f'https://api.sitespy.app/api/v1/watch/{uuid}',
headers=headers, json=data)
print(response.text)
const options = {
method: 'PUT',
headers: {'x-api-key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
url: '<string>',
title: '<string>',
tag: '<string>',
tags: ['<string>'],
paused: true,
notification_muted: true,
notification_rate_limit_per_hour: 1,
notification_rate_limit_per_day: 1,
fetch_backend: 'system',
headers: {},
body: JSON.stringify('<string>'),
proxy: '<string>',
ignore_status_codes: true,
webdriver_delay: 30,
disable_javascript: false,
mobile_view: false,
noise_reduction_ads: true,
webdriver_js_execute_code: '<string>',
time_between_check: {
weeks: 26000,
days: 182500,
hours: 4380000,
minutes: 262800000,
seconds: 15768000000
},
time_between_check_use_default: true,
notification_urls: ['<string>'],
notification_title: '<string>',
notification_body: '<string>',
track_ldjson_price_data: true,
browser_steps: [{operation: '<string>', selector: '<string>', optional_value: '<string>'}],
processor: 'text_json_diff',
screenshot_enabled: false,
include_filters: ['<string>'],
subtractive_selectors: ['<string>'],
ignore_text: ['<string>'],
auto_noise_reduction_enabled: true,
trigger_text: ['<string>'],
text_should_not_be_present: ['<string>'],
alert_on_state_change: true,
extract_text: ['<string>'],
trim_text_whitespace: false,
sort_text_alphabetically: false,
remove_duplicate_lines: false,
check_unique_lines: false,
strip_ignored_lines: true,
filter_text_added: true,
filter_text_removed: true,
filter_text_replaced: true,
in_stock_only: true,
follow_price_changes: true,
price_change_threshold_percent: 123,
notification_screenshot: false,
filter_failure_notification_send: true,
use_page_title_in_list: true,
history_snapshot_max_length: 500,
time_schedule_limit: {
enabled: false,
monday: {enabled: true, start_time: '00:00', duration: {hours: '24', minutes: '00'}},
tuesday: {enabled: true, start_time: '00:00', duration: {hours: '24', minutes: '00'}},
wednesday: {enabled: true, start_time: '00:00', duration: {hours: '24', minutes: '00'}},
thursday: {enabled: true, start_time: '00:00', duration: {hours: '24', minutes: '00'}},
friday: {enabled: true, start_time: '00:00', duration: {hours: '24', minutes: '00'}},
saturday: {enabled: true, start_time: '00:00', duration: {hours: '24', minutes: '00'}},
sunday: {enabled: true, start_time: '00:00', duration: {hours: '24', minutes: '00'}}
},
conditions: [{field: '<string>', operator: '<string>', value: '<string>'}],
conditions_match_logic: 'ALL',
track_what: '<string>',
ai_tuning_started_at: 0,
filters_source: 'manual',
last_viewed: 1
})
};
fetch('https://api.sitespy.app/api/v1/watch/{uuid}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));OK{
"message": "<string>",
"erased_at_stage": "include",
"erasing_field": "subtractive_selectors",
"erasing_rules": [
"<string>"
]
}Authorizations
Body
Backend to use for fetching content. Common values:
system(default) - Use the system-wide default fetcherhtml_requests- Fast requests-based fetcherhtml_webdriver- Browser-based fetcher (Playwright/Puppeteer)extra_browser_*- Custom browser configurations (if configured)- Plugin-provided fetchers (if installed)
^(system|html_requests|html_hybrid|html_webdriver|extra_browser_.+)$CSS/XPath selectors naming the part of the page this watch follows, and the only part that can trigger a notification. In the dashboard, the AI chat and the browser extension this is set by pointing at the page in the element picker rather than typed; the API accepts it directly. A watch with an empty list follows the whole page, which means every timestamp, banner and counter on it counts as a change. Selectors that the backend cannot compile are dropped on save rather than rejected.
1005000Text that should NOT be present (triggers alert if found)
1005000Notify on the check where text_should_not_be_present stops matching, and stay silent otherwise, instead of notifying on every page diff while it does not match. Null derives it: a watch with text_should_not_be_present is waiting for that message to clear unless its stated intent is a generic "any change".
Who chose this watch's include filter - 'manual' for a person, 'smart' for the removed smart-configure generator. It decides what happens when the include filter stops matching: a person's selector raises an error, a machine's silently falls back to the whole page. Nothing writes 'smart' any more, and watches configured before it was removed still carry the value with their filters honoured unchanged - but an edit that changes include_filters now records 'manual', since whoever made that edit chose the selector. Send the field explicitly to override that.
manual, smart Response
Web page change monitor (watch) updated successfully
The response is of type string.
"OK"

