Skip to content

SSL Information API Documentation

Introduction

The SSL Information API provides details about the SSL certificate of a given domain. This documentation outlines how to use the API, including endpoint information, request formats, and sample responses.

Base URL

The base URL for the API is https://seox.p.rapidapi.com/.

Endpoint

  • URL: /ssl/:domain
  • Method: GET

Path Parameters

  • :domain (required): The domain for which you want to retrieve SSL information.

Response

The API responds with a JSON object containing SSL certificate information.

Example Response:

json
{
  "sslInfo": {
    "host": "example.com",
    "port": 443,
    "status": "OK",
    "daysRemaining": 90,
    "validFrom": "2023-01-01T00:00:00Z",
    "validTo": "2023-04-01T00:00:00Z",
    "issuer": "Let's Encrypt Authority X3",
    "subject": "example.com",
    // Additional SSL certificate details...
  }
}

400 Bad Request:

If the domain parameter is missing. json { "error": "Domain is required" }

500 Internal Server Error:

If an unexpected error occurs during the SSL information retrieval process. json { "error": "Internal Server Error" }

Example Usage

cURL Command

bash
curl "https://seox.p.rapidapi.com/ssl/example.com"

JavaScript (axios)

javascript
const axios = require('axios');

const domain = 'example.com';

axios.get(`https://seox.p.rapidapi.com/ssl/${domain}`)
  .then(response => {
    console.log(response.data);
  })
  .catch(error => {
    console.error(error.response ? error.response.data : error.message);
  });

Released under the MIT License.