Skip to main content
POST
Create a monitor
Creates a monitor and returns 201 with its settings and webhook secret. Free to create. Each check costs 1 credit per page fetched, plus extras. See Limits and credits. Failed requests are never charged.

Guide: Monitors

Targets, schedules, change detection, goals, alerts and limits.

Authorizations

X-API-Key
string
header
required

Your Prefetch API key. Obtain one from the dashboard.

Body

application/json
name
string
required
Maximum string length: 256
Example:

"Competitor pricing"

schedule
object
required

Exactly one of cron or text. A bare string is accepted too, and read as cron when it has five cron fields.

targets
(Scrape target · object | Crawl target · object | Search target · object)[]
required

What to watch. At most 500 pages per check across all targets.

Required array length: 1 - 50 elements

Watches a fixed list of pages, each fetched the way GET /scrape would fetch it.

goal
string | null

What you want to be told about, in one plain sentence. With a goal, every changed page is judged against it, and only meaningful changes send a monitor.page webhook. 1 credit per page judged.

Maximum string length: 2000
Example:

"Alert me when a plan price or its included features change"

judge_enabled
boolean

Judge changes against the goal. Default: true when a goal is set.

webhook
object
email
object
retention_days
integer
default:30

How long check history is kept.

Required range: 1 <= x <= 365

Response

Monitor created.

success
enum<boolean>
required
Available options:
true
data
object
required
meta
object
required