Paginated keyword search results

GET
/leaks/keyword/search

Retrieve paginated leak details matching the organization's active keywords.

Returns the same paginated envelope as /leaks/details. The row shape differs slightly: keyword rows are folded per hash from hash_registry, so they carry local_part (derived) and no per-credential value sets (softwares, ip_addresses, ...). This endpoint has an additional matched_keyword field indicating which keyword matched each row.

Searches hash_registry (full ingestion history) for rows where the keyword's tokens appear in domain/host (same predicate as the idx_kw_text index), for any active keyword, excluding the org's own monitored root domains.

If the organization has no active keywords, returns an empty paginated response.

Parameters:

ParameterDefaultDescription
page1Page number
page_size50Items per page (max 200)
search-Full-text search across username, host, domain, root_domain
sort_bylast_seenSort order: last_seen (most recent first)
start_date / end_dateall-timeDate range filter; an explicit value narrows the window

Plus all standard DynamicFilters.

Accepts ?tenant_id_override=<child_tenant_id> for an MSSP workspace: the active keywords, excluded roots and paid-plan check then resolve from the CHILD tenant instead of the caller's own org (tenant_id_override=all is rejected with 400). A Référencé child's rows render with username masked (x***@domain, same redaction as /leaks/details); an Activé child's username renders in clear, password stays masked either way.

Response Format:

{
  "data": [
    {
      "username": "user@example.com",
      "password": "a91f3c8b2d47",
      "password_masked": true,
      "type": "Stealer",
      "first_seen": "2026-01-20",
      "last_seen": "2026-03-15",
      "host": "acme-corp-recrute.talent-soft.com",
      "domain": "acme-corp-recrute.talent-soft.com",
      "local_part": "user",
      "protocol": "https",
      "email_domain": "example.com",
      "root_domain": "talent-soft.com",
      "country": "FR",
      "software": "chrome, profile: 0",
      "stealer_name": "RedLine",
      "hash": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4",
      "machine_id": "DESKTOP-ABC1234",
      "computer_name": "LAPTOP-XYZ",
      "hardware_id": "hwid-1234-5678",
      "machine_user": "john.doe",
      "ip_address": "192.168.1.10",
      "source_count": 3,
      "matched_keyword": "acme-corp"
    }
  ],
  "total": 12345,
  "page": 1,
  "page_size": 50,
  "total_pages": 247
}

Examples:

# Basic paginated request
GET /leaks/keyword/search?page=1&page_size=50

# With search filter
GET /leaks/keyword/search?search=admin&page=1&page_size=50

# With date range
GET /leaks/keyword/search?start_date=2026-03-01&end_date=2026-03-28

Authorization

ApiKeyAuth
X-API-Key<token>

API key for authentication

In: header

Query Parameters

page?Page

Page number

Default1
Range1 <= value
page_size?Page Size

Items per page (max 200)

Default50
Range1 <= value <= 200
search?Search

Search term for full-text filtering

Lengthlength <= 200
sort_by?Sort By

Sort order. first_seen/last_seen/host genuinely resort the list; every other value currently falls back to most-recent-first regardless of what is passed: occurrences has no equivalent on the keyword source table (hash_registry keeps no per-occurrence log), source_count/sources, while now a real per-hash figure (folded distinct-source HLL), are not yet wired to the ORDER BY, and username is accepted but INTENTIONALLY never wired to a real ORDER BY: a keyword-scope row can be masked (a Référencé child, or an unbackfilled own-org tenant), and a real sort on the clear username would let a masked reader binary-search their way to it across pages even though the row itself only ever shows the redacted form. Every value stays accepted (not rejected) so the shared leak table's default sort never 422s -- host and username are the two columns the webapp's shared leak table already lets a reader sort by in keyword mode (SORTABLE in ServerPaginatedLeakTable.tsx) that used to 422 here (2026-09-24); host is now wired for real, username deliberately stays inert.

Default"source_count"
Value in"source_count" | "last_seen" | "first_seen" | "occurrences" | "sources" | "host" | "username"
sort_dir?Sort Dir

Accepted for compatibility with the shared leak table; unused in keyword mode (see sort_by).

Default"desc"
Value in"asc" | "desc"
username?|array<string>|

Username of the leaked user (can be phone, email, ID, ...)

type?|array<string>|

Type of leak (combo, stealer)

hash?|array<string>|

Uniq identifier for the concatenation of : username, password and domain

upload_stealed?||array<|string>|

Upload date on stealed, ISO 8601, pattern YYYY-MM-DD

upload_date?||array<|string>|

Upload date on the plateform the credential was found, ISO 8601, pattern YYYY-mm-dd

log_date?||array<|string>|

Log date of the device at compromized moment (if applicable, stealer only)

start_date?||

Start date to search from leaks, format: YYYY-mm-dd (default: today - 14days at 0:00am)

end_date?||

End date to search leaks from, format YYYY-mm-dd (default: today)

host?|array<string>|

URL of the leaked data

domain?|array<string>|

FQDN of the leaked data

local_part?|array<string>|

Local part of the username section (if applicable, email only)

protocol?|array<string>|

Protocol identified (if applicable)

email_domain?|array<string>|

Email domain to filter on (if multiple email domains declared)

root_domain?|array<string>|

Root domain to filter on (if multiple root domains declared)

machine_id?|array<string>|

Machine ID (if applicable, stealer only)

computer_name?|array<string>|

Computer name (if applicable, stealer only)

hardware_id?|array<string>|

Hardware ID (if applicable, stealer only)

machine_user?|array<string>|

Machine user (if applicable, stealer only)

ip_address?|array<string>|

IP address (if applicable, stealer only)

country?|array<string>|

Country (if applicable, stealer only)

software?|array<string>|

Software (if applicable, stealer only)

stealer_name?|array<string>|

Stealer name (if applicable)

source?|array<string>|

Opaque source label(s) to filter on, of the form Source-<6 hex> (as returned by the sources breakdown). The raw telegram_channel is never exposed: the label is matched back against the same MD5-prefix expression server-side.

keyword?|array<string>|

Keyword to filter on (only active keywords for tenant)

match_type?|array<string>|

Match type for leaks_matched table (root_domain or email_domain)

not_root_domain?|array<string>|

Root domains to exclude (NOT IN filter)

not_email_domain?|array<string>|

Email domains to exclude (NOT IN filter)

not_domain?|array<string>|

Domains to exclude (NOT IN filter)

not_type?|array<string>|

Types to exclude

not_software?|array<string>|

Software to exclude

not_stealer_name?|array<string>|

Stealer names to exclude

not_protocol?|array<string>|

Protocols to exclude

not_country?|array<string>|

Countries to exclude

not_machine_id?|array<string>|

Excludes the credentials whose machine ID is one of these values (NOT IN filter, stealer only)

not_computer_name?|array<string>|

Excludes the credentials whose computer name is one of these values (NOT IN filter, stealer only)

not_hardware_id?|array<string>|

Excludes the credentials whose hardware ID is one of these values (NOT IN filter, stealer only)

not_machine_user?|array<string>|

Excludes the credentials whose machine user is one of these values (NOT IN filter, stealer only)

not_ip_address?|array<string>|

Excludes the credentials whose IP address is one of these values (NOT IN filter, stealer only)

first_seen_date?|

Show only hashes whose first appearance (min upload_stealed) falls on this exact date. Format: YYYY-MM-DD.

first_seen_since?|

Show only hashes whose first appearance (min upload_stealed) is on or after this date. Format: YYYY-MM-DD.

limit?|

Limit result length

min_occurrences?|

Minimum number of sources (source_count >= N)

Response Body

application/json

application/json

curl -X GET "https://api.stealed.io/leaks/keyword/search"
null
{
  "detail": [
    {
      "loc": [
        "string"
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}