Monitor API
Get a run
Get one Monitor run with its state, counts, changes, and target errors.
GET
A run is available as soon as Run a monitor now returns it. Read
status to check progress, changes for findings, and target_errors for Page targets that the service failed to read. See Run status and history for all run states.
Each run includes usage.fetched_urls and an estimated usage.cost with total_cost and currency (USD). Search and Page runs report nonzero usage only when they succeed. See Monitor API pricing for those rates.
An Agent run always reports zero usage.fetched_urls. Its usage.cost.total_cost reports the Agent API cost at list prices, if available. An Agent run can report a cost even if it fails.
A failed run has error.code and error.message. A skipped run has error.skip_reason and error.message. Use the typed code or reason, and do not parse the message text.
Each Page target error has type, url, code, and message. An error with code http_status also includes status_code. Other codes identify blocked pages, pages with no content, timeouts, and failed page reads. Make sure that your code accepts new error codes.
Read changes
- Search results:
changes[].typeissearch_result. A result can include a title, snippet,published_at, andlast_updated_at. The service omits unavailable fields and does not set them tonull.confidenceis the product of the judging scores that apply, from 0 to 1. The threshold applies to each check, not to the product, so a kept result can have a confidence score below the threshold. Compare scores within one monitor. - Page changes:
changes[].typeispage_change. Thediffobject contains unified text, added and removed line counts, and atruncatedflag. Line counts cover the full diff even when the service truncates the unified text.confidenceis the meaningfulness score, from 0 to 1. The judge uses your goal if you set one. - Agent updates:
changes[].typeisagent_update. Each update hastitle,text,confidence, andsources. The top-levelurlis the URL of the first source. The service omitsurlifsourcesis empty. - Change IDs: A stored change has the same
changes[].idin run responses and webhooks. Use this ID to deduplicate changes across runs and webhooks. Skip change types that you do not recognize.
last_updated_at is the last-updated date from the source at calendar-day precision, not the exact edit time. published_at is the publication date of a Search result or an Agent source. For a Search monitor, updated freshness does not make previously reported URLs eligible again. The service omits finished_at until the run ends. The service omits window while the run is queued.
Authorizations
Path Parameters
Response
The run