target says what a monitor watches, and change_detection says how a difference becomes a change. Only name and target are required.
instructions, so detection is inferred as exact, and the monitor runs daily.
Targets
Page monitors
Watch the visible text of one page. Focus with CSS selectors, add instructions for semantic detection, and run browser actions before capture.
Sitemap monitors
Watch a sitemap for URLs that are added or removed, filtered by path patterns.
Extract monitors
Watch the pages of a site that matter for your instructions, with an optional JSON Schema.
Search monitors
Search the web on every run and report results you haven’t seen before, judged against your instructions.
Change detection
Omit
change_detection on creation and it’s inferred as shown. Any other pair returns 400, including exact with page or search instructions, and semantic page detection without instructions. Semantic detection takes an optional confidence_threshold from 0 to 1 (default 0.75). The judge rates each confirmed difference:
- It matters, with confidence at or above the threshold: reported as a change, and the baseline moves to the new content.
- It matters, with confidence below the threshold: not reported yet. The baseline stays, so the next run checks the same difference again.
- It doesn’t matter: not reported, and the baseline takes the new content silently.
Update a target
PATCH /v1/monitors/{monitor_id} replaces target as a whole, so send every field you want to keep, including instructions and selectors. If you omit change_detection, the monitor keeps its current configuration only when the target type is unchanged and that configuration is still valid. Otherwise, it infers a new detection mode. For example, adding instructions to an exact page monitor switches it to semantic detection. Send change_detection explicitly to choose its mode and confidence threshold.
target or change_detection, including confidence_threshold, discards the baseline and queues a new baseline run, which reports no change. Updating name, tags, schedule, status, or webhook keeps the baseline.
Limits and errors
An unsupported target and detection pair, or a target URL that isn’t public, returns400 INPUT_VALIDATION_ERROR. Schema validation errors include a details list; configuration checks during an update can return only a message. See Limits and errors for every limit and error code.
Related
- Page monitors, Sitemap monitors, Extract monitors, and Search monitors: fields and examples for each target.
- Monitors overview: create a monitor with a webhook.
- Runs and changes: what each target’s changes contain.
- Update a monitor reference