apyhub
SECURITY & PRIVACY · SEO

Security Header Full Audit API

What it does

Website Security Header Audit checks a URL and returns a score, a header-by-header summary, and recommendations for fixing missing or weak browser security controls.

Send a website URL in the request body. The service evaluates the site and responds with the URL, an integer score, a security_headers object, and a recommendations array of strings. The header summary includes csp, hsts, and x_frame_options, with values such as present or missing so you can see which protections are in place at a glance.

Use it when you need to audit production sites, gate a release, or track security hardening across a portfolio of domains. It is useful for CI checks, compliance reviews, and lightweight security monitoring where you want a quick verdict instead of a full browser-based scan.

The response is intentionally compact, making it easy to store, compare over time, or surface in internal dashboards. If a site is missing important headers, the recommendations list points to the next remediation step, such as adding a Content-Security-Policy header.

POST
Audit website security headers
https://api.eu.apyverse.com/namastesumalya/audit-website-security-headers

QUICKSTART

GUIDE

Quickstart

Check a website’s security headers by sending its URL in a JSON body.

curl -X POST "https://api.eu.apyverse.com/namastesumalya/audit-website-security-headers" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"url":"example.com"}'

What you'll get back

Returns a JSON object with these top-level fields: url is the checked website URL, score is an integer security score, recommendations is an array of string suggestions, and security_headers is an object with header status values such as csp, hsts, and x_frame_options.

{
  "url": "example.com",
  "score": 67,
  "recommendations": ["Add Content-Security-Policy header"],
  "security_headers": {
    "csp": "missing",
    "hsts": "present",
    "x_frame_options": "present"
  }
}
TRY ITLIVE · 100 ATOMS
Loading your default key…
The full key is used to call the gateway and stays in this tab — never sent to orbit or saved.
body*

About this endpoint

What it does

Audits a website’s security headers for the URL you provide in the request body and returns a JSON object with the audit results for that URL. The response includes the scanned url, an integer score, a list of recommendations, and a security_headers object with the detected header statuses.

Request Body

ParameterTypeMandatoryDescription
urlStringYesThe website URL or hostname to audit.

Response

Returns a JSON object with url as a string, score as an integer, recommendations as a string array, and security_headers as an object. The security_headers object contains csp, hsts, and x_frame_options string fields.

ParameterTypeMandatoryDescription
urlStringNoThe website URL that was audited.
scoreIntegerNoThe audit score returned by the service.
recommendationsString ArrayNoA list of recommendation strings for improving the website’s security headers.
security_headersObjectNoThe detected security header statuses.
security_headers.cspStringNoThe status of the Content-Security-Policy header.
security_headers.hstsStringNoThe status of the Strict-Transport-Security header.
security_headers.x_frame_optionsStringNoThe status of the X-Frame-Options header.

Body

Name
Type
Description
bodyREQUIRED
object
▣ COMMON ERRORS

Errors any endpoint can return

400bad_request

Required parameter missing or malformed body.

401unauthorized

API key missing, revoked, or not authorized for this service.

429rate_limited

Your plan's per-second rate exceeded. Retry with exponential backoff.

503upstream_busy

Backend temporarily unavailable. Try again in a few seconds.