Customer Leaks API

Description

The Customer Leaks API allows users to retrieve leaks associated with a specific query (e.g., domain or apk). The request must include the query parameter and apikey. Other parameters are optional and can be used to include system information of compromised devices or to specify a custom date range.

Endpoint

POST /api/get_customer_leaks.php

Required Headers

NameDescription

Content-Type

Must be set to application/json

Parameters

NameTypeRequiredDefaultDescription

query

string

Yes

N/A

The query to search for leaks (e.g., example.com, com.binance.app)

apikey

string

Yes

N/A

Your API key.

include_system_info

int

No

0

Include system information of compromised devices (0 or 1)

start_date

string

No

1 week before current date

The start date for retrieving leaks in YYYY-MM-DD format

end_date

string

No

Current date

The end date for retrieving leaks in YYYY-MM-DD format

Sample Request

Request URL

POST /api/get_customer_leaks.php

{
    "query": "example.com",
    "include_system_info": 0,
    "start_date": "2024-05-01",
    "end_date": "2024-05-08"
}

Example Success Response

{"total_leaks":2,"remaining_daily_api_calls":176,"data":[{"url":"https:\/\/example.com\/login","username":"nonexists@gmail.com","password":"*****","log_date":"2024-05-16"}]}

Example Error Response

{"error":"Invalid type."}

Code Examples

Example with Curl

curl -X POST https://whiteintel.io/api/get_customer_leaks.php \
     -H "Content-Type: application/json" \
     -d '{
           "apikey": "yourapikey",
           "query": "example.com",
           "include_system_info": 0,
           "start_date": "2023-05-01",
           "end_date": "2023-05-08"
         }'

Example with Python


import requests

url = "https://whiteintel.io/api/get_customer_leaks.php"
payload = {
    "apikey": "yourapikey",
    "query": "example.com",
    "include_system_info": 0,
    "start_date": "2023-05-01",
    "end_date": "2023-05-08"
}
headers = {
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

if response.status_code == 200:
    print("Response:", response.json())
else:
    print("Failed to retrieve customer leaks:", response.status_code, response.text)