Website Uptime & Availability Monitoring
Scheduled reachability checks with stored snapshots and status-change alerts
Create a network-ping watch to track reachability on a schedule, retain private snapshots, and notify your team about detected status changes. Global ping requires Pro; other endpoint watches can start on Free.
Implementation example by the EdgeDNS team · Updated
The Challenge
Traditional uptime monitors check from a handful of locations with basic HTTP pings. They miss regional CDN failures, DNS resolution problems, and network-level issues. Alert fatigue from transient blips causes teams to ignore real outages. And some monitoring services expose your availability data publicly or in shared dashboards.
The Solution
Use POST /v1/watches with endpoint_id=network-ping and alert_strategy=status_change. Choose a supported protocol and interval, then inspect snapshots and alerts by watch ID. Free includes 5 watches checked daily; Developer includes 50 from 30 minutes; Pro includes 250 from 5 minutes. Endpoint tier restrictions apply. Scheduled checks share your monthly request allowance. Global ping requires Pro; its requested zones count as separate request units.
Endpoints Used
Combine these EdgeDNS endpoints to build this solution.
/v1/watchesMonitoring API referenceCreate Watch: Create a supported network-ping watch with interval and status-change alerts
/v1/watchesMonitoring API referenceList Watches: View all monitored domains with current status and latency
/v1/watches/:id/snapshotsMonitoring API referenceCheck Results: Get historical check results with status, latency, and per-region breakdowns
/v1/watches/:id/alertsMonitoring API referenceWatch Alerts: View recorded status-change alerts for this watch
What this workflow helps you do
Repeatable reachability checks
Configure a supported network-ping watch instead of combining unrelated legacy service flags.
Status changes with debounce
Compare the returned status fields and configure alert recipients and debounce.
Private watch history
Review historical snapshots and alerts through organization-scoped watch endpoints.
Code Example
Create a Pro network-ping watch
const headers = { Authorization: 'Bearer YOUR_API_KEY' };
const response = await fetch('https://api.edgedns.dev/v1/watches', {
method: 'POST',
headers: { ...headers, 'Content-Type': 'application/json' },
body: JSON.stringify({
"domain": "example.com",
"endpoint_id": "network-ping",
"endpoint_params": {
"protocol": "https"
},
"interval_minutes": 5,
"alert_enabled": true,
"alert_strategy": "status_change",
"alert_config": {},
"notification_emails": [
"oncall@example.com"
]
})
});
const created = await response.json();
if (!response.ok) throw new Error(created.error?.message ?? 'Watch creation failed');
// After subsequent scheduled checks, inspect this watch's snapshots.
const historyResponse = await fetch(
'https://api.edgedns.dev/v1/watches/' + encodeURIComponent(created.data.id) + '/snapshots',
{ headers }
);
const history = await historyResponse.json();
if (!historyResponse.ok) throw new Error(history.error?.message ?? 'History request failed');
console.log(history.data);Learn More
Explore industry standards and best practices related to this use case.
Ready to build Website Uptime & Availability Monitoring?
Get started with 200 free API requests per month. No credit card required.
Other Use Cases
DNS & Infrastructure Change Monitoring
Detect unauthorized DNS changes, certificate swaps, and WHOIS transfers with private, continuous monitoring
DevOps Engineer / SRESSL Certificate Monitoring & Change Alerts
Track certificate results over time with private snapshots and change alerts
Security Engineer / CISOPrivate Domain Monitoring
Keep stored monitoring history private to your organization