?type= query parameter.
| Type | Sample | Notes |
|---|---|---|
auto | example@example.com, example, 12345678, 31c5543c1734d25c7206f5fd | Only email, username, phone number and hash can be detected automatically. For other data you should set type explicitly. |
email | example@example.com | |
domain | gmail.com | |
keyword | example | |
username | example | |
phone | 12063428631 | |
hash | 31c5543c1734d25c7206f5fd | SHA256 hash of lower-cased email. You can also truncate it to 24 characters. |
phash | 31c5543c1734d25c7206f5fd | SHA256 hash of password. You can also truncate it to 24 characters. Enterprise only. |
origin | example.com | Search info-stealer logs by the site the credentials belong to. Enterprise only. |
password | example | Enterprise only. |
Pagination
You can also specifylimit and offset query parameters. limit can’t be
bigger than 1000 and offset than 2500.
Examples
# Explicit domain search
curl "https://leakcheck.io/api/v2/query/gmail.com?type=domain&limit=500" \
-H "Accept: application/json" \
-H "X-API-Key: $LEAKCHECK_APIKEY"
from leakcheck import LeakCheckAPI_v2
api = LeakCheckAPI_v2(api_key="your_api_key_here")
# Auto-detect type
result = api.lookup(query="example@example.com")
# Lookup by email
result = api.lookup(query="example@example.com", query_type="email")
# Lookup by domain
result = api.lookup(query="gmail.com", query_type="domain")
# Lookup by phone
result = api.lookup(query="12063428631", query_type="phone")
# Lookup by SHA256 hash
result = api.lookup(query="31c5543c1734d25c7206f5fd", query_type="hash")
const lookup = async (query, type) => {
const params = new URLSearchParams(type ? { type } : {});
const response = await fetch(
`https://leakcheck.io/api/v2/query/${encodeURIComponent(query)}?${params}`,
{ headers: { "X-API-Key": process.env.LEAKCHECK_APIKEY } }
);
return response.json();
};
await lookup("example@example.com"); // auto-detected
await lookup("gmail.com", "domain"); // explicit type
await lookup("12063428631", "phone");
Hash searches let you check an email without sending it in plain text:
compute the SHA-256 of the lower-cased address and query with
type=hash.