Security & Trust

Security headers API

Audit the HTTP security headers of any page with one request. Get per-check results, a 0 to 100 score, an A+ to F grade and recommendations in priority order.

CategorySecurity & Trust
Endpoints1
Key Features4
Frequently asked questions4

Used by people at these companies

InstantOutseerMongoDBRespondentSage Expense ManagementInstantlyD.R. HortonWhatConvertsAdobeLLM Pulse

Trust signals before you integrate

Transparent docs, authenticated requests, and visible reliability details make it easier to evaluate DomScan before you ship.

LiveService status

Check live service health and documented failure responses before you integrate.

OpenAPIAPI artifacts

OpenAPI, Swagger, Postman, CLI, SDK, and MCP links are one click away.

API keysProtected access

Authenticated endpoints use API keys with clear credit costs before you call them.

1,000Free credits

Start with 1,000 free credits every month. Need more? Pick a monthly plan or buy a one-time pack.

What this API helps you ship

Use this page as a production brief: endpoints, examples, response shape, and the workflow pieces needed to plug DomScan into your own product.

Product workflows

Embed domain checks, DNS intelligence, risk signals, or enrichment into onboarding, search, and internal tools.

Analyst automation

Replace repeated manual lookups with scheduled jobs, alerting, and reproducible investigation steps.

Clean JSON data

Use predictable fields, documented status codes, and credit costs instead of scraping provider pages.

AI and ops tooling

Feed agents, dashboards, SOAR playbooks, and CRMs through OpenAPI, SDK, Postman, or MCP.

Integration workflow

A simple path from first request to repeatable production usage.

1
Authenticate once

Send your API key with the documented header and keep requests consistent across services.

2
Query with examples

Start from the curl and HTTP samples, then map the parameters into your application code.

3
Operate and monitor

Use status codes, credit costs, and response fields to build retries, logs, and alerts.

Developer kit

Jump from this page into machine-readable docs, request collections, SDKs, or agent tooling.

Parameters and response map

Scan the inputs, output fields, and status codes before wiring the endpoint into your client.

Request parameters

Parameter

urldomain
Response fields

Example response

statusfinal_urlscoregradechecksrecommendations
Status coverage

HTTP status codes

200400401402429502

Endpoints

GET /v1/headers
Credits: 1Authentication: Authentication required

Trust signals before you integrate

Transparent docs, authenticated requests, and visible reliability details make it easier to evaluate DomScan before you ship.

LiveService status

Check live service health and documented failure responses before you integrate.

OpenAPIAPI artifacts

OpenAPI, Swagger, Postman, CLI, SDK, and MCP links are one click away.

API keysProtected access

Authenticated endpoints use API keys with clear credit costs before you call them.

1,000Free credits

Start with 1,000 free credits every month. Need more? Pick a monthly plan or buy a one-time pack.

Key Features

Eleven header checks

HSTS, CSP, clickjacking protection, nosniff, Referrer-Policy, Permissions-Policy, COOP, COEP, CORP, version disclosure and cookie flags.

Documented scoring

Each check has a fixed weight. A pass earns full weight and a warning half, and A+ requires a preload-ready HSTS and a CSP without issues.

CSP details

Flags unsafe-inline, unsafe-eval, wildcard sources, missing object-src and base-uri, and report-only policies.

Safe output

Only security-relevant headers are returned and cookie values are never exposed.

Example request

GET /v1/headers?url=example.combash
curl -H "X-API-Key: $DOMSCAN_API_KEY" "https://domscan.net/v1/headers?url=example.com"

Example response

200 OKjson
{
  "status": "ok",
  "final_url": "https://example.com/",
  "score": 75,
  "grade": "C",
  "checks": [
    { "id": "strict_transport_security", "status": "pass", "issues": ["preload_missing"] },
    { "id": "content_security_policy", "status": "warn", "issues": ["unsafe_inline"] },
    { "id": "permissions_policy", "status": "missing", "issues": [] }
  ],
  "recommendations": ["remove_csp_unsafe_inline", "add_hsts_preload", "add_permissions_policy"]
}

Frequently asked questions

Why are some results not graded?

Error responses and bot challenges are analysed but return a null score and grade, because their headers may come from a firewall rather than the site.

Are redirects followed?

Yes, up to 5 redirects. The final URL and redirect count are included, and pages not served over HTTPS are capped at grade D.

Is a CSP in a meta tag checked?

No. Only the Content-Security-Policy header is evaluated, and the response notes this as a caveat.

How many credits does it cost?

One credit per request. Requests where the page did not answer are refunded.

Related tools and resources

HTTP status codes

These are the HTTP status codes to handle, so you can tell apart successful responses, auth issues, credits, rate limits, missing data, and upstream failures.

OK200

Request successful

Bad Request400

Invalid parameters

Unauthorized401

Missing or invalid API key/session.

Payment Required402

Not enough credits to run this request.

Too Many Requests429

Rate limit exceeded

Bad Gateway502

Upstream RDAP error

What customers say

4.9/5 from 34 verified buyer reviews

Having those checks in one place is what sold me on DomScan.

Verified buyer · November 2026

It suits the domain hunts, watching certificates and domain expiry hassles I have done manually for years.

Verified buyer · November 2026