Workflows
Page monitors
A monitor captures a page on a schedule and compares each capture with the previous one. When the share of changed pixels reaches your threshold you get an email, a monitor.changed webhook, or both. Each run is one render from your quota.
Create monitors in the dashboard or with the API:
import { Shotsmith } from '@shotsmith/sdk';
const shotsmith = new Shotsmith({ accessKey: 'YOUR_ACCESS_KEY' });
const monitor = await shotsmith.monitors.create({
name: 'Competitor pricing',
url: 'https://example.com/pricing',
frequency: 'daily',
threshold: 2,
options: {
full_page: true,
hide_selectors: ['.rotating-testimonial'],
},
});
console.log(monitor.id);
<?php
require 'vendor/autoload.php';
use Shotsmith\Client;
$shotsmith = new Client('YOUR_ACCESS_KEY');
$monitor = $shotsmith->createMonitor([
'name' => 'Competitor pricing',
'url' => 'https://example.com/pricing',
'frequency' => 'daily',
'threshold' => 2,
'options' => [
'full_page' => true,
'hide_selectors' => ['.rotating-testimonial'],
],
]);
echo $monitor['id'];
curl -X POST "https://shotsmith.dev/v1/monitors" \
-H "X-Access-Key: YOUR_ACCESS_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Competitor pricing",
"url": "https://example.com/pricing",
"frequency": "daily",
"threshold": 2,
"options": {
"full_page": true,
"hide_selectors": [
".rotating-testimonial"
]
}
}'
const res = await fetch('https://shotsmith.dev/v1/monitors', {
method: 'POST',
headers: {
'X-Access-Key': 'YOUR_ACCESS_KEY',
'Content-Type': 'application/json',
},
body: JSON.stringify({
name: 'Competitor pricing',
url: 'https://example.com/pricing',
frequency: 'daily',
threshold: 2,
options: {
full_page: true,
hide_selectors: ['.rotating-testimonial'],
},
}),
});
if (!res.ok) throw new Error((await res.json()).error_message);
console.log(await res.json());
import json
import urllib.request
body = {
"name": "Competitor pricing",
"url": "https://example.com/pricing",
"frequency": "daily",
"threshold": 2,
"options": {
"full_page": True,
"hide_selectors": [".rotating-testimonial"]
}
}
req = urllib.request.Request(
"https://shotsmith.dev/v1/monitors",
data=json.dumps(body).encode(),
headers={"X-Access-Key": "YOUR_ACCESS_KEY", "Content-Type": "application/json"},
method="POST",
)
# Raises urllib.error.HTTPError on a 4xx/5xx response
with urllib.request.urlopen(req, timeout=60) as res:
print(json.load(res))
<?php
$ch = curl_init('https://shotsmith.dev/v1/monitors');
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => ['X-Access-Key: YOUR_ACCESS_KEY', 'Content-Type: application/json'],
CURLOPT_POSTFIELDS => json_encode([
'name' => 'Competitor pricing',
'url' => 'https://example.com/pricing',
'frequency' => 'daily',
'threshold' => 2,
'options' => [
'full_page' => true,
'hide_selectors' => ['.rotating-testimonial'],
],
]),
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 60,
]);
$response = json_decode(curl_exec($ch), true);
if (curl_getinfo($ch, CURLINFO_RESPONSE_CODE) >= 400) {
throw new RuntimeException($response['error_message']);
}
print_r($response);
package main
import (
"fmt"
"io"
"net/http"
"strings"
)
func main() {
body := strings.NewReader(`{
"name": "Competitor pricing",
"url": "https://example.com/pricing",
"frequency": "daily",
"threshold": 2,
"options": {
"full_page": true,
"hide_selectors": [
".rotating-testimonial"
]
}
}`)
req, _ := http.NewRequest("POST", "https://shotsmith.dev/v1/monitors", body)
req.Header.Set("X-Access-Key", "YOUR_ACCESS_KEY")
req.Header.Set("Content-Type", "application/json")
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
out, _ := io.ReadAll(res.Body)
fmt.Println(string(out))
}
require "net/http"
require "json"
body = {
"name" => "Competitor pricing",
"url" => "https://example.com/pricing",
"frequency" => "daily",
"threshold" => 2,
"options" => {
"full_page" => true,
"hide_selectors" => [".rotating-testimonial"]
}
}
res = Net::HTTP.post(
URI("https://shotsmith.dev/v1/monitors"),
body.to_json,
"X-Access-Key" => "YOUR_ACCESS_KEY",
"Content-Type" => "application/json"
)
raise res.body unless res.is_a?(Net::HTTPSuccess)
puts JSON.parse(res.body)
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Request {
public static void main(String[] args) throws Exception {
var body = """
{
"name": "Competitor pricing",
"url": "https://example.com/pricing",
"frequency": "daily",
"threshold": 2,
"options": {
"full_page": true,
"hide_selectors": [
".rotating-testimonial"
]
}
}
""";
var request = HttpRequest.newBuilder(URI.create("https://shotsmith.dev/v1/monitors"))
.header("X-Access-Key", "YOUR_ACCESS_KEY")
.header("Content-Type", "application/json")
.POST(HttpRequest.BodyPublishers.ofString(body))
.build();
var res = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(res.body());
}
}
using System;
using System.Net.Http;
using System.Text;
using var http = new HttpClient();
http.DefaultRequestHeaders.Add("X-Access-Key", "YOUR_ACCESS_KEY");
var body = """
{
"name": "Competitor pricing",
"url": "https://example.com/pricing",
"frequency": "daily",
"threshold": 2,
"options": {
"full_page": true,
"hide_selectors": [
".rotating-testimonial"
]
}
}
""";
var res = await http.PostAsync(
"https://shotsmith.dev/v1/monitors",
new StringContent(body, Encoding.UTF8, "application/json")
);
res.EnsureSuccessStatusCode();
Console.WriteLine(await res.Content.ReadAsStringAsync());
Content-Type: application/json
{
"id": "01m8kvpkgfgn5b85c3g99zegf6",
"name": "Competitor pricing",
"url": "https://example.com/pricing",
"frequency": "daily",
"cron": "0 9 * * *",
"threshold": 2,
"is_active": true,
"last_run_at": null,
"next_run_at": "2026-11-29T14:35:16+00:00",
"last_change_at": null
}
Frequencies: every_15_minutes, hourly, every_6_hours, daily, weekly, or custom with a cron expression (no more often than every 15 minutes) evaluated in the monitor’s timezone.
Hide carousels, timestamps and ads with hide_selectors to avoid false alarms. Cookie banners, chat widgets and animations are removed automatically. After three failures in a row, owners and admins are emailed.