Network & DNS 5 credits NETWORK

SSL Certificate Check API

Inspect SSL/TLS certificates for any HTTPS host via REST API. Returns issuer, subject, valid-from and valid-to dates, days remaining until expiry, Subject Alternative Names (SANs), and validity status — without needing openssl on the command line.

Try it live →

How it works

POST a hostname (without https://). The API establishes a TLS connection, extracts the certificate details, computes days until expiry, and returns a structured object with all relevant certificate fields.

Use cases

API Reference

POST https://slopshop.gg/v1/net-ssl-check
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json

Input parameters

ParameterTypeRequiredDescription
url / domain string required The URL or domain name to query

Example response

{
  "data": {
    "records": [
      "93.184.216.34"
    ],
    "ttl": 86400
  },
  "meta": {
    "credits_used": 5,
    "engine": "real",
    "ms": 4
  }
}

Examples

Three real-world scenarios showing how developers use SSL Certificate Check in production.

Example 1
Monitor cert expiry
Check days remaining on an SSL certificate before it expires.
curl -X POST https://slopshop.gg/v1/net-ssl-check \
  -H "Authorization: Bearer $SLOPSHOP_KEY" \
  -H "Content-Type: application/json" \
  -d '{"host": "github.com"}'
Example 2
Verify cert after renewal
Confirm a new certificate is installed and covers all required SANs.
curl -X POST https://slopshop.gg/v1/net-ssl-check \
  -H "Authorization: Bearer $SLOPSHOP_KEY" \
  -H "Content-Type: application/json" \
  -d '{"host": "api.myproduct.com"}'
Example 3
Audit third-party service cert
Check certificate details of an external API before integrating.
curl -X POST https://slopshop.gg/v1/net-ssl-check \
  -H "Authorization: Bearer $SLOPSHOP_KEY" \
  -H "Content-Type: application/json" \
  -d '{"host": "api.stripe.com"}'

Code examples

curl

curl -X POST https://slopshop.gg/v1/net-ssl-check \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input": "your data here"}'

Python

import requests

response = requests.post(
    "https://slopshop.gg/v1/net-ssl-check",
    headers={"Authorization": "Bearer YOUR_API_KEY"},
    json={"input": "your data here"}
)
result = response.json()
print(result["data"])

Node.js

const response = await fetch("https://slopshop.gg/v1/net-ssl-check", {
  method: "POST",
  headers: {
    "Authorization": "Bearer YOUR_API_KEY",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({ input: "your data here" })
});
const { data } = await response.json();
console.log(data);

CLI

# Install the Slopshop CLI
npm install -g slopshop

# Set your API key
export SLOPSHOP_KEY=your_api_key

# Call net-ssl-check
slop net-ssl-check '{"input": "your data here"}'

Pricing

Credits per call
5
credits
Cost per call
$0.005
at Starter tier
Tier
NETWORK
Makes network calls

Credits are purchased in bundles starting at $1 for 1,000 credits. All compute APIs like this one use 5 credits per call — that's $0.005. See all pricing tiers.

Related APIs in Network & DNS

View the full API catalog · Try in playground · Documentation