apyhub
Back
▣ VERIFICATION KIT · SAFETY KIT

Security Headers & SSL Checker API

What it does

The Security Headers Checker API checks one website or up to 50 hosts for security headers and SSL details. Send url, host, or hosts, and set certWarnDays from 1 to 365 if you want soon-to-expire certificates flagged earlier.

Each result row can include the site address, host, grade, score, status, timing, redirect count, final URL, check time, and issue count. It can also return headers, cookies, tls, certificate, and httpToHttps data for deeper checks.

Teams use the Security Headers Checker API for audits, CI checks, and internal web reviews. They scan public sites, compare HTTPS setup, and spot weak headers before release.

The API only checks the front page you provide. Private, local, and own addresses are refused and returned as error rows.

POST
Security Headers & SSL Certificate Checker API
https://api.eu.apyhub.com/martin10291/security-headers-ssl-checker

QUICKSTART

GUIDE

Quickstart

Check one website’s security headers and SSL status by sending a single URL.

curl -X POST "https://api.eu.apyhub.com/martin10291/security-headers-ssl-checker" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://example.com/"}'

What you'll get back

Returns a JSON object with billed and count integers, plus an items array of result objects. Each item can include fields like url, host, grade, score, issues, status, seconds, finalUrl, checkedAt, redirects, httpStatus, issueCount, tls, certificate, headers, cookies, and httpToHttps.

{
  "billed": 1,
  "count": 1,
  "items": [
    {
      "url": "https://example.com/",
      "host": "example.com",
      "grade": "A",
      "score": 100,
      "status": "ok"
    }
  ]
}
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
Optional shortcut for one URL, for example https://example.com/. Same as a one-entry Hosts list.
Optional shortcut for one website, same as a one-entry Hosts list. Handy for API calls with a single value.
hosts
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.

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

ParameterTypeMandatoryDescription
urlStringNoOptional shortcut for one URL, for example https://example.com/. Same as a one-entry Hosts list.
hostStringNoOptional shortcut for one website, same as a one-entry Hosts list. Handy for API calls with a single value.
hostsString ArrayNoWebsites 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.
certWarnDaysIntegerNoA 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.

ParameterTypeMandatoryDescription
billedIntegerYesUnits charged for this call: result rows only; not-found / unavailable / invalid rows are free.
countIntegerYesNumber of rows in items.
itemsObject ArrayYesArray 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.
▣ 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.