---
title: "Security Headers & SSL Checker API"
slug: security-headers-ssl-checker
url: https://apyhub.com/martin10291/service/security-headers-ssl-checker
provider: Martin Petrov
categories: [Verification Kit, Safety Kit]
tags: [security-headers, ssl-check, tls-certificate, website-security, certificate-expiry]
auth: api_key
version: 1.0
service_type: sync
endpoints: 1
atoms: 100
mcp: true
---

# Security Headers & SSL Checker API

Security Headers Checker API checks a URL, host, or host list for headers, TLS, status, redirects, and certificate expiry. Free tier, no card.

## Endpoints

| Method | URL | Description | Atoms |
| --- | --- | --- | --- |
| POST | `https://api.eu.apyhub.com/martin10291/security-headers-ssl-checker` | What it does Checks one or more websites for security headers and SSL certificate-related informati… | 100 |

## Endpoint reference

### Security Headers & SSL Certificate Checker API

`POST https://api.eu.apyhub.com/martin10291/security-headers-ssl-checker` · 100 atoms · accepts `application/json` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `url` | body | string | no | Optional shortcut for one URL, for example https://example.com/. Same as a one-entry Hosts list. |
| `host` | body | string | no | Optional shortcut for one website, same as a one-entry Hosts list. Handy for API calls with a single value. |
| `hosts` | body | array of string | 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; priv… |
| `certWarnDays` | body | 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. Example: `30`. |

#### Quickstart

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

```bash
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`.

```json
{
  "billed": 1,
  "count": 1,
  "items": [
    {
      "url": "https://example.com/",
      "host": "example.com",
      "grade": "A",
      "score": 100,
      "status": "ok"
    }
  ]
}
```

## About

## 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.

## Usage

Base URL: `https://api.eu.apyhub.com` (default region — see
`GET https://apyhub.com/api/public/regions` for the rest).

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyhub.com/martin10291/service/security-headers-ssl-checker
