diff --git a/docs/api-spec.yaml b/docs/api-spec.yaml index 483836941..9ba80222d 100644 --- a/docs/api-spec.yaml +++ b/docs/api-spec.yaml @@ -433,7 +433,15 @@ paths: operationId: createWatch tags: [Watch Management] summary: Create a new watch - description: Create a single web page change monitor (watch). Requires at least 'url' to be set, Optionally use `"processor"` field to set the `restock_diff` mode or `text_json_diff` (default) + description: | + Create a single web page change monitor (watch). Requires at least `url` to be set. + + Every watch can be configured with: + - **Processor mode**: `processor` field (`restock_diff` or `text_json_diff` - default) + - **Notification settings**: `notification_urls` (array), `notification_title`, `notification_body`, `notification_format`, `notification_muted` + - **Tags/Groups**: `tag` (UUID string) or `tags` (array of UUIDs) + - **Check settings**: `time_between_check`, `paused`, `method`, `fetch_backend` + - **Advanced options**: `headers`, `body`, `proxy`, `browser_steps`, and more x-code-samples: - lang: 'curl' source: | diff --git a/docs/api_v1/index.html b/docs/api_v1/index.html index 0571454f3..928862f5b 100644 --- a/docs/api_v1/index.html +++ b/docs/api_v1/index.html @@ -488,8 +488,24 @@ notification preferences, and content filtering options.
" class="sc-eVqvcJ sc-fszimp kIppRw drqpJr">Custom server
curl -X GET "http://localhost:5000/api/v1/watch" \ -H "x-api-key: YOUR_API_KEY" -
{- "095be615-a8ad-4c33-8e9c-c7612fbf6c9f": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "url": "http://example.com?id={{1+1}} - the raw URL",
- "link": "http://example.com?id=2 - the rendered URL, always use this for listing.",
- "title": "Example Website Monitor - manually entered title/description",
- "page_title": "The HTML <title> from the page",
- "tags": [
- "550e8400-e29b-41d4-a716-446655440000"
], - "paused": false,
- "notification_muted": false,
- "method": "GET",
- "fetch_backend": "html_requests",
- "last_checked": 1640995200,
- "last_changed": 1640995200
}, - "7c9e6b8d-f2a1-4e5c-9d3b-8a7f6e4c2d1a": {
- "uuid": "7c9e6b8d-f2a1-4e5c-9d3b-8a7f6e4c2d1a",
- "url": "http://example.com?id={{1+1}} - the raw URL",
- "link": "http://example.com?id=2 - the rendered URL, always use this for listing.",
- "title": "News Site Tracker - manually entered title/description",
- "page_title": "The HTML <title> from the page",
- "tags": [
- "330e8400-e29b-41d4-a716-446655440001"
], - "paused": false,
- "notification_muted": true,
- "method": "GET",
- "fetch_backend": "html_webdriver",
- "last_checked": 1640998800,
- "last_changed": 1640995200
}
}{- "095be615-a8ad-4c33-8e9c-c7612fbf6c9f": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "url": "http://example.com?id={{1+1}} - the raw URL",
- "link": "http://example.com?id=2 - the rendered URL, always use this for listing.",
- "title": "Example Website Monitor - manually entered title/description",
- "page_title": "The HTML <title> from the page",
- "tags": [
- "550e8400-e29b-41d4-a716-446655440000"
], - "paused": false,
- "notification_muted": false,
- "method": "GET",
- "fetch_backend": "html_requests",
- "last_checked": 1640995200,
- "last_changed": 1640995200
}, - "7c9e6b8d-f2a1-4e5c-9d3b-8a7f6e4c2d1a": {
- "uuid": "7c9e6b8d-f2a1-4e5c-9d3b-8a7f6e4c2d1a",
- "url": "http://example.com?id={{1+1}} - the raw URL",
- "link": "http://example.com?id=2 - the rendered URL, always use this for listing.",
- "title": "News Site Tracker - manually entered title/description",
- "page_title": "The HTML <title> from the page",
- "tags": [
- "330e8400-e29b-41d4-a716-446655440001"
], - "paused": false,
- "notification_muted": true,
- "method": "GET",
- "fetch_backend": "html_webdriver",
- "last_checked": 1640998800,
- "last_changed": 1640995200
}
}Create a single web page change monitor (watch). Requires at least url to be set.
Every watch can be configured with:
+processor field (restock_diff or text_json_diff - default)notification_urls (array), notification_title, notification_body, notification_format, notification_mutedtag (UUID string) or tags (array of UUIDs)time_between_check, paused, method, fetch_backendheaders, body, proxy, browser_steps, and more| url required | string <uri> <= 5000 characters URL to monitor for changes | ||
| title | string <= 5000 characters Format for notifications | ||
| track_ldjson_price_data | boolean Whether to track JSON-LD price data - | ||
Array of objects Array of objects Browser automation steps + | |||
| processor | string Default: "text_json_diff" Enum: "restock_diff" "text_json_diff" Optional processor mode to use for change detection. Defaults to |
curl -X GET "http://localhost:5000/api/v1/watch/095be615-a8ad-4c33-8e9c-c7612fbf6c9f" \ -H "x-api-key: YOUR_API_KEY" -
{- "title": "string",
- "tag": "string",
- "tags": [
- "string"
], - "paused": true,
- "notification_muted": true,
- "method": "GET",
- "fetch_backend": "html_requests",
- "headers": {
- "property1": "string",
- "property2": "string"
}, - "body": "string",
- "proxy": "string",
- "webdriver_delay": 0,
- "webdriver_js_execute_code": "string",
- "time_between_check": {
- "weeks": 0,
- "days": 0,
- "hours": 0,
- "minutes": 0,
- "seconds": 0
}, - "time_between_check_use_default": true,
- "notification_urls": [
- "string"
], - "notification_title": "string",
- "notification_body": "string",
- "notification_format": "text",
- "track_ldjson_price_data": true,
- "browser_steps": [
- {
- "operation": "string",
- "selector": "string",
- "optional_value": "string"
}
], - "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "last_checked": 0,
- "last_changed": 0,
- "last_error": "string",
- "last_viewed": 0,
- "link": "string"
}{- "title": "string",
- "tag": "string",
- "tags": [
- "string"
], - "paused": true,
- "notification_muted": true,
- "method": "GET",
- "fetch_backend": "html_requests",
- "headers": {
- "property1": "string",
- "property2": "string"
}, - "body": "string",
- "proxy": "string",
- "webdriver_delay": 0,
- "webdriver_js_execute_code": "string",
- "time_between_check": {
- "weeks": 0,
- "days": 0,
- "hours": 0,
- "minutes": 0,
- "seconds": 0
}, - "time_between_check_use_default": true,
- "notification_urls": [
- "string"
], - "notification_title": "string",
- "notification_body": "string",
- "notification_format": "text",
- "track_ldjson_price_data": true,
- "browser_steps": [
- {
- "operation": "string",
- "selector": "string",
- "optional_value": "string"
}
], - "processor": "restock_diff",
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "last_checked": 0,
- "last_changed": 0,
- "last_error": "string",
- "last_viewed": 0,
- "link": "string"
}Update an existing web page change monitor (watch) using JSON. Accepts the same structure as returned in get single watch information.
| uuid required | string <uuid> Web page change monitor (watch) unique ID @@ -610,6 +628,8 @@ notification preferences, and content filtering options. " class="sc-eVqvcJ sc-fszimp kIppRw drqpJr">Whether to track JSON-LD price data |
Array of objects Browser automation steps + | |
| processor | string Default: "text_json_diff" Enum: "restock_diff" "text_json_diff" Optional processor mode to use for change detection. Defaults to |
| last_viewed | integer >= 0 Unix timestamp in seconds of the last time the watch was viewed. Setting it to a value higher than |
Custom server
-{- "title": "string",
- "tag": "string",
- "tags": [
- "string"
], - "paused": true,
- "notification_muted": true,
- "method": "GET",
- "fetch_backend": "html_requests",
- "headers": {
- "property1": "string",
- "property2": "string"
}, - "body": "string",
- "proxy": "string",
- "webdriver_delay": 0,
- "webdriver_js_execute_code": "string",
- "time_between_check": {
- "weeks": 0,
- "days": 0,
- "hours": 0,
- "minutes": 0,
- "seconds": 0
}, - "time_between_check_use_default": true,
- "notification_urls": [
- "string"
], - "notification_title": "string",
- "notification_body": "string",
- "notification_format": "text",
- "track_ldjson_price_data": true,
- "browser_steps": [
- {
- "operation": "string",
- "selector": "string",
- "optional_value": "string"
}
], - "last_viewed": 0
}{- "title": "string",
- "tag": "string",
- "tags": [
- "string"
], - "paused": true,
- "notification_muted": true,
- "method": "GET",
- "fetch_backend": "html_requests",
- "headers": {
- "property1": "string",
- "property2": "string"
}, - "body": "string",
- "proxy": "string",
- "webdriver_delay": 0,
- "webdriver_js_execute_code": "string",
- "time_between_check": {
- "weeks": 0,
- "days": 0,
- "hours": 0,
- "minutes": 0,
- "seconds": 0
}, - "time_between_check_use_default": true,
- "notification_urls": [
- "string"
], - "notification_title": "string",
- "notification_body": "string",
- "notification_format": "text",
- "track_ldjson_price_data": true,
- "browser_steps": [
- {
- "operation": "string",
- "selector": "string",
- "optional_value": "string"
}
], - "processor": "restock_diff",
- "last_viewed": 0
}Delete a web page change monitor (watch) and all related history
| uuid required | string <uuid> Web page change monitor (watch) unique ID @@ -920,7 +940,7 @@ counts, uptime information, and version details. -H "x-api-key: YOUR_API_KEY"Response samples
Content type application/json { |