# Have I Been Ransomed? API reference

> 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…

Source: https://osinttools.io/apis/have-i-been-ransomed/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

Compiled by OSINTtools.io editors from the vendor's docs, updated Nov 29, 2026. Listing: https://osinttools.io/tools/have-i-been-ransomed/

- Base URL: https://haveibeenransom.com
- Authentication: Bearer token in the `Authorization` header. Get a key: https://haveibeenransom.com/ Keep the token server-side.
- Free tier: yes
- Rate limits: Daily requests by plan: free Basic 10, Investigator 100, Professional 2,000, Cybersecurity Agency 20,000, Gov unlimited
- Vendor docs: https://haveibeenransom.com/howapi

## Overview

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.

## Errors

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

## Search

### Find which breaches or ransomware leaks contain a term, without the records.

`GET /api/metadata/{fields}/{term}`

- Takes: Email, Username, Phone number, Domain, Crypto wallet, Name
- Footprint: passive (the target is not contacted)
- Cost: 1 request
- Plan: Any plan

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.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `fields` | path | string | yes | Field or comma-separated fields to search Example: email |
| `term` | path | string | yes | Value to search for (512 characters or fewer) Example: alice@example.com |
| `dataset` | query | string | no | Limit to one kind of source Example: ransomware One of: ransomware, breach |
| `page_size` | query | integer | no | Results per page (Enterprise only, max 200) Example: 20 |
| `where` | query | string | no | Extra condition as field:value; repeatable, up to 4, combined with AND Example: country:US |

Response fields:

- `data` (array): Matching breach metadata entries (company, group, date, country)
- `pagination` (object): Paging information

```bash
curl 'https://haveibeenransom.com/api/metadata/email/alice%40example.com' \
  -H 'Authorization: Bearer YOUR_API_KEY'
```

Example response (200):

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

### Full records from leaks and breaches that match a term (paid data plan).

`GET /api/fulldata/{fields}/{term}`

- Takes: Email, Username, Phone number, Domain, Crypto wallet, Name
- Footprint: passive (the target is not contacted)
- Cost: 1 request
- Plan: Paid data plan

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.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `fields` | path | string | yes | Field or comma-separated fields to search Example: email |
| `term` | path | string | yes | Value to search for Example: alice@example.com |
| `search_after` | query | string | no | Cursor from the previous response; send back unchanged Example: 30 |
| `sort` | query | string | no | Sort order (Professional and above) Example: date_desc One of: date_desc, date_asc |

Response fields:

- `data` (array): Matching records
- `has_next_page` (boolean): Whether more results can be fetched
- `search_after` (string): Cursor for the next page
- `total_hits` (integer): Total number of matches

```bash
curl 'https://haveibeenransom.com/api/fulldata/email/alice%40example.com' \
  -H 'Authorization: Bearer YOUR_API_KEY'
```

Example response (200):

```json
{
  "data": [
    {
      "email": "alice@example.com",
      "domain": "example.com"
    }
  ],
  "has_next_page": false,
  "search_after": 30,
  "total_hits": 1
}
```

### Infostealer log records that match a term (paid data plan).

`GET /api/fullstealer/{fields}/{term}`

- Takes: Email, Username, Phone number, Domain, Crypto wallet
- Footprint: passive (the target is not contacted)
- Cost: 1 request
- Plan: Paid data plan

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.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `fields` | path | string | yes | Field to search Example: domain |
| `term` | path | string | yes | Value to search for Example: example.com |
| `search_after` | query | string | no | Cursor from the previous response Example: 20 |

Response fields:

- `mode` (string): fragments, documents or stealers
- `matches[].URL` (string): URL the credential was used on
- `matches[].USER` (string): User name in the log
- `matches[].PASS` (string): Password in the log (masked unless the clear-data add-on is held)
- `matches[].Filename` (string): Log file name
- `has_next_page` (boolean): Whether more results can be fetched

```bash
curl 'https://haveibeenransom.com/api/fullstealer/domain/example.com' \
  -H 'Authorization: Bearer YOUR_API_KEY'
```

Example response (200):

```json
{
  "mode": "fragments",
  "matches": [
    {
      "URL": "https://example.com/login",
      "USER": "alice@example.com",
      "PASS": "********",
      "Filename": "log-0001.txt"
    }
  ],
  "has_next_page": false
}
```

## Public counters

### Number of breaches in the data set; no token needed.

`GET /breaches/total`

- Footprint: passive (the target is not contacted)

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

Response fields:

- `total` (integer): Number of breaches

```bash
curl 'https://haveibeenransom.com/breaches/total' \
  -H 'Authorization: Bearer YOUR_API_KEY'
```

Example response (200):

```json
{
  "total": 1113
}
```

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
