API Endpoint
POST https://sslchecker.com.tr/api/check.php
İstek Parametreleri
| Parametre | Tip | Zorunlu | Açıklama |
|---|---|---|---|
domain |
string | Evet | Kontrol edilecek domain adı |
port |
integer | Hayır | Port numarası (varsayılan: 443) |
Örnek İstek
curl -X POST https://sslchecker.com.tr/api/check.php \
-H "Content-Type: application/json" \
-d '{
"domain": "google.com",
"port": 443
}'
Örnek Yanıt
{
"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"
}
}
Hata Kodları
| Kod | Açıklama |
|---|---|
400 |
Geçersiz istek - Eksik veya geçersiz parametreler |
429 |
Çok fazla istek - Rate limit aşıldı |
500 |
Sunucu hatası |
Kullanım Limitleri
API kullanımı dakikada 30 istek ile sınırlıdır. Bu limiti aşarsanız, 429 hata kodu alırsınız.
Daha yüksek limitler için lütfen bizimle iletişime geçin.