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

NameDescription

Content-Type

Must be set to application/json

Parameters

NameTypeRequiredDefaultDescription

query

string

Yes

N/A

The query to search for leaks (e.g., test@example.com) Must be in email format.

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