API Endpoint
POST https://sslchecker.com.tr/api/check.php
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
domain |
string | Yes | Domain name to check |
port |
integer | No | Port number (default: 443) |
Example Request
curl -X POST https://sslchecker.com.tr/api/check.php \
-H "Content-Type: application/json" \
-d '{
"domain": "google.com",
"port": 443
}'
Example Response
{
"success": true,
"data": {
"domain": "google.com",
"port": 443,
"checked_at": "2024-01-15 10:30:00",
"status": "success",
"grade": {
"grade": "A+",
"class": "grade-a-plus",
"color": "#10B981"
},
"score": 95,
"certificate": {
"subject": "CN=google.com, O=Google LLC",
"issuer": "CN=GTS CA 1C3, O=Google Trust Services LLC",
"valid_from": "2024-01-01 00:00:00",
"valid_until": "2024-04-01 00:00:00",
"is_valid": true,
"days_until_expiry": 76
},
"protocols": {
"TLSv1.3": { "supported": true },
"TLSv1.2": { "supported": true },
"TLSv1.1": { "supported": false },
"TLSv1.0": { "supported": false }
}
},
"meta": {
"api_version": "1.0",
"timestamp": "2024-01-15 10:30:00",
"request_id": "ssl_65a1234567890"
}
}
Error Codes
| Code | Description |
|---|---|
400 |
Bad request - Missing or invalid parameters |
429 |
Too many requests - Rate limit exceeded |
500 |
Server error |
Rate Limits
API usage is limited to 30 requests per minute. If you exceed this limit, you will receive a 429 error code.
Please contact us for higher limits.