Password Leaks API
Description
The Password Leaks API allows users to check if a specified password was found in breaches. The request must include the query parameter and apikey.
Endpoint
POST /api/get_password_leaks.php
Required Headers
Name
Description
Content-Type
Must be set to application/json
Parameters
Name
Type
Required
Default
Description
query
string
Yes
N/A
Password value you wanted to check to detect if it has been seen in leaks.
apikey
string
Yes
N/A
Your API key.
Sample Request
Request URL
POST /api/get_password_leaks.php
{
"query": "12345",
"apikey": "yourapikey"
}
Example Success Response
{"breached":true}
Example Error Response
{"error":"Invalid type."}
Code Examples
Example with Curl
curl -X POST https://whiteintel.io/api/get_password_leaks.php \
-H "Content-Type: application/json" \
-d '{
"apikey": "yourapikey",
"query": "12345"
}'
Example with Python
import requests
url = "https://whiteintel.io/api/get_password_leaks.php"
payload = {
"apikey": "yourapikey",
"query": "12345"
}
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)
Last updated