Look up an email, username, phone, hash or domain and get the matching breach rows.
GET/v2/query/{query}
- Takes: Email
- Takes: Username
- Takes: Phone number
- Takes: Domain
- Passive: the target is not contacted
- Plan: Paid plan; password, phash and origin searches need Enterprise
Returns matching rows, each with a source (breach name and date, plus flags) and the data fields found. Type is detected automatically for email, username, phone and hash; domain, keyword, origin and password must be set with type. Requires an API key and uses account quota.
Path parameters
queryEmail, username, phone, hash or domain. Minimum 3 characters.
Query parameters
typeSearch type. Auto-detected for email, username, phone and hash.
limitRows to return, maximum 1000.
offsetRows to skip for paging, maximum 2500.
Response fields · 10ShowHide
success
Whether the request succeeded
found
Number of rows found and returned
quota
Queries remaining on the account
result[]
Matching rows
name
Name of the breach
breach_date
Breach date (YYYY-MM)
unverified
Flag: breach is unverified
passwordless
Flag: breach has no passwords
compilation
Flag: source is a compilation
fields[]
Names of the data fields present in the row
curl 'https://leakcheck.io/api/v2/query/user%40example.com' \
-H 'X-API-Key: YOUR_API_KEY'{
"success": true,
"found": 1,
"quota": 400,
"result": [
{
"email": "user@example.com",
"source": {
"name": "ExampleBreach.example",
"breach_date": "2019-07",
"unverified": 0,
"passwordless": 0,
"compilation": 0
},
"first_name": "Alex",
"username": "alex-example",
"fields": [
"first_name",
"username"
]
}
]
}