Search raw leak blocks
Changed onPerform a full-text search across raw leak blocks. Provide the search payload in the JSON body.
Request body
- q: Optional search string (minimum 4 characters once quotes are removed).
- container_id: Optional container identifier.
- exts / exts_not: File extensions to include / exclude.
- categories / categories_not: Raw file categories to include / exclude.
- file_name / file_name_not: Match on entry_name (max 50 items, min 4 chars each).
- file_name_match_type / file_name_not_match_type: How each list is matched, one mode per list: contains (default), starts_with, ends_with or exact (the whole entry name).
- folder_name / folder_name_not: Match on the folder holding the block (max 20 items, min 4 chars each, surrounding slashes ignored). folder_name_not is not a standalone selector.
- folder_name_match_type / folder_name_not_match_type: contains (default, substring of the path), starts_with (the path begins with the value), ends_with (the path ends with the value) or exact (a whole folder at any depth: data matches a/b/data, not a/b/database).
- file_name_exact / folder_name_exact: Deprecated. true means exact on both the include and the exclude list when no match type is given.
- include_terms: Extra content terms that must ALL be present, on top of q (substring, case-insensitive, max 20 items, 4 to 256 chars each). This is the AND: q=acme.com with include_terms=["admin", "vpn"] keeps only the blocks holding the three of them. Unlike exclude_terms it is a positive selector, so it works without q.
- exclude_terms: Content terms to exclude (substring, case-insensitive, max 20 items, min 4 chars each). Not a standalone selector.
- force_and: Apply AND logic within file_name and within folder_name (default OR).
- ingested_at_min / ingested_at_max: Datetime range filter (ISO 8601 with timezone).
If q is omitted, you must provide at least one filter among container_id, exts, categories, file_name, folder_name.
Query parameters
- page starts at 1.
- page_size ranges from 1 to 100 (default 10).
- cursor: Cursor returned in the previous response to fetch the next page of results.
Rate limit: 5 requests per second per user.
Response: { items, total, page, page_size }
Limits:
| Constraint | Value |
|---|---|
| Max file name filters | 50 |
| Max folder name filters | 20 |
| Min characters per file / folder name | 4 |
| Max export results | 5 000 |
| Max export files | 25 |
| Download link retention | 7 days |
Request
- Base URLhttps://api.leakradar.io
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
Page number (starts at 1).
Items per page (1–100, default 10).
Cursor from previous response to fetch the next page
Collapse blocks with identical content (same block_fp64) into a single result. Dedup is per-page: with cursor pagination the same content may resurface on a later page.
Request body
Example request
{
"q": "example.com"
}Response
Search executed successfully.
Changes
- info
added the new optional request property
- info
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info