List a monitor's changes
The confirmed changes of one monitor, newest first. Each carries the diff from the previous content to the new one.
Requires scope: monitors
The confirmed changes of one monitor, newest first. Each carries the diff from the previous content to the new
one. The baseline is not a change and is not listed. A site monitor lists one change per run that found
something: its summary holds the digest, and diff is null. Scope monitors (or read).
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 <= 64Query Parameters
Changes to return. Defaults to 20; out of range (1 to 100) is a 400, not clamped.
1 <= value <= 10020Response Body
application/json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X GET "https://example.com/v1/monitors/string/changes"{ "data": [ { "id": "string", "detected_at": "2019-08-24T14:15:22Z", "previous_hash": "string", "new_hash": "string", "diff": "string", "summary": { "counts": { "checked": 0, "skipped": 0, "changed": 0, "added": 0, "removed": 0, "credits": 0, "truncated": true }, "truncated": true, "changed": [ { "url": "string", "diff": "string" } ], "added": [ "string" ], "removed": [ "string" ] }, "notified_at": "2019-08-24T14:15:22Z" } ]}