Integrate the SSL check system into your own application. Get started with the examples below.
The API is currently open and does not require a key, but a rate limit is applied for fair usage.
Rate Limit: 20 requests per minute per IP
The base URL for all API requests is below.
GET /check_ssl.php
| Parameter | Type | api_param_desc | Required |
|---|---|---|---|
domain |
String | Domain address to check (e.g., example.com) | Yes |
curl -X POST -d "domain=google.com" -d "csrf_token=your_csrf_token" "https://your-domain.com/check_ssl.php"
<?php
$domain = 'google.com';
// CSRF token'ınızı oturumdan almanız gerekir
$csrf_token = 'your_session_csrf_token';
$apiUrl = "https://your-domain.com/check_ssl.php";
$ch = curl_init($apiUrl);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query([
'domain' => $domain,
'csrf_token' => $csrf_token
]));
$response = curl_exec($ch);
curl_close($ch);
$data = json_decode($response, true);
print_r($data);
?>
const formData = new FormData();
formData.append('domain', 'google.com');
// CSRF token'ınızı bir yerden almanız gerekir, belki bir meta etiketinden
formData.append('csrf_token', 'your_csrf_token');
fetch('https://your-domain.com/check_ssl.php', {
method: 'POST',
body: formData
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
| Field Name | Data Type | Description |
|---|---|---|
domain | String | The queried domain name. |
status.valid | Boolean | Current validity status of the certificate (true/false). |
status.expired | Boolean | Whether the certificate has expired (true/false). |
status.days_until_expiry | Integer | Number of days remaining until the certificate expires. |
certificate_info.issuer | String | The name of the authority that issued the certificate. |
certificate_info.organization | String | The name of the organization that owns the certificate. |
certificate_primary_domain | String | The primary domain name (Common Name) for which the certificate was issued. |
network_info.ip_address | String | The server IP address to which the domain name resolves. |
network_info.additional_domains | Array | Other domain names covered by the certificate (Subject Alternative Names). |
dates.start_date | String | The start date of the certificate's validity. |
dates.expiry_date | String | The end date of the certificate's validity. |
| HTTP Status Code | Reason |
|---|---|
| 400 Bad Request | The `domain` parameter is missing or empty in the request. |
| 400 Bad Request | The `domain` parameter is in an invalid format. |
| 400 Bad Request | The specified domain name could not be found or has no DNS record. |
| 400 Bad Request | Could not establish an SSL connection to the domain (port 443). |