Developer Libraries

cURL
API

Python
API SDK

Javascript
API

C#
API

Go
API SDK

Java
API

Swift
API

C++
API

Node JS
API

PHP
API

Ruby
API

Third-party Integrations

make logo Make

MISP

MS Security Copilot

Check SSL Certificate Info Using WhoisFreaks Python SDK

The WhoisFreaks Python SDK allows you to fetch SSL certificate details for any domain, including the certificate’s validity period, issuing authority, and other essential information. This helps ensure secure communication, verify website authenticity, and is crucial for maintaining web security and protecting online transactions.


SSL Lookup

This package is for performing any type of SSL lookup.

To utilize the WhoisFreaks Python SDK for SSL Lookup of domain names, follow these steps:

First, ensure that Python and the WhoisFreaks Python SDK are installed on your system. To install the necessary modules, please visit the Installation Steps page.

In all lookups, replace "your_api_key" with your actual API key.

  • SSL Live Lookup

    ssl_live_lookup retrieves live SSL information for a specific domain using the Python SDK's SSL endpoint.

    python Copy
                                ssl_live_lookup(api_key='your_api_key', domain_name='google.com')
                            

    Parameters:

    1. domain_name: The domain name for which live SSL information is requested (e.g., "example.com").
    2. chain: A boolean flag indicating whether to include SSL certificate chain information.
    3. ssl_raw: A boolean flag indicating whether to include raw SSL certificate information.
    4. format: Two response formats are available: JSON and XML. If the 'format' parameter is not specified, JSON will be used by default.
    5. api_key: Get your API key from our billing dashboard.

    Returns:

    1. Success: A pointer to a domain_ssl_info struct containing live SSL information.
    2. Error: A JSON string containing the error structure if an API error occurs, or 'nil' if the request fails.
    For a comprehensive details of response fields, please visit the SSL Live Lookup Documentation.

    Example Usage:

    python Copy
                                from whoisfreaks import WhoisfreaksApi
    from whoisfreaks.core.api_error import ApiError
    
    client = WhoisfreaksApi()
    
    try:
        response = client.ssl_live_lookup(api_key='your_api_key', domain_name='google.com')
        response = {k: v for k, v in response.dict().items() if v is not None}     # Filtering the Null values
    
        print(response)
    except ApiError as e:
        print(e.body)
                            

    Replace "google.com" with the domain you wish to query.

To perform other lookups using the Python SDK, click on one of the related options below.


Visit the official WhoisFreaks Python SDK documentation for SSL certificate lookups and management.

Python SDK Integration

WhoisFreaks Python SDK

Use this powerful Python-based SDK to easily integrate, interact with, and manage data from the WhoisFreaks API seamlessly.

whoisfreaks.docs.buildwithfern.com