SSL Lookup API - Check and Monitor SSL Certificate Chains
The SSL lookup API allows you to quickly verify SSL certificate chains, check expiration dates, and access detailed issuer information. With this API, you can ensure your SSL certificates are always valid, secure, and fully compliant. Easily perform a domain certificate lookup to retrieve comprehensive details about SSL certificates, including their validity, issuer information, and encryption methods. Keep your certificates up-to-date and properly configured to avoid security risks and downtime.
By utilizing our SSL certificate lookup feature, you can efficiently check the expiration dates of SSL certificates across multiple domains. This is especially valuable for IT administrators and web developers who need to maintain certificate compliance and avoid potential security risks associated with expired or misconfigured certificates. The API also supports retrieving the complete SSL certificate chain, from the domain certificate to the root Certificate Authority (CA), providing a clear view of the entire certification path.
Features
SSL Certificate Chain Lookup
Retrieve the complete chain of SSL certificates, from the domain certificate to the root Certificate Authority (CA). This feature helps verify the integrity and trustworthiness of the entire certification path, ensuring a secure certification chain.
Detailed SSL Certificate Lookup
Access comprehensive details about SSL certificates, including expiry date, issuer information, and encryption methods. This feature is essential for confirming that your certificates are correctly configured and up-to-date.
Well-Structured & Raw SSL Data
Access both well-structured and raw SSL certificate data through our API. The well-structured data provides organized and detailed information about SSL certificates, ideal for integration and analysis. For advanced use cases such as machine learning models or custom processing, you can retrieve the raw, unprocessed SSL data. This flexibility allows you to leverage the data for a wide range of applications.
API Endpoint
Access SSL Certificate Details without Chain
To retrieve comprehensive SSL certificate information without including the chain, use the following endpoint:
Retrieve SSL Certificate Chain
Obtain the complete SSL certificate chain from the root Certificate Authority (CA) to the end-user certificate with the following endpoint:
How to Guides
Domain-Specific Check
To perform domain-specific checks and obtain detailed SSL certificate information, including expiration dates, include the domainName request parameter in your API request. Specify the hostname for which you require the SSL certificate details. After sending the request, review the response to access comprehensive information about the SSL certificate, such as expiry dates and other crucial data. This approach enables efficient management and monitoring of SSL certificates for individual domains.
# Check SSL Certificate for a host-name
curl -X 'GET' 'https://api.apifreaks.com/v1.0/domain/ssl/live?domainName=google.com&apiKey=API-KEY'
# Response
{
"domainName": "google.com",
"queryTime": "2024-08-20 08:37:01",
"sslCertificates": [
{
"chainOrder": "end-user",
"authenticationType": "domain",
"validityStartDate": "2024-07-30 12:32:53 UTC",
"validityEndDate": "2024-10-22 12:32:52 UTC",
"serialNumber": "71:8d:f8:a4:d1:48:8a:78:09:cc:ed:27:10:7d:81:84",
"signatureAlgorithm": "SHA256-RSA",
"subject": {
"commonName": "*.google.com"
},
"issuer": {
"commonName": "WR2",
"organization": "Google Trust Services",
"country": "US"
},
"publicKey": {
"keySize": "256 bit",
"keyAlgorithm": "ECDSA",
"pemRaw": "-----BEGIN PUBLIC KEY-----\nMFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE5pmvk0aXn2OXWW5QrASzaMP+E+cwyEFf2INKxtGITffWsIyD2qFFdLbALW6Xz1tDkK+0OELhrCFHyF+RCl3zsQ==\n-----END PUBLIC KEY-----\n"
},
"extensions": {
"authorityKeyIdentifier": "DE:1B:1E:ED:79:15:D4:3E:37:24:C3:21:BB:EC:34:39:6D:42:B2:30",
"subjectKeyIdentifier": "B6:08:C9:95:06:20:D1:F4:31:6A:19:57:B7:CD:94:87:5B:7A:CA:83",
"keyUsages": [
"Digital Signature"
],
SSL Certificate Chain Lookup
Include the domainName request parameter to perform a comprehensive SSL certificate chain lookup from the root Certificate Authority (CA) to the end-user certificate. Use the SSL Certificate Chain Lookup API to retrieve the complete certification path, ensuring you get detailed information about each certificate in the chain. This approach allows for thorough verification of SSL certificates, providing valuable insights into the entire certification hierarchy for enhanced security management.
# Get all the certificates in the chain from the root to the end-user
curl -X 'GET' 'https://api.apifreaks.com/v1.0/domain/ssl/live/chain?domainName=chatgpt.com&apiKey=API-KEY'
# Response
{
"domainName": "chatgpt.com",
"queryTime": "2026-07-02 08:29:02",
"sslCertificates": [
{
"chainOrder": "end-user",
"authenticationType": "domain",
"validityStartDate": "2026-05-8 23:52:00 UTC",
"validityEndDate": "2026-08-7 00:51:52 UTC",
"serialNumber": "af:f3:6a:db:23:3c:a4:24:0e:44:77:83:1a:c1:41:ff",
"signatureAlgorithm": "ECDSA-SHA256",
"subject": {
"commonName": "chatgpt.com"
},
"issuer": {
"commonName": "WE1",
"organization": "Google Trust Services",
"country": "US"
},
"publicKey": {
"keySize": "256 bit",
"keyAlgorithm": "ECDSA",
"pemRaw": "-----BEGIN PUBLIC KEY-----
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAECPgbfvExt94B8MHCYyV64wukIW4jNemaMd7BpCSZ8Svd6jJmaJ2CRpJh/0qtBPtJOB6gm0Qx0gtOl15P2Nxgyw==
-----END PUBLIC KEY-----
"
},
"extensions": {
"authorityKeyIdentifier": "90:77:92:35:67:C4:FF:A8:CC:A9:E6:7B:D9:80:79:7B:CC:93:F9:38",
"subjectKeyIdentifier": "0B:11:C1:75:34:C1:B2:BE:E2:EE:51:CC:DA:49:A0:B9:B3:4D:74:DE",
Access Both Raw and Structured SSL Data
To access raw SSL data in addition to structured information, set the sslRaw request parameter to true. This option is available for both API endpoints-whether you are retrieving SSL certificate details with or without the chain. When enabled with the chain endpoint, the API will provide raw SSL data for the entire certificate chain, from the root Certificate Authority (CA) to the end-user certificate. This feature allows for comprehensive analysis, providing both structured and raw data to meet various needs, including advanced processing and detailed security assessments.
# Get SSL Raw data along with structured SSL data for each SSL certificate in the chain
curl -X 'GET' 'https://api.apifreaks.com/v1.0/domain/ssl/live/chain?sslRaw=true&domainName=chatgpt.com&apiKey=API-KEY'
# Response
{
"domainName": "chatgpt.com",
"queryTime": "2026-07-02 08:30:10",
"sslCertificates": [
{
"chainOrder": "end-user",
"authenticationType": "domain",
"validityStartDate": "2026-05-8 23:52:00 UTC",
"validityEndDate": "2026-08-7 00:51:52 UTC",
"serialNumber": "af:f3:6a:db:23:3c:a4:24:0e:44:77:83:1a:c1:41:ff",
"signatureAlgorithm": "ECDSA-SHA256",
"subject": {
"commonName": "chatgpt.com"
},
"issuer": {
"commonName": "WE1",
"organization": "Google Trust Services",
"country": "US"
},
"publicKey": {
"keySize": "256 bit",
"keyAlgorithm": "ECDSA",
"pemRaw": "-----BEGIN PUBLIC KEY-----
MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAECPgbfvExt94B8MHCYyV64wukIW4jNemaMd7BpCSZ8Svd6jJmaJ2CRpJh/0qtBPtJOB6gm0Qx0gtOl15P2Nxgyw==
-----END PUBLIC KEY-----
"
},
"extensions": {
"authorityKeyIdentifier": "90:77:92:35:67:C4:FF:A8:CC:A9:E6:7B:D9:80:79:7B:CC:93:F9:38",
"subjectKeyIdentifier": "0B:11:C1:75:34:C1:B2:BE:E2:EE:51:CC:DA:49:A0:B9:B3:4D:74:DE",
Pricing
To perform an SSL certificate lookup through the API, you will need API credits. Credits are only deducted for successful queries, defined by a 2xx status code. If a request results in a 4xx or 5xx status code, no credits will be deducted, and any credits already charged will be refunded.
- SSL Certificate Lookup: For each successful request without the certificate chain, 16 credits will be charged.
- SSL Certificate Chain Lookup: For each successful request 30 credits will be charged.
Utilize the Credits Usage API to efficiently monitor your recent consumption of both one-off and subscription credits. This API provides a streamlined way to track and manage your credit usage, ensuring you stay informed about your remaining balance and can optimize your resource allocation effectively.