डेवलपर API
और गहराई सेआप आगे क्या पता लगाना चाहते हैं?
Every check on this site as a JSON endpoint. Free plan: 200 requests per day per key.
Get a key
Use it
curl -H "x-api-key: YOUR_KEY" \ "https://sitedowncheck.com/api/v1/check?url=example.com"
You can also pass ?key=YOUR_KEY. Responses are JSON. Errors return an error field. Results are cached for about 30 seconds.
Quickstart
JavaScript
const res = await fetch('https://sitedowncheck.com/api/v1/check?url=example.com', { headers: { 'x-api-key': process.env.SDC_KEY } });
const data = await res.json();
console.log(data.up, data.status, data.responseTime);
Python
import os, requests
r = requests.get('https://sitedowncheck.com/api/v1/check', params={'url': 'example.com'}, headers={'x-api-key': os.environ['SDC_KEY']}, timeout=30)
print(r.json()['up'])
Example response
{
"host": "example.com",
"up": true,
"status": 200,
"responseTime": 143,
"ip": "93.184.216.34",
"redirects": 1,
"checkedAt": 1759600000000
}
Newer tools (root-cause, page weight, TLS, CORS and others) return a common shape: verdict with a level of good, warn, bad or info, a title and summary; optional score and grade; sections of checks, tables or lists; and tips.
Errors
| Status | Meaning |
|---|---|
400 | Missing or invalid input, or a private or reserved address. The body has an error message. |
401 | Missing or invalid API key. |
429 | Daily key limit or per-minute rate limit reached. Check the X-RateLimit-Remaining header. |
200 with error | The check ran but the target could not be reached (for example a timeout). The error text explains why. |
Endpoints
| Endpoint | Parameter | Returns |
|---|---|---|
GET /api/v1/check | url | Is the site up: status code, response time, redirects |
GET /api/v1/ssl | host | Certificate details and expiry |
GET /api/v1/dns | host | DNS records (optional type=MX) |
GET /api/v1/headers | url | Response headers |
GET /api/v1/security | url | Security header grade |
GET /api/v1/speed | url | Timing breakdown |
GET /api/v1/health | url | Full health score |
GET /api/v1/whois | host | Domain age, registrar, expiry |
GET /api/v1/hosting | host | ASN, hosting provider, CDN |
GET /api/v1/ip | host | IP addresses and reverse DNS |
GET /api/v1/robots | url | robots.txt and sitemap analysis |
GET /api/v1/emaildns | host | SPF, DKIM, DMARC |
GET /api/v1/port | host | TCP port check (port=443) |
GET /api/v1/vitals | url | Core Web Vitals via PageSpeed (strategy=mobile) |
GET /api/v1/reverseip | host | Other domains on the same IP |
GET /api/v1/blacklist | host | DNS blacklist (DNSBL) listings |
GET /api/v1/dnssec | host | DNSSEC status |
GET /api/v1/mixedcontent | url | Insecure resources on HTTPS pages |
GET /api/v1/cookies | url | Cookie security flags |
GET /api/v1/meta | url | Meta tags and social preview |
GET /api/v1/links | url | Broken link scan (slow) |
GET /api/v1/rootcause | url | Failing layer: DNS, TCP, TLS, HTTP or content |
GET /api/v1/regions | url | Reachability from each probe location |
GET /api/v1/redirectdebug | url | Redirect chain with loops, mixed schemes and cache hints |
GET /api/v1/maintenance | url | Maintenance page vs real outage |
GET /api/v1/cloudflare | url | Cloudflare detection and 52x / 1xxx error diagnosis |
GET /api/v1/pageweight | url | Page weight by resource type |
GET /api/v1/protocols | url | HTTP/2 and HTTP/3 support |
GET /api/v1/thirdparty | url | Third-party scripts and hosts |
GET /api/v1/sitereport | url | Combined site health report |
GET /api/v1/sslchain | host | Certificate chain problems |
GET /api/v1/tlsversions | host | Supported TLS versions and grade |
GET /api/v1/cors | url | CORS policy (optional origin=) |
GET /api/v1/securitytxt | url | security.txt validation (RFC 9116) |
GET /api/v1/bulkssl | hosts | SSL expiry for up to 50 hosts (separate with commas or new lines) |
GET /api/v1/dangling | host | Dangling DNS / subdomain takeover risk |
GET /api/v1/deliverability | host | Email deliverability test |
GET /api/v1/spf | host | SPF validation and lookup count |
GET /api/v1/subdomains | host | Subdomains from certificate transparency |
GET /api/v1/dnshistory | host | Recorded DNS changes |
Limits
200 requests/day per key (resets at 00:00 UTC). HTTP 429 when exceeded. Private and reserved addresses cannot be checked.