About this endpoint
What it does
Audits the security headers present on the webpage at the provided URL and returns a JSON object with a score, a details object, and boolean flags indicating whether specific headers are present.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| url | String | Yes | URL of the webpage to extract, audit, or validate content from (http/https only). Format: URI. |
Response
Returns a JSON object with score as a string, details as an object of string values, and boolean fields for has_csp, has_hsts, has_x_content_type, has_referrer_policy, and has_x_frame_options.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| score | String | No | Audit score. |
| details | Object | No | A map of string values with additional audit details. |
| has_csp | Boolean | No | Indicates whether a Content-Security-Policy header is present. |
| has_hsts | Boolean | No | Indicates whether an HSTS header is present. |
| has_x_content_type | Boolean | No | Indicates whether an X-Content-Type-Options header is present. |
| has_referrer_policy | Boolean | No | Indicates whether a Referrer-Policy header is present. |
| has_x_frame_options | Boolean | No | Indicates whether an X-Frame-Options header is present. |