About this endpoint
What it does
Audits the security headers present on the webpage at the given URL and returns a JSON object describing the audit result. The response includes a score, a details object, and booleans indicating whether specific headers were found.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| url | String | Yes | URL of the webpage to extract, audit, or validate content from. Must be an http or https URI. |
Response
Returns a JSON object with a score string, a details object whose values are strings, and boolean flags for the presence of specific security headers.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| score | String | No | Audit score returned by the service. |
| details | Object | No | A string-to-string map with audit details. |
| has_csp | Boolean | No | Whether a Content Security Policy header is present. |
| has_hsts | Boolean | No | Whether an HSTS header is present. |
| has_x_content_type | Boolean | No | Whether an X-Content-Type-Options header is present. |
| has_referrer_policy | Boolean | No | Whether a Referrer-Policy header is present. |
| has_x_frame_options | Boolean | No | Whether an X-Frame-Options header is present. |