Skip to content
OSINTtools.io

Have I Been Ransomed? API

Searches ransomware leak sites, stealer logs, breaches and Telegram dumps by email, phone, username, wallet or domain.

Base URL
https://haveibeenransom.com
Sign-in
Bearer token
Free tier
Free tier
Format
REST
Endpoints
4

Compiled by OSINTtools.io editors from haveibeenransom.com · updated Nov 29, 2026Work on this API? Claim it to keep these docs currentReport a mistake

Introduction

Have I Been Ransomed? searches data from ransomware leaks, traditional breaches and infostealer logs. A metadata search tells you which breach or ransomware leak a term appears in (company, group, date, country) without returning the records; full-data and stealer-log searches return the records and need a paid data plan.

Calls are REST over HTTPS on https://haveibeenransom.com and return JSON. Send Authorization: Bearer YOUR_TOKEN on every request except the public breach counters. Searches are case-insensitive, support partial matching, and several fields can be combined with commas (for example email,username).

The quota is counted in requests per day by plan (10 on the free Basic account). Exceeding it returns 429. The API also has domain reports, document images, bulk lookups, a password toolkit and webhooks on higher plans; those are not described here, see the docs.

Quick start

  1. Get a key

    Create an account with Have I Been Ransomed? and copy your bearer token (free tier). Where to get it

  2. Make your first request

    Find which breaches or ransomware leaks contain a term, without the records.. Replace YOUR_API_KEY and run it in a terminal, or use Try it on the endpoint.

    curl 'https://haveibeenransom.com/api/metadata/email/alice%40example.com' \
      -H 'Authorization: Bearer YOUR_API_KEY'
  3. Read the response

    A 200 response looks like this.

    {
      "data": [
        {
          "company": "Example Corp",
          "group": "ExampleGroup",
          "date": "2026-01-15",
          "country": "US"
        }
      ],
      "pagination": {
        "page": 1
      }
    }

Authentication

Send your token in the Authorization header as Bearer YOUR_TOKEN.

Keep the token server-side.

Get a key from Have I Been Ransomed?

Try it on this page keeps your key in your browser; it is never sent to OSINTtools.io.

Rate limits and pricing

Daily requests by plan: free Basic 10, Investigator 100, Professional 2,000, Cybersecurity Agency 20,000, Gov unlimited

Free tier.

Errors

StatusMeaning
400Invalid parameters (bad field, short term, malformed email or country code)
401Missing or invalid token
403The plan does not include the feature (for example full data)
413Batch body over 64 KB
429Daily quota exceeded
500Server error; retry, then contact support

Returns breach metadata (company, group, date, country) plus a pagination object, 20 results per page. Searchable fields: name, email, username, domain, phone, id, country (2-letter code), password. Combine fields with commas.

Path parameters

fieldsstringrequired

Field or comma-separated fields to search

Example: email
termstringrequiredtakes your email

Value to search for (512 characters or fewer)

Example: alice@example.com

Query parameters

datasetstring

Limit to one kind of source

Example: ransomwareOne of: ransomware, breach
page_sizeinteger

Results per page (Enterprise only, max 200)

Example: 20
wherestring

Extra condition as field:value; repeatable, up to 4, combined with AND

Example: country:US
Response fields · 2Show

dataarray

Matching breach metadata entries (company, group, date, country)

paginationobject

Paging information

curl 'https://haveibeenransom.com/api/metadata/email/alice%40example.com' \
  -H 'Authorization: Bearer YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "data": [
    {
      "company": "Example Corp",
      "group": "ExampleGroup",
      "date": "2026-01-15",
      "country": "US"
    }
  ],
  "pagination": {
    "page": 1
  }
}

Returns the matching records. Variants /api/fullransom/ (ransomware only) and /api/fullbreach/ (traditional breaches only) take the same parameters. Page with the search_after cursor until has_next_page is false. Basic accounts get 403.

Path parameters

fieldsstringrequired

Field or comma-separated fields to search

Example: email
termstringrequiredtakes your email

Value to search for

Example: alice@example.com

Query parameters

search_afterstring

Cursor from the previous response; send back unchanged

Example: 30
sortstring

Sort order (Professional and above)

Example: date_descOne of: date_desc, date_asc
Response fields · 4Show

dataarray

Matching records

has_next_pageboolean

Whether more results can be fetched

search_afterstring

Cursor for the next page

total_hitsinteger

Total number of matches

curl 'https://haveibeenransom.com/api/fulldata/email/alice%40example.com' \
  -H 'Authorization: Bearer YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "data": [
    {
      "email": "alice@example.com",
      "domain": "example.com"
    }
  ],
  "has_next_page": false,
  "search_after": 30,
  "total_hits": 1
}

The response shape depends on the top-level mode field. For email, username, phone, id, domain and password searches the mode is fragments and matches is a flat list of URL, USER, PASS and Filename. Wallet, Steam, Telegram, vpn, ftp and hwid searches return raw documents in data; a country search returns data grouped per infected machine.

Path parameters

fieldsstringrequired

Field to search

Example: domain
termstringrequiredtakes your domain

Value to search for

Example: example.com

Query parameters

search_afterstring

Cursor from the previous response

Example: 20
Response fields · 6Show

modestring

fragments, documents or stealers

URLstring

URL the credential was used on

USERstring

User name in the log

PASSstring

Password in the log (masked unless the clear-data add-on is held)

Filenamestring

Log file name

has_next_pageboolean

Whether more results can be fetched

curl 'https://haveibeenransom.com/api/fullstealer/domain/example.com' \
  -H 'Authorization: Bearer YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "mode": "fragments",
  "matches": [
    {
      "URL": "https://example.com/login",
      "USER": "alice@example.com",
      "PASS": "********",
      "Filename": "log-0001.txt"
    }
  ],
  "has_next_page": false
}

Public counters

  • Passive: the target is not contacted

Public counter. /breaches/full returns the breach list, oldest to newest.

Response fields · 1Show

totalinteger

Number of breaches

curl 'https://haveibeenransom.com/breaches/total' \
  -H 'Authorization: Bearer YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "total": 1113
}