# 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.

Source: https://docs.spicrawl.com/api-reference/monitors/monitors-changes

## GET /v1/monitors/{monitorID}/changes

Operation ID: `monitorsChanges`. API key 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`).

### Example

```bash
curl "https://api.spicrawl.com/v1/monitors/{monitorID}/changes" \
  -H "Authorization: Bearer $SPICRAWL_API_KEY"
```

### Parameters

| Name | In | Type | Required | Description |
|---|---|---|---|---|
| `monitorID` | path | string | yes | The monitor `id`. An id of another organization answers 404. |
| `limit` | query | integer; default `20` | no | Changes to return. Defaults to 20; out of range (1 to 100) is a 400, not clamped. |

### Responses

#### 200

Recent changes, newest first.

Headers: `X-Request-Id`.

`application/json`.

| Field | Type | Required | Description |
|---|---|---|---|
| `data` | array of object (`MonitorChange`) | yes | Newest first. |

#### 400

The request is invalid. Not retryable; fix the request using `code` and `diagnostics.hint`.

Headers: `X-Request-Id`.

`application/problem+json` (`Problem` schema).

#### 401

Missing, invalid, revoked or expired key. Not retryable with the same key.

Headers: `X-Request-Id`.

`application/problem+json` (`Problem` schema).

#### 403

The key lacks the scope this route requires (`ERR::AUTH::INSUFFICIENT_SCOPE`), or the action is not permitted.

Headers: `X-Request-Id`.

`application/problem+json` (`Problem` schema).

#### 404

No such resource for this key's organization.

Headers: `X-Request-Id`.

`application/problem+json` (`Problem` schema).

#### 500

Internal error. Retryable when `retryable` is true.

Headers: `X-Request-Id`.

`application/problem+json` (`Problem` schema).

Full OpenAPI spec: https://docs.spicrawl.com/openapi.yaml
