Last Leaks API
The Last Leaks endpoint returns the most recent credential exposures for a target domain across both consumer and corporate breach categories within a configurable look-back window. It is designed for incremental ingestion and continuous monitoring workflows where only newly observed leaks are required.
In a single call, this endpoint can surface:
Consumer leaks — credentials captured on the queried website or its subdomains.
Corporate leaks — credentials whose username belongs to the queried organization's email domain, regardless of which third-party service they were used on.
Results are sourced from infostealer logs and combolists and can be filtered by both source type and breach category.
Endpoint
POST https://api.whiteintel.io/get_last_leaks.phpHeaders
Content-Type
application/json
Authentication
Authentication is performed via an API key passed in the request body. Your API key can be retrieved from either the Organizations page or the Profile page on the Whiteintel platform.
{
"apikey": "YOUR_API_KEY"
}Requests without a valid API key return 403 Forbidden.
Access Requirements
This endpoint is available to Enterprise and Threat Intelligence subscription tiers. Lower tiers will receive a 403 Forbidden response with an upgrade message.
Quotas
Each API key is provisioned with a daily request quota. Remaining quota is returned in every successful response under remaining_daily_calls. Once the daily quota is exhausted, requests return a quota-exceeded message until the counter resets.
Empty result responses do not consume a daily quota credit.
Request Parameters
apikey
string
Yes
—
Your Whiteintel API key.
query
string
Yes
—
The target domain or subdomain. The endpoint will detect whether the value is a subdomain and adjust the lookup accordingly.
days
integer
Yes
—
Look-back window in days. Allowed range: 1–30. Records added to the platform within this window are returned.
data_type
string
No
all
Source type filter. One of all, stealer, combolist.
breach_type
string
No
all
Breach category filter. One of all, consumer, corporate.
mask_password
integer
No
0
When set to 1, the password field is omitted from results.
limit
integer
No
500
Maximum number of records to return. Allowed range: 1–5000.
page
integer
No
1
Page number for pagination.
sortBy
string
No
index_date
Retrieve results sorted by index_dateor log_date.
Notes on data_type and breach_type
data_type and breach_typeThe two filters are orthogonal and can be combined freely:
data_type
The source of the credential record — whether it came from an infostealer log (stealer) or a credential combolist (combolist).
breach_type
The subject of the credential record — whether it belongs to a consumer of the queried site (consumer) or an employee of the queried organization (corporate).
Setting either filter to all removes that dimension from the filter. Using data_type=all and breach_type=all returns the broadest possible result set for the configured look-back window.
Notes on sortBy
sortByBy default, results are sorted by index date — the moment our engine processes and indexes the detected data. Because of how the dark web economy operates around stealer logs and credential leaks, older breach dates can surface in fresh indexing batches. Sorting by index date ensures you see every newly discovered entry, even if the underlying incident happened months or years ago.
Set sortBy to log_date to sort by root incident date instead — the time the credential was originally compromised. This returns the most recent breaches first, but you may miss older entries that were only recently added to our index.
When to use each:
index_date(default): continuous monitoring, alerting pipelines, and any workflow where you must not miss newly indexed datalog_date: investigations or reports focused on the freshest real-world incidents
Notes on query
querySupply either a registrable domain (e.g. acme.com) or a specific subdomain (e.g. mail.acme.com). The endpoint will route the lookup automatically. For corporate breach matching, only the registrable domain portion is used; subdomains are relevant only for consumer breach matching.
System Information
Stealer records returned by this endpoint always include host-level system information (hostname, ip, malware_path, anti_virus) when available. This is enabled by default and is not configurable via request parameters.
Request Example
Response Schema
Success Response
success
boolean
true when the request completed successfully.
remaining_daily_calls
integer
Remaining requests on the daily quota for the current API key.
results
array
Array of leak records, sorted by log_date in descending order.
Result Object
data_type
string
All
Either stealer or combolist.
breach_type
string
All
Either consumer or corporate. Indicates whether the record was matched against the captured URL (consumer) or the email domain of the username (corporate).
url
string
All
The URL where the credential was captured.
username
string
All
The exposed username or email address.
password
string
All (when mask_password=0)
The exposed password in plaintext. Omitted entirely when mask_password=1.
log_date
string (datetime)
All
The date the record was added to the platform.
log_id
integer
stealer only
Internal identifier referencing the parent stealer log.
hostname
string
stealer only
Hostname of the infected machine, when available.
ip
string
stealer only
IP address of the infected machine, when available.
malware_path
string
stealer only
Filesystem path of the stealer binary on the infected machine, when available.
anti_virus
string
stealer only
Antivirus product reported on the infected machine, when available.
Response Example
Empty Result Set
When no records match the query, the endpoint returns:
Error Responses
All error responses return a JSON body with either an error or message field describing the failure.
400
Invalid request method or non-JSON content type.
{"error": "Invalid request method or content type, expected POST with application/json."}
403
Missing API key.
{"error": "API Key is missing."}
403
Invalid API key.
{"error": "Invalid API Key."}
403
Subscription tier does not permit API access.
{"error": "API calls are only available for Enterprise and Higher tiers. Please upgrade your account."}
200
Daily quota exhausted.
{"success": false, "message": "Daily API request limit exceeded."}
200
Validation error in request body.
{"success": false, "error": "Limit must be an integer between 1 and 5000."}
200
Missing or out-of-range days.
{"success": false, "error": "The days parameter must be an integer between 1 and 30."}
200
Empty or missing query.
{"success": false, "error": "Query can not be empty."}
200
Invalid data_type value.
{"success": false, "error": "Invalid data type. Allowed values are: 'all', 'stealer', 'combolist'."}
200
Invalid breach_type value.
{"success": false, "error": "Invalid breach type. Allowed values are: 'all', 'consumer', 'corporate'."}
200
Query targets a restricted domain.
{"success": false, "error": "This query is restricted."}
Validation errors are returned with HTTP
200andsuccess: false. Clients should always inspect thesuccessfield in addition to the HTTP status code.
Best Practices
Incremental ingestion: Use a fixed
daysvalue aligned with your polling cadence (e.g.days=1for hourly polling,days=7for weekly digests). The endpoint always returns records added within the look-back window relative to the time of the request.Filter selection: Combine
data_typeandbreach_typefilters to scope responses to the exact slice you need. For example,data_type=stealerwithbreach_type=corporatereturns only employee credentials sourced from infostealer logs.Pagination: For high-exposure organizations or wide look-back windows, paginate using
pageandlimitrather than requesting a single oversized result set. The maximum permittedlimitis5000.Password masking: Use
mask_password=1for compliance-sensitive integrations where credential material should not transit downstream systems.Quota monitoring: Track the
remaining_daily_callsfield after each successful response to anticipate quota exhaustion before it occurs.
Support
For technical questions, integration assistance, or to request a quota increase, contact [email protected].
Last updated