Skip to content
New: Agenty MCP server.

Scrape websites, take screenshots and get datasets right from Claude, ChatGPT, Gemini or Cursor.

Connect your AI

Change detection webhooks and API

Every change detection agent can post its alerts to a webhook, and every agent can be created and read through the Agenty REST API. Use the webhook to push changes into Slack, Zapier, n8n, a database or your own AI agent. Use the API to create monitors from your own code.

Add a webhook

In the builder, open Advanced: selector, keywords, webhook and paste your endpoint into Webhook URL. On an existing agent, open Config and set Webhook URL under Notification Settings, then click Save Config. The URL must start with https://.

Agenty sends a POST with a JSON body every time an alert goes out. Email and webhook alerts are sent together, so the cooldown and digest rules apply to both.

Webhook payload

{
  "event": "changedetection.change",
  "agent_id": "34clfggxsz",
  "agent_name": "MMTC-PAMP silver bar 100 g price",
  "job_id": 33,
  "url": "https://www.mmtcpamp.com/shop/silver/silver-bar/banyan-tree-silver-bar-100gm",
  "status": 200,
  "summary": "Price of the 100 g silver bar changed",
  "confidence": "high",
  "goal": "Alert when the price of the 100 g silver bar changes",
  "keywords": null,
  "error": null,
  "diff": {
    "removed": ["₹18,600.00Inclusive of all taxes"],
    "added": ["₹18,750.00Inclusive of all taxes"]
  },
  "held": [],
  "screenshot": "https://cdn.agenty.com/screenshots/...",
  "dashboard_url": "https://cloud.agenty.com/agents/changedetection/34clfggxsz",
  "timestamp": "2026-11-28T10:02:14.000Z"
}

The values above are illustrative. The field names and structure are what your endpoint receives.

FieldDescription
eventchangedetection.change, changedetection.digest or changedetection.error
summaryOne-line summary written by the AI judge. Without the AI judge, a short description of the change
confidenceThe AI judge's confidence, or null when the AI wasn't used
diffLines added and removed since the last check. Only set on change events
heldChanges found during the cooldown. Each has url, summary, timestamp and screenshot
keywordsWhich keywords were added or removed, when the agent uses keywords
errorThe error message on error events
screenshotFull-page screenshot of the check

The request has the headers Content-Type: application/json, User-Agent: Agenty-ChangeDetection/1.0 and X-Agenty-Event with the event name. Return any 2xx status. On a network error or a 5xx response, Agenty retries once.

Event types

  • changedetection.change is a normal alert with the diff.
  • changedetection.digest is sent when the cooldown ends and changes were held during it. summary says how many, and held lists them.
  • changedetection.error is sent when the page fails two checks in a row, at most once a day, if Error Alert is on.

Create an agent with the API

Create an API key and send it as a Bearer token. This request creates the silver bar monitor from the main guide and starts the first check with start=1:

curl -X POST "https://api.agenty.com/v2/agents?start=1" \
  -H "Authorization: Bearer $AGENTY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "MMTC-PAMP silver bar 100 g price",
    "type": "changedetection",
    "config": {
      "url": "https://www.mmtcpamp.com/shop/silver/silver-bar/banyan-tree-silver-bar-100gm",
      "selector": ".specific-product-price",
      "goal": "Alert when the price of the 100 g silver bar changes",
      "ai_judge": true,
      "cooldown_minutes": 60,
      "emails": "you@example.com",
      "webhook_url": "https://hooks.example.com/agenty"
    }
  }'

The response includes the new agent_id. Over the API, the AI judge is off unless you set ai_judge to true, so send it together with a goal.

Other config fields:

  • extract: TEXT (default), HTML or ATTR, with attribute for ATTR.
  • keywords: an array of words, with keywords_change set to added (default) or removed.
  • screenshot_type: full (default) or visible.
  • attach_screenshot, ignore_minor_changes, error_alert: true by default.
  • emails: up to 5 addresses, separated by commas or new lines.

Schedule it

Set a CRON schedule in UTC with the scheduler endpoint:

curl -X PUT "https://api.agenty.com/v2/scheduler/34clfggxsz" \
  -H "Authorization: Bearer $AGENTY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "type": "cron", "expression": "0 9 * * *", "is_enabled": true }'

On the Free plan and lifetime plans, a schedule that runs more than once a day returns 402 with the message "can run a scheduled agent once a day at most".

Run a check and read results

Start a check now:

curl -X POST "https://api.agenty.com/v2/jobs/start" \
  -H "Authorization: Bearer $AGENTY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "agent_id": "34clfggxsz" }'

Read the latest checks, newest first:

curl "https://api.agenty.com/v2/results/34clfggxsz?limit=10" \
  -H "Authorization: Bearer $AGENTY_API_KEY"

Each result has the compared content, is_changed, is_triggered, changes (the AI summary, or Ignored by AI: ...), compared_with (the ID of the previous check), screenshot, error and timestamp. The first check of a new agent is the baseline, so compared_with and is_changed are null.

The API reference lists every endpoint. To try requests without writing code, open API Playground in the dashboard.

No code

To create monitors without the API, ask Claude or ChatGPT through the MCP server, or send webhook events to Google Sheets, Slack and other apps with the integrations.