Domain Intelligence and Analysis API

SSL Certificate Lookup

fetches the live TLS certificate chain presented by a domain.

Request Example
<?php $ch = curl_init(); curl_setopt_array($ch, [ CURLOPT_URL => "https://app.way2api.com/api/v1/domain/ssl", CURLOPT_RETURNTRANSFER => true, CURLOPT_POST => true, CURLOPT_HTTPHEADER => [ "Authorization: Bearer YOUR_API_KEY", "Content-Type: application/json" ], CURLOPT_POSTFIELDS => json_encode([ "domain_name" => "google.com" ]) ]); $response = curl_exec($ch); $httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close($ch); $data = json_decode($response, true); print_r($data);
const response = await fetch("https://app.way2api.com/api/v1/domain/ssl", { method: "POST", headers: { "Authorization": "Bearer YOUR_API_KEY", "Content-Type": "application/json" }, body: JSON.stringify({ "domain_name": "google.com" }) }); if (!response.ok) { throw new Error(`HTTP error: ${response.status}`); } const data = await response.json(); console.log(data);
curl -X POST https://app.way2api.com/api/v1/domain/ssl \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{\"domain_name\":\"google.com\"}'
$.ajax({ url: "https://app.way2api.com/api/v1/domain/ssl", type: "POST", contentType: "application/json", headers: { "Authorization": "Bearer YOUR_API_KEY" }, data: JSON.stringify({ "domain_name": "google.com" }), success: function(data) { console.log(data); }, error: function(xhr) { console.error(xhr.responseJSON); } });
const { data } = await axios.post( "https://app.way2api.com/api/v1/domain/ssl", {"domain_name":"google.com"}, { headers: { "Authorization": "Bearer YOUR_API_KEY" } } ); console.log(data);
import requests response = requests.post( "https://app.way2api.com/api/v1/domain/ssl", headers={ "Authorization": "Bearer YOUR_API_KEY", "Content-Type": "application/json" }, json={ "domain_name": "google.com" } ) print(response.status_code) print(response.json())
Response Example
200 OK Success Response
{
    "success": true,
    "message": "",
    "data": {
        "order_id": "W2A1739512345abcdef01",
        "result": {
            "domain_name": "google.com",
            "certificates": [
                {
                    "chain_order": "end_user",
                    "authentication_type": "domain",
                    "valid_from": "2026-06-29 08:37:25 UTC",
                    "valid_to": "2026-09-21 08:37:24 UTC",
                    "serial_number": "02:b0:c1:99:b5:f2:ff:96:09:5e:3c:86:1a:f4:2b:ee",
                    "signature_algorithm": "SHA256-RSA",
                    "subject": {
                        "common_name": "*.google.com",
                        "organization": ""
                    },
                    "issuer": {
                        "common_name": "WR2",
                        "organization": "Google Trust Services",
                        "country": "US"
                    },
                    "public_key": {
                        "algorithm": "ECDSA",
                        "size": "256 bit"
                    },
                    "key_usages": [
                        "digital_signature"
                    ],
                    "extended_key_usages": [
                        "server_auth"
                    ],
                    "san_dns_names": [
                        "*.google.com",
                        "google.com",
                        "*.youtube.com"
                    ]
                }
            ],
            "queried_at": "2026-08-04 13:32:43"
        }
    }
}
4xx Error Response
{
    "success": false,
    "message": "Please pass domain param correct value",
    "data": {
        "order_id": "W2A1739512345abcdef01",
        "error_code": "Invalid Param Exception"
    }
}
Common Response Codes
Code Meaning
200 OK — Request successful
400 Bad Request — Missing or invalid parameters
401 Unauthorized — Invalid or missing API key
429 Too Many Requests — Rate limit exceeded
500 Server Error — Try again later
Ready to integrate?

Start with free trial API calls. No credit card required.

Get API Key — Free Browse All APIs
Way2API Way2API
Contact Way2API

Login