Monitor a JSON endpoint value and check an API response on a schedule
Spooky's outcome checks read a public JSON URL on a schedule and judge the answer, for example date is today and sentCount at least 1, and alert when it is wrong.
How do I monitor a JSON endpoint value?
Create a scheduled job with a public HTTPS JSON URL and one or more rules. Each rule names a path in the response, such as date or sentCount, and compares its value with eq, gte, lte, gt, lt, or exists. Paths can use dots for nested values, and $today means today's date in the check's time zone.
The quickstart explains how to connect Spooky and give your coding agent access. A write key can create the scheduled job through the REST API.
How do I check an API response on a schedule?
Set a five-field cron schedule, a time zone, the endpoint URL, and the rules for a correct answer. Spooky checks the latest scheduled time about every five minutes, fetches the JSON and checks every rule, so choose schedules no more frequent than that. A failed rule records the returned value in the job note and reports the run as failed.
For example, a daily email endpoint can return {"date":"2026-11-27","sentCount":3}. Check date with eq and $today, then check sentCount with gte and 1.
Related guides cover monitoring AI agent scheduled jobs, choosing a cron job monitoring tool, and Vercel uptime monitoring.
Copy this prompt into your agent
Create a Spooky outcome check for my public JSON endpoint. Run it on my five-field cron schedule and time zone. Check that date is $today and sentCount is at least 1. Show me the job after creating it.What happens when the API response is wrong?
The check reports a failed run and includes the failed rules in its note, such as the expected value and the value it received. Spooky uses the scheduled job alert path for that failure.
When is a plain cron or uptime ping enough instead?
A plain cron is enough when you only need to make the request and do not need the JSON answer judged. An uptime ping is enough when you only need to know whether the URL answers. Use an outcome check when specific response values decide whether the scheduled work succeeded.