About this endpoint
What it does
Checks one or more websites for security headers and SSL certificate-related information, and returns a row per checked host in an items array. You can submit a single url/host shortcut or a hosts list; the response also includes billing and row count metadata.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| url | String | No | Optional shortcut for one URL, for example https://example.com/. Same as a one-entry Hosts list. |
| host | String | No | Optional shortcut for one website, same as a one-entry Hosts list. Handy for API calls with a single value. |
| hosts | String Array | No | Websites to check, up to 50 per run. Bare domains (example.com), hosts with a port (example.com:8443) or full URLs (https://example.com/) are accepted. Only the front page you give is requested; private, local and our own addresses are refused and come back as a row with error. |
| certWarnDays | Integer | No | A certificate that expires in fewer days than this is flagged as expiring soon (expiringSoon true, an issue is added, and monitor mode reports it). Between 1 and 365. |
Response
Returns a JSON object with billed and count integer fields, and an items array of objects. Each item can include row-level check results such as tls, url, host, grade, score, issues, status, cookies, headers, seconds, finalUrl, checkedAt, redirects, httpStatus, issueCount, certificate, and httpToHttps.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| billed | Integer | Yes | Units charged for this call: result rows only; not-found / unavailable / invalid rows are free. |
| count | Integer | Yes | Number of rows in items. |
| items | Object Array | Yes | Array of result rows. Each item may include tls, url, host, grade, score, issues, status, cookies, headers, seconds, finalUrl, checkedAt, redirects, httpStatus, issueCount, certificate, and httpToHttps. |


