Perplexity Monitor API: scheduled web search with webhooks

Artificial Intelligence By 3 min read

Perplexity launched Monitor API to run scheduled searches and push changes via webhook. How to wire it to agents and observability without breaking things.

Perplexity released Monitor API, a service that turns web search into a continuous process. It runs queries on a fixed or cron schedule, watches site changes, and only wakes your agent when results pass your filters. Signed webhooks, deduplication, and retries included.

What Monitor API actually offers

Two modes. Web monitors run a query across the web and news on a set cadence. Page monitors track up to 10 specific pages, store a baseline on first run, and return a text diff when something changes.

The service scores results with its own decision model against a goal you define in natural language. You can tune thresholds for relevance, novelty, credibility, and timeliness. It only fires the webhook when everything clears the bar and includes a confidence score.

Schedules range from every 15 minutes to weekly or custom cron. It deduplicates, resumes from the last run, webhooks arrive signed, and delivery gets retried after temporary errors. You can pause, resume, or trigger runs via API or console.

Pricing: Web monitors at USD 1 per 1,000 successful runs, and Page monitors at USD 1 per 1,000 fetched URLs. Available now with the same API key as Search, Context, and Agent.

Why I care

This is a proper push model for agents. Fewer homegrown crons, fewer crusty scrapers, less DIY dedup/filter glue. If you’re building persistent agents or a watchdog for competition, compliance, or pricing, this removes friction.

It pairs nicely with stacks that isolate agent execution. If you want to harden the runtime, see how Google is pushing microVMs in AI agents on isolated microVMs.

Integrating with observability pipelines

  • Event-first. Terminate the webhook at your API Gateway and route it to your internal bus (Kafka, SNS/SQS, NATS). Idempotency via event_id + payload hash.
  • Edge throttling. A sidecar or lightweight function that rate-limits per monitor and uses TTL queues to avoid a thundering herd on bursts.
  • Context-rich alerts. Track time from change to detection, false-positive ratio per monitor, webhook latency, and retry success.
  • Runbooks. Define what the agent does on valid events, when to escalate to humans, and how feedback tunes thresholds.

Security: auth, replay, and payload hygiene

  • Signature verification. Validate the webhook signature before any processing. Hard-reject on mismatch.
  • Replay protection. Use timestamp and nonce if available; keep 5–10 minute windows to drop malicious replays.
  • IP allowlist. If fixed ranges are provided, only allow those. Otherwise add WAF rules.
  • Minimal payload. Strict deserialization, max size, and reject unknown fields. Audit logs with sensitive data redaction.
  • Agent sandbox. Execute follow-up actions in isolated environments with least privilege. MicroVMs or containers with seccomp/AppArmor help a lot here.

Operational cost: quick math

Back-of-the-napkin for web monitors: every 15 minutes is 96 runs/day. 100 topics = 9,600 runs/day ≈ 288k/month ≈ USD 288/month. For page monitors, you pay per fetched URL: 50 monitors x 10 pages x 96/day = 48k URLs/day ≈ USD 1,440/month. Be careful with cadence and page counts, they explode fast.

Tip: start with longer cadences and tighten only where value proves out. Measure the precision/recall of useful changes before multiplying monitors.

What I’d do

  1. Define a business goal per monitor and start with conservative thresholds.
  2. Build ingestion with signature verification, rate limits, and idempotency.
  3. Add feature flags to enable agents per monitor and a global kill switch.
  4. Log everything. Keep payload, score, and diffs for postmortems and tuning.
  5. Estimate budget by cadence and set alerts on drift.
  6. Human-in-the-loop for the first weeks to label false positives and tune.

My take: this pushes always-on agents that still use judgment. If you’re going to wake bots every 15 minutes, make it for something that moves the needle. Also, give them coffee.

Related posts

More categories