Uptime Monitor

No targets configured. Set TARGETS in .env.local.

API

Examples

Copy and run. For production, replace localhost:3000 with your domain.

curl — list all targets

curl http://localhost:3000/api/status

curl — one target

curl http://localhost:3000/api/status/target-1

curl — trigger check (replace KEY with your CRON_API_KEY)

curl -X POST "http://localhost:3000/api/check?key=KEY"

JavaScript (fetch)

const res = await fetch('/api/status');
const { targets, updatedAt } = await res.json();