Check a monitor now
Runs one check immediately and returns when it is done. A check always fetches the page fresh; it never serves a cached copy.
Requires scope: monitors
Runs one check immediately and returns when it is done. A check always fetches the page fresh; it never serves a cached copy.
A check that changes the content creates a change event and queues monitor.changed, exactly as a scheduled
check does. The first successful check of a new monitor records the baseline and sends no event.
A check that could not read the page returns outcome: failed, and counts toward the auto-disable limit.
Authorization
bearerAuth Authorization: Bearer <key>. Read the key from the SPICRAWL_API_KEY environment
variable; never hard-code or log it. spicrawl_test_… keys can never spend live
credits. Scopes: scrape, batch, sessions (granted by default), browser
and read (granted deliberately), and partner (only on a partner account's key).
A missing scope is 403 ERR::AUTH::INSUFFICIENT_SCOPE naming the scope.
In: header
Path Parameters
The monitor id. An id of another organization answers 404.
1 <= length <= 64Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X POST "https://example.com/v1/monitors/string/check"{ "outcome": "unchanged", "event_id": "string", "credits": 0, "run": { "checked": 0, "skipped": 0, "changed": 0, "added": 0, "removed": 0, "credits": 0, "truncated": true }}