Authentication

API authentication is done by providing the api-key http header on your requests.

You can find your API key in your profile under Settings > API key :

diy

Install the official Python client (v1.1.0+):

1pip install leakix>=1.1.0
1#!/usr/bin/env bash
 2API_KEY="YOUR_API_KEY"
 3DOMAIN="leakix.net"
 4
 5curl -H "api-key: ${API_KEY}" \
 6  -H 'accept: application/json' \
 7  "https://leakix.net/domain/${DOMAIN}"
 
1from leakix import Client
2
3client = Client(api_key="YOUR_API_KEY")
4response = client.get_domain("leakix.net")
5print(response.json())