Skip to Content
Site Report API

Site Report3 Credits

Grade a whole website from A+ to F across 40 checks in one call.

GET
/v1/site

The Site Report API grades a whole website in one call, usually in one to three seconds: whether it is up, its redirects and response time, HTTPS and the certificate, security headers and cookies, SEO basics, DNS and the domain registration. It runs 40 checks, each with a stable id, a state and a plain-English fix, and grades the site from A+ to F. See Site Grades for every check and the points it costs. The http, security, page, crawl, ssl, dns, domain and timings sections are the facts behind the checks. Every section and field is always present, null where nothing was measured.

Each call costs 3 credits. Results are cached for up to 10 minutes.

Authorization

See Authentication for details.

headerX-API-Key<token>

Provide your API key in an HTTP request header.

Query Parameters

url*string

The URL to check: http or https, or a bare host, which means http://host/. Percent-encode the whole value as one parameter (encodeURIComponent), so the target's own ?, & and # stay inside it; an unencoded ? in it is refused with a 400. A fragment is dropped.

Length1 <= length
verbose?boolean

Return extra detail: totalElapsed, retries and params, plus each errors entry's detail when the lookup fails. For site, each check also has its evidence and a verifyCommand (curl, openssl, dig or whois), and the report adds the final response's raw http.headers, each redirect's timings, every declared favicon, every mixed-content URL, and the ids of the ssl, dns and domain results it was built from (sslResultId, dnsResultIds, domainResultId).

Defaultfalse

Response Body

Successful site report. A site that does not answer is a 200 too, with reachable: false and no grade

application/json
  1. response
tool*string

Tool that generated this result

Value in"dns""domain""reverse""site""dnssec""ssl""email""redirect"
query*string

The original query string

requestId*|

Unique request identifier that generated this result

timestamp*string

UTC timestamp when the result was generated

elapsed*|

Time taken to generate the result in milliseconds

cached*boolean

Whether this result was served from cache

totalElapsed?|

Returned with verbose. Total time in milliseconds, including retries and any lookups this one made. For a cached result, the time to read it

retries?number

Returned with verbose. Number of retries before the answer, 0 for a cached result

params?

Returned with verbose. The query parameters you set that differ from their defaults

url*string

The URL the query names, where the fetch starts

finalUrl*string

The URL the redirects end at

reachable*boolean

Whether the site answered. A site that is down is still a 200, with reachable: false, the reason in http.failure, and no grade. Only a host that does not exist is a 404.

httpStatus*number

The final status; 0 when unreachable

grade*|

A+ to F; null when unreachable

Value in"A+""A""B""C""D""F"null
score*|

The weighted mean of the category scores, 0-100; null when unreachable

gradeCaps*array<>

The caps that applied to the grade

partial*boolean

True when part of the report could not be measured in time, such as a lookup that ran out of time. Those checks are not-checked and cost nothing.

categories*

A score and pass, warning and failure counts for each of availability, https, headers, content, seo, dns and domain.

summary*
checks*array<>

Every check, passes included, in a fixed order. Each has a stable id, its category, a state (ok, pass-by-absence, warn, fail, not-applicable or not-checked), a severity, a detail and, when it warns or fails, a fix.

http*
security*
page*
crawl*
ssl*

From the SSL tool's quick scan of the host on port 443; every field null when it gave no answer in time

dns*

From the DNS tool: the host's addresses and the registrable domain's nameservers; caa from the SSL tool's CAA lookup and dnssec from the domain tool. Every field null when its lookup gave no answer in time, or the host is an IP address

domain*

From the domain tool, for the registrable domain. Every field null when it gave no answer in time, or the host is an IP address

timings*

How long each part of the report took, in milliseconds

sslResultId?|

Returned with verbose. The SSL result the ssl section comes from

dnsResultIds?array<string>

Returned with verbose. The DNS results the dns section comes from

domainResultId?|

Returned with verbose. The domain result the domain section comes from

errors*array<>

Empty on a 200, including when the site did not answer (that is reachable: false). On any other status, why the request failed. The HTTP status is in the response line only

Errors

See Errors for the response format.

invalid_request
A parameter is missing or not valid.
400
invalid_query
The query is not an http or https URL the site tool can check.
400
blocked_address
The host resolves to a private or reserved address.
400
authentication_failed
No API key was sent, or it could not be checked.
401
invalid_api_key
The API key is not valid.
401
api_key_expired
The API key has expired.
401
out_of_credits
The account has no credits left.
402
forbidden
The caller may not use this tool.
403
not_found
The host does not exist.
404
rate_limited
The caller is over its rate limit; retry after the Retry-After header.
429
internal_error
An internal error on our side.
500
Example Request
curl -X GET 'https://api.dns.tools/v1/site?url=wikipedia.org'
Example Response
{  "tool": "site",  "query": "wikipedia.org",  "requestId": "3f2b8c1e-5d4a-4e7b-9c61-2a8f0d7e4b19",  "timestamp": "2026-11-26T10:44:26.001Z",  "elapsed": 5466,  "cached": false,  "errors": [],  "url": "http://wikipedia.org/",  "finalUrl": "https://www.wikipedia.org/",  "reachable": true,  "httpStatus": 200,  "grade": "B",  "score": 87,  "gradeCaps": [],  "partial": false,  "categories": {    "availability": {      "score": 100,      "passed": 3,      "warnings": 0,      "failed": 0,      "notChecked": 0    },    "https": {      "score": 100,      "passed": 6,      "warnings": 0,      "failed": 0,      "notChecked": 0    },    "headers": {      "score": 45,      "passed": 1,      "warnings": 4,      "failed": 3,      "notChecked": 0    },    "content": {      "score": 100,      "passed": 4,      "warnings": 0,      "failed": 0,      "notChecked": 0    },    "seo": {      "score": 85,      "passed": 9,      "warnings": 3,      "failed": 0,      "notChecked": 0    },    "dns": {      "score": 100,      "passed": 4,      "warnings": 1,      "failed": 0,      "notChecked": 0    },    "domain": {      "score": 100,      "passed": 2,      "warnings": 0,      "failed": 0,      "notChecked": 0    }  },  "summary": {    "passed": 29,    "warnings": 8,    "failed": 3,    "notChecked": 0  },  "checks": [    {      "id": "reachable",      "category": "availability",      "name": "Reachable",      "state": "ok",      "severity": "info",      "detail": "Answered 200",      "fix": null,      "source": "site"    },    {      "id": "redirects",      "category": "availability",      "name": "Redirects",      "state": "ok",      "severity": "info",      "detail": "2 redirects",      "fix": null,      "source": "site"    },    {      "id": "https-redirect",      "category": "https",      "name": "HTTP redirects to HTTPS",      "state": "ok",      "severity": "info",      "detail": "http:// redirects to https:// with a 301",      "fix": null,      "source": "site"    },    {      "id": "certificate-valid",      "category": "https",      "name": "Certificate valid",      "state": "ok",      "severity": "info",      "detail": "The certificate is valid and trusted by browsers. It expires in 37 days.",      "fix": null,      "source": "ssl"    },    {      "id": "hsts",      "category": "headers",      "name": "Strict-Transport-Security",      "state": "ok",      "severity": "info",      "detail": "max-age=106384710; includeSubDomains; preload",      "fix": null,      "source": "site"    },    {      "id": "content-security-policy",      "category": "headers",      "name": "Content-Security-Policy",      "state": "fail",      "severity": "high",      "detail": "No Content-Security-Policy header",      "fix": "Send a Content-Security-Policy; start with default-src 'self' and tighten",      "source": "site"    },    {      "id": "cookies",      "category": "headers",      "name": "Cookies",      "state": "warn",      "severity": "low",      "detail": "Without SameSite: WMF-Last-Access, WMF-Last-Access-Global, GeoIP",      "fix": "Set SameSite=Lax (or Strict), and HttpOnly on session cookies",      "source": "site"    },    {      "id": "title",      "category": "seo",      "name": "Title",      "state": "warn",      "severity": "low",      "detail": "9 characters, outside 10-60",      "fix": "Keep the title between 10 and 60 characters",      "source": "site"    },    {      "id": "dns-resolves",      "category": "dns",      "name": "DNS resolves",      "state": "ok",      "severity": "info",      "detail": "wikipedia.org resolves to 208.80.154.224; IPv6 2620:0:861:ed1a::1",      "fix": null,      "source": "dns"    },    {      "id": "domain-expiry",      "category": "domain",      "name": "Domain expiry",      "state": "ok",      "severity": "info",      "detail": "The registration expires in 47 days",      "fix": null,      "source": "domain"    }  ],  "http": {    "redirects": [      {        "url": "http://wikipedia.org/",        "status": 301,        "location": "https://wikipedia.org/"      },      {        "url": "https://wikipedia.org/",        "status": 301,        "location": "https://www.wikipedia.org/"      }    ],    "httpsRedirect": true,    "httpsAvailable": true,    "protocol": "HTTP/2",    "http3": false,    "server": "ATS/9.2.16",    "poweredBy": null,    "contentType": "text/html",    "charset": "utf-8",    "compression": "gzip",    "transferBytes": 29095,    "htmlBytes": 122259,    "truncated": false,    "decodeError": null,    "timings": {      "dns": 43,      "connect": 2,      "tls": 21,      "ttfb": 9,      "download": 6,      "total": 81    },    "failure": null,    "httpsFailure": null  },  "security": {    "hsts": {      "present": true,      "maxAge": 106384710,      "includeSubDomains": true,      "preload": true    },    "headers": {      "contentSecurityPolicy": null,      "xFrameOptions": null,      "xContentTypeOptions": null,      "referrerPolicy": null,      "permissionsPolicy": null    },    "missingHeaders": [      "content-security-policy",      "x-frame-options",      "x-content-type-options",      "referrer-policy",      "permissions-policy"    ],    "cookies": [      {        "name": "WMF-Last-Access",        "secure": true,        "httpOnly": true,        "sameSite": null      },      {        "name": "WMF-Last-Access-Global",        "secure": true,        "httpOnly": true,        "sameSite": null      },      {        "name": "GeoIP",        "secure": true,        "httpOnly": false,        "sameSite": null      },      {        "name": "NetworkProbeLimit",        "secure": true,        "httpOnly": false,        "sameSite": "None"      },      {        "name": "WMF-Uniq",        "secure": true,        "httpOnly": true,        "sameSite": "None"      },      {        "name": "WMF-Last-Access",        "secure": true,        "httpOnly": true,        "sameSite": null      },      {        "name": "WMF-Last-Access-Global",        "secure": true,        "httpOnly": true,        "sameSite": null      },      {        "name": "GeoIP",        "secure": true,        "httpOnly": false,        "sameSite": null      },      {        "name": "NetworkProbeLimit",        "secure": true,        "httpOnly": false,        "sameSite": "None"      },      {        "name": "WMF-Uniq",        "secure": true,        "httpOnly": true,        "sameSite": "None"      }    ],    "mixedContent": {      "count": 0,      "active": 0,      "urls": []    }  },  "page": {    "title": "Wikipedia",    "description": "Wikipedia is a free online encyclopedia, created and edited by volunteers around the world and hosted by the Wikimedia Foundation.",    "canonical": null,    "lang": "en",    "charset": "utf-8",    "viewport": true,    "h1": "Wikipedia The Free Encyclopedia",    "h1Count": 1,    "ogTitle": "Wikipedia, the free encyclopedia",    "ogDescription": "Wikipedia is a free online encyclopedia, created and edited by volunteers around the world and hosted by the Wikimedia Foundation.",    "ogImage": "https://upload.wikimedia.org/wikipedia/en/thumb/8/80/Wikipedia-logo-v2.svg/250px-Wikipedia-logo-v2.svg.png",    "favicon": "https://www.wikipedia.org/static/apple-touch/wikipedia.png",    "indexable": true,    "robots": null,    "scripts": 4,    "stylesheets": 0  },  "crawl": {    "robotsTxt": {      "url": "https://www.wikipedia.org/robots.txt",      "found": true,      "status": 200,      "blocksAll": false,      "sitemaps": [        "https://en.wikipedia.org/w/rest.php/site/v1/sitemap/0"      ]    },    "sitemap": {      "url": "https://en.wikipedia.org/w/rest.php/site/v1/sitemap/0",      "found": false,      "status": 403,      "xml": false    }  },  "ssl": {    "grade": "A+",    "trusted": true,    "issuer": "Let's Encrypt",    "validTo": "2027-01-02T18:34:50.000Z",    "daysUntilExpiry": 37,    "protocol": "TLS 1.3"  },  "dns": {    "ipv4": [      "208.80.154.224"    ],    "ipv6": [      "2620:0:861:ed1a::1"    ],    "nameservers": [      "ns0.wikimedia.org",      "ns1.wikimedia.org",      "ns2.wikimedia.org"    ],    "caa": true,    "dnssec": false  },  "domain": {    "registrar": "MarkMonitor Inc.",    "creationDate": "2001-01-13T00:12:14Z",    "expirationDate": "2027-01-13T00:12:14Z",    "daysUntilExpiry": 47,    "eppStatus": [      "clientDeleteProhibited",      "clientTransferProhibited",      "clientUpdateProhibited"    ]  },  "timings": {    "site": 5452,    "ssl": 234,    "dns": 2903,    "domain": 5452  }}