# Monitor

Save a search or a page, choose an interval, and be told only when something changed.

```text
POST https://api.millionshort.com/v1/monitors
```

A monitor is a saved target, an interval and a place to deliver events. We run the check on schedule, remember what was there last time, and tell you only about the difference.

## Two kinds

| Kind | Watches | A change is |
|---|---|---|
| `query` | A search: a query, one source, and the search filters | A result this monitor has not seen before, among the first `top_n` results |
| `url` | One page | The page's main text differs from the last check by more than `min_change_chars` |

A query monitor watches the sources that are kept current: `social`, `hn`, `news`, `law`, `contracts`, `podcasts`, `academic`, `medical` and `finance`. The `web` source is left out on purpose: it is [refreshed periodically](https://millionshort.com/docs/search/freshness), so a monitor on it would report the index changing, not the world. To watch something on the web, watch its page.

## How you hear about it

- **A webhook.** Register an endpoint once, verify it, and events arrive signed. See [Webhooks](https://millionshort.com/docs/webhooks).
- **Pulling.** Every monitor's events can be read with `GET /v1/monitors/{id}/events`, with or without a webhook. Events are kept 30 days.

Every event says what its pages are, with the same [labels](https://millionshort.com/docs/monitor/labels) as Search and Extract, so the program that receives it can route it without fetching anything.

## In this section

| Part | Page |
|---|---|
| Quickstart | [Create a monitor, then read its events](https://millionshort.com/docs/monitor/quickstart) |
| Parameters | [The endpoints, every field, intervals and events](https://millionshort.com/docs/monitor/parameters) |
| Guides | [News monitoring, and the other jobs](https://millionshort.com/docs/monitor/guides) |
| Pricing and limits | [What a check costs, and how many monitors a plan has](https://millionshort.com/docs/monitor/pricing) |
| Errors | [Request errors, failed checks and paused monitors](https://millionshort.com/docs/monitor/errors) |

## Without a monitor

A scheduled search that remembers what it has seen does the job of a query monitor in your own code. The [news monitoring guide](https://millionshort.com/docs/monitor/guides/news-monitoring) has both ways.

## With the other endpoints

A query monitor is a saved [search](https://millionshort.com/docs/search); a page monitor fetches the way [Extract](https://millionshort.com/docs/extract) does, under the same robots.txt rules and the same per-site limits.
