```yaml
product: AlterLab
title: Monitors API Reference
category: api
comparison_context: "AlterLab is an alternative to Firecrawl, ScrapingBee, and Bright Data."
source_url: https://alterlab.io/docs/api/generated/monitors
```

# Monitors API Reference

Auto-generated API reference for monitors endpoints, built from the OpenAPI spec.

## GET /api/v1/monitors

List Monitors
List user's monitors.

Authentication: `X-API-Key: <your key>`

| Parameter | In | Type | Required | Description |
|-----------|----|------|----------|-------------|
| `limit` | query | `integer` | no |  |
| `offset` | query | `integer` | no |  |
| `active_only` | query | `boolean` | no |  |

## POST /api/v1/monitors

Create Monitor
Create a new change detection monitor.

Authentication: `X-API-Key: <your key>`

| Parameter | In | Type | Required | Description |
|-----------|----|------|----------|-------------|
| `X-Organization-Id` | header | `string` | no |  |
| `name` | body | `string` | yes | Name |
| `url` | body | `string` | yes | URL to monitor for changes, or keyword:<term> for SERP monitors |
| `formats` | body | `string[]` | no |  |
| `check_interval` | body | `string` | no | Cron expression for check frequency, e.g. '0 */6 * * *' (every 6h) |
| `timezone` | body | `string` | no | Timezone |
| `diff_mode` | body | `"semantic" \| "exact" \| "selector" \| "fields" \| "items"` | no | Diff algorithm: semantic (structural), exact (byte-level), selector (CSS selectors), fields (typed field values, requires monitor_fields; no LLM), items (item set on a listing page, requires monitor_items; fires item.added\|changed\|removed) |
| `monitor_selectors` | body | `string[]` | no |  |
| `monitor_fields` | body | `object` | no |  |
| `monitor_items` | body | `object` | no | Track a set of items on a listing page: identity, optional per-item fields, removal rule. |
| `notify_on` | body | `"change" \| "always"` | no | When to fire webhook: 'change' (only on diff) or 'always' (every check) |
| `options` | body | `object` | no |  |
| `webhook_url` | body | `string` | no |  |
| `extraction_schema` | body | `object` | no |  |

## GET /api/v1/monitors/groups

List monitor groups
List all monitor groups owned by the current user. Returns aggregate status: group_id, total monitors, active monitors, and URLs.

Authentication: `X-API-Key: <your key>`

| Parameter | In | Type | Required | Description |
|-----------|----|------|----------|-------------|
| `limit` | query | `integer` | no |  |
| `offset` | query | `integer` | no |  |

## POST /api/v1/monitors/groups

Create a monitor group
Create a group of monitors from a single config applied to multiple URLs. Each URL gets its own monitor schedule; all share the same group_id, extraction schema, webhook, cron, and diff configuration. Max 20 URLs per group.

Authentication: `X-API-Key: <your key>`

| Parameter | In | Type | Required | Description |
|-----------|----|------|----------|-------------|
| `X-Organization-Id` | header | `string` | no |  |
| `name` | body | `string` | yes | Group name. Each monitor is named '{name} — {domain}'. |
| `urls` | body | `string[]` | yes | URLs to monitor as a group (max 20). Each URL gets its own monitor. |
| `formats` | body | `string[]` | no |  |
| `check_interval` | body | `string` | no | Cron expression shared by all monitors in the group |
| `timezone` | body | `string` | no | Timezone |
| `diff_mode` | body | `"semantic" \| "exact" \| "selector" \| "fields" \| "items"` | no | Diff algorithm applied to all monitors in the group |
| `monitor_selectors` | body | `string[]` | no |  |
| `monitor_fields` | body | `object` | no |  |
| `monitor_items` | body | `object` | no | Track a set of items on a listing page: identity, optional per-item fields, removal rule. |
| `notify_on` | body | `"change" \| "always"` | no | When to fire webhook: 'change' or 'always' |
| `options` | body | `object` | no |  |
| `webhook_url` | body | `string` | no |  |
| `extraction_schema` | body | `object` | no |  |

## DELETE /api/v1/monitors/{monitor_id}

Delete Monitor
Soft-delete a monitor.

Authentication: `X-API-Key: <your key>`

| Parameter | In | Type | Required | Description |
|-----------|----|------|----------|-------------|
| `monitor_id` | path | `string` | yes |  |

## GET /api/v1/monitors/{monitor_id}

Get Monitor
Get monitor details.

Authentication: `X-API-Key: <your key>`

| Parameter | In | Type | Required | Description |
|-----------|----|------|----------|-------------|
| `monitor_id` | path | `string` | yes |  |

## PATCH /api/v1/monitors/{monitor_id}

Update Monitor
Update a monitor.

Authentication: `X-API-Key: <your key>`

| Parameter | In | Type | Required | Description |
|-----------|----|------|----------|-------------|
| `monitor_id` | path | `string` | yes |  |
| `name` | body | `string` | no |  |
| `url` | body | `string` | no |  |
| `check_interval` | body | `string` | no |  |
| `timezone` | body | `string` | no |  |
| `diff_mode` | body | `"semantic" \| "exact" \| "selector" \| "fields" \| "items"` | no |  |
| `monitor_selectors` | body | `string[]` | no |  |
| `monitor_fields` | body | `object` | no |  |
| `monitor_items` | body | `object` | no | Track a set of items on a listing page: identity, optional per-item fields, removal rule. |
| `notify_on` | body | `"change" \| "always"` | no |  |
| `options` | body | `object` | no |  |
| `webhook_url` | body | `string` | no |  |
| `extraction_schema` | body | `object` | no |  |

## GET /api/v1/monitors/{monitor_id}/diffs

List Changes
List detected changes for a monitor (most recent first).

Authentication: `X-API-Key: <your key>`

| Parameter | In | Type | Required | Description |
|-----------|----|------|----------|-------------|
| `monitor_id` | path | `string` | yes |  |
| `limit` | query | `integer` | no |  |
| `offset` | query | `integer` | no |  |

## GET /api/v1/monitors/{monitor_id}/diffs/{change_id}

Get Change
Get a specific change record.

Authentication: `X-API-Key: <your key>`

| Parameter | In | Type | Required | Description |
|-----------|----|------|----------|-------------|
| `monitor_id` | path | `string` | yes |  |
| `change_id` | path | `string` | yes |  |

## GET /api/v1/monitors/{monitor_id}/fields/{field}/history

Get Field History
Value timeline of one tracked field, oldest to newest, repeats collapsed.

Authentication: `X-API-Key: <your key>`

| Parameter | In | Type | Required | Description |
|-----------|----|------|----------|-------------|
| `monitor_id` | path | `string` | yes |  |
| `field` | path | `string` | yes |  |
| `limit` | query | `integer` | no |  |
| `offset` | query | `integer` | no |  |

## POST /api/v1/monitors/{monitor_id}/pause

Pause Monitor
Pause a monitor.

Authentication: `X-API-Key: <your key>`

| Parameter | In | Type | Required | Description |
|-----------|----|------|----------|-------------|
| `monitor_id` | path | `string` | yes |  |

## POST /api/v1/monitors/{monitor_id}/resume

Resume Monitor
Resume a paused monitor.

Authentication: `X-API-Key: <your key>`

| Parameter | In | Type | Required | Description |
|-----------|----|------|----------|-------------|
| `monitor_id` | path | `string` | yes |  |

## GET /api/v1/monitors/{monitor_id}/snapshots

List Snapshots
List snapshots for a monitor (most recent first).

Authentication: `X-API-Key: <your key>`

| Parameter | In | Type | Required | Description |
|-----------|----|------|----------|-------------|
| `monitor_id` | path | `string` | yes |  |
| `limit` | query | `integer` | no |  |
| `offset` | query | `integer` | no |  |

## GET /api/v1/monitors/{monitor_id}/snapshots/{snapshot_id}

Get Snapshot
Get a specific snapshot with full content.

Authentication: `X-API-Key: <your key>`

| Parameter | In | Type | Required | Description |
|-----------|----|------|----------|-------------|
| `monitor_id` | path | `string` | yes |  |
| `snapshot_id` | path | `string` | yes |  |
