spicrawlspicrawlDocs
Monitors

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

GET
/v1/monitors/{monitorID}/changes

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
AuthorizationBearer <token>

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

monitorID*string

The monitor id. An id of another organization answers 404.

Length1 <= length <= 64

Query Parameters

limit?integer

Changes to return. Defaults to 20; out of range (1 to 100) is a 400, not clamped.

Range1 <= value <= 100
Default20

Response 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"    }  ]}