# Have I Been Pwned API reference

> The Have I Been Pwned (HIBP) API tells you which data breaches and pastes an email address appears in, which addresses on a domain you have verified were breached, and which websites had credentials captured by info-stealer malware. It also serves the public catalogue of breaches HIBP has loaded,…

Source: https://osinttools.io/apis/have-i-been-pwned/ (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-pwned/

- Base URL: https://haveibeenpwned.com/api/v3
- Authentication: API key in the `hibp-api-key` header. Get a key: https://haveibeenpwned.com/API/Key Also send a User-Agent header naming your app. The breach catalogue and data-class endpoints need no key.
- Free tier: yes
- Pricing: Subscription
- Rate limits: Breach, paste and stealer-log searches are limited to your subscription's requests per minute (from 10 RPM on Core 1 to 24,000 on High RPM 24000); over the limit returns 429 with a retry-after header in seconds. Domain-based stealer-log searches have a separate, lower limit. Domain search has no off
- Vendor docs: https://haveibeenpwned.com/API/v3

## Overview

The Have I Been Pwned (HIBP) API tells you which data breaches and pastes an email address appears in, which addresses on a domain you have verified were breached, and which websites had credentials captured by info-stealer malware. It also serves the public catalogue of breaches HIBP has loaded, with each breach's date, size and the kinds of data exposed.

An investigator uses it to check an email address against known breaches, to read what a named breach exposed, and (for domains they control) to see which addresses were caught up. Sensitive and retired breaches are never returned by the public email search; a 404 means no publicly disclosable result, not proof the address was never breached.

Calls go to `https://haveibeenpwned.com/api/v3` over HTTPS. Searches by email, domain, paste and stealer log need a paid subscription key in the `hibp-api-key` header and a `User-Agent` header that names your app (a missing one returns 403). The breach catalogue and data-class endpoints need no key. Domain and stealer-log searches only work for domains verified on your HIBP dashboard. Pwned Passwords is a separate free, keyless API at `https://api.pwnedpasswords.com/range/{first5}` (k-anonymity by SHA-1 or NTLM prefix) and is not listed below.

Breach and paste data is licensed under CC BY 4.0: credit Have I Been Pwned with a visible link to haveibeenpwned.com. The docs also list acceptable-use rules, including no harmful querying of breach victims.

## Errors

| Status | Meaning |
| --- | --- |
| 400 | Bad request, such as an invalid email address or domain |
| 401 | Missing or invalid API key, or an inactive subscription |
| 403 | No User-Agent header, or no access to the resource (the body says why) |
| 404 | No publicly disclosable results for the account or domain |
| 429 | Rate limit exceeded; wait the number of seconds in retry-after |
| 503 | Service unavailable, often a Cloudflare response |

## Email search

### List the breaches an email address appears in

`GET /breachedAccount/{email}`

- Takes: Email
- Footprint: passive (the target is not contacted)
- Plan: Core, Pro or High RPM

Returns the breaches the address was found in. By default only each breach's `Name` comes back; set `truncateResponse=false` for the full breach model. Sensitive and retired breaches are never returned. 404 when the address is in no public breach.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `email` | path | string | yes | The email address, URL-encoded. Case-insensitive; surrounding whitespace is trimmed. Example: jane.doe@example.com |
| `truncateResponse` | query | boolean | no | false returns the full breach model instead of only the name Example: false |
| `Domain` | query | string | no | Only return breaches against this domain Example: example.org |
| `IncludeUnverified` | query | boolean | no | false leaves out unverified breaches Example: true |

Response fields:

- `[].Name` (string): Stable identifier of the breach (the only field when the response is truncated)
- `[].Title` (string): Display name (full model only)
- `[].Domain` (string): Primary website of the breached service
- `[].BreachDate` (string): Approximate date of the breach
- `[].DataClasses[]` (string): Kinds of data exposed

```bash
curl 'https://haveibeenpwned.com/api/v3/breachedAccount/jane.doe%40example.com' \
  -H 'hibp-api-key: YOUR_API_KEY'
```

Example response (200, Truncated (default)):

```json
[
  {
    "Name": "ExampleForum"
  },
  {
    "Name": "SampleShop"
  }
]
```

### List the pastes an email address was found in

`GET /pasteAccount/{email}`

- Takes: Email
- Footprint: passive (the target is not contacted)
- Plan: Core, Pro or High RPM

Returns pastes containing the address, newest first. Combine `Source` and `Id` to work out the paste's URL. 404 (empty body) when there are none, including for opted-out accounts.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `email` | path | string | yes | The email address, URL-encoded Example: jane.doe@example.com |

Response fields:

- `[].Source` (string): Paste site: Pastebin, Pastie, Slexy, Ghostbin, QuickLeak, JustPaste, AdHocUrl, PermanentOptOut or OptOut
- `[].Id` (string): Paste ID at the source
- `[].Title` (string): Paste title, or null
- `[].Date` (string): When the paste was posted, or null
- `[].EmailCount` (integer): Number of addresses found in the paste

```bash
curl 'https://haveibeenpwned.com/api/v3/pasteAccount/jane.doe%40example.com' \
  -H 'hibp-api-key: YOUR_API_KEY'
```

Example response (200):

```json
[
  {
    "Source": "Pastebin",
    "Id": "aB3dE5fG",
    "Title": "sample dump",
    "Date": "2024-03-02T10:15:00Z",
    "EmailCount": 120
  }
]
```

### k-anonymity email search by the first 6 characters of the address's SHA-1 hash

`GET /breachedAccount/range/{hashPrefix}`

- Takes: Email
- Footprint: passive (the target is not contacted)
- Plan: Pro or High RPM

Hash the trimmed, lowercased address with SHA-1, send the first 6 hex characters and look for your hash suffix in the results; if it is absent, the address is in no public breach. Results that are not your address must be discarded at once, not stored or processed. Sensitive and retired breaches are never returned.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `hashPrefix` | path | string | yes | First 6 characters of the SHA-1 hash of the lowercased address Example: A1B2C3 |

Response fields:

- `[].hashSuffix` (string): The rest of a matching hash
- `[].websites[]` (string): Names of the breaches that hash appears in

```bash
curl 'https://haveibeenpwned.com/api/v3/breachedAccount/range/A1B2C3' \
  -H 'hibp-api-key: YOUR_API_KEY'
```

Example response (200):

```json
[
  {
    "hashSuffix": "D4E5F60718293A4B5C6D7E8F90A1B2C3D4",
    "websites": [
      "ExampleForum",
      "SampleShop"
    ]
  }
]
```

## Stealer logs

### List websites where an address's credentials were captured by info-stealer malware

`GET /stealerLogsByEmail/{email}`

- Takes: Email
- Footprint: passive (the target is not contacted)
- Plan: Pro or higher

Returns website domains, sorted alphabetically. The address must be on a domain verified on your dashboard. Passwords are never returned. 404 when there are no entries. Has a separate, lower rate limit.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `email` | path | string | yes | Full email address on a verified domain Example: jane.doe@example.com |

Response fields:

- `[]` (string): Website domain where the credentials were captured

```bash
curl 'https://haveibeenpwned.com/api/v3/stealerLogsByEmail/jane.doe%40example.com' \
  -H 'hibp-api-key: YOUR_API_KEY'
```

Example response (200):

```json
[
  "login.example.net",
  "shop.example.org"
]
```

### List email addresses captured by info-stealers while signing in to a website domain

`GET /stealerLogsByWebsiteDomain/{domain}`

- Takes: Domain
- Footprint: passive (the target is not contacted)
- Plan: Pro or higher

Returns email addresses, sorted alphabetically. The website domain must be verified on your dashboard (403 otherwise).

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `domain` | path | string | yes | Website domain as it appears in stealer logs, verified on your dashboard Example: example.com |

Response fields:

- `[]` (string): Email address captured on that website

```bash
curl 'https://haveibeenpwned.com/api/v3/stealerLogsByWebsiteDomain/example.com' \
  -H 'hibp-api-key: YOUR_API_KEY'
```

Example response (200):

```json
[
  "alex@example.org",
  "sam@example.net"
]
```

### For an email domain, map each alias to the websites where its credentials were captured

`GET /stealerLogsByEmailDomain/{domain}`

- Takes: Domain
- Footprint: passive (the target is not contacted)
- Plan: Pro or higher

Returns an object keyed by the part of the address before the @, each with a sorted list of website domains. The email domain must be verified on your dashboard (403 otherwise).

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `domain` | path | string | yes | Email domain (such as a company domain), verified on your dashboard Example: example.com |

Response fields:

- `{alias}[]` (string): Website domains where that alias's credentials were captured

```bash
curl 'https://haveibeenpwned.com/api/v3/stealerLogsByEmailDomain/example.com' \
  -H 'hibp-api-key: YOUR_API_KEY'
```

Example response (200):

```json
{
  "jane.doe": [
    "login.example.net"
  ],
  "ops": [
    "portal.example.org",
    "shop.example.org"
  ]
}
```

## Domain search

### List every breached address on a domain you have verified, with its breaches

`GET /breachedDomain/{domain}`

- Takes: Domain
- Footprint: passive (the target is not contacted)
- Plan: Core or Pro

Returns an object keyed by alias (the part before the @), each with the names of the breaches it appears in. Includes sensitive breaches. The domain must be verified on your account; 403 if it is not, or if it is over your subscription's size limit. The docs advise querying only when a new breach appears (poll /latestBreach for that).

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `domain` | path | string | yes | A domain verified on your account Example: example.com |

Response fields:

- `{alias}[]` (string): Names of the breaches that alias appears in

```bash
curl 'https://haveibeenpwned.com/api/v3/breachedDomain/example.com' \
  -H 'hibp-api-key: YOUR_API_KEY'
```

Example response (200):

```json
{
  "jane.doe": [
    "ExampleForum"
  ],
  "sales": [
    "ExampleForum",
    "SampleShop"
  ]
}
```

### List the domains verified on your account and their breached-address counts

`GET /subscribedDomains`

- Footprint: passive (the target is not contacted)
- Plan: Core or Pro

Returns each verified domain with how many breached addresses it had at the last search and when the subscription renews.

Response fields:

- `[].DomainName` (string): The verified domain
- `[].PwnCount` (integer): Breached addresses at the last search, or null
- `[].PwnCountExcludingSpamLists` (integer): The same, leaving out spam lists, or null
- `[].PwnCountExcludingSpamListsAtLastSubscriptionRenewal` (integer): Count locked at the last renewal, used for search limits, or null
- `[].NextSubscriptionRenewal` (string): ISO 8601 date and time of the next renewal, or null

```bash
curl 'https://haveibeenpwned.com/api/v3/subscribedDomains' \
  -H 'hibp-api-key: YOUR_API_KEY'
```

Example response (200):

```json
[
  {
    "DomainName": "example.com",
    "PwnCount": 42,
    "PwnCountExcludingSpamLists": 30,
    "PwnCountExcludingSpamListsAtLastSubscriptionRenewal": 28,
    "NextSubscriptionRenewal": "2027-01-15T00:00:00Z"
  }
]
```

## Breach catalogue

### List every breach in the system, optionally filtered by domain (no key needed)

`GET /breaches`

- Takes: Domain
- Footprint: passive (the target is not contacted)
- Plan: No key needed

Returns full breach models sorted by Title. Unauthenticated.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `Domain` | query | string | no | Only breaches against this domain Example: example.org |
| `IsSpamList` | query | boolean | no | Filter on whether the breach is a spam list Example: false |
| `IncludeUnverified` | query | boolean | no | false leaves out unverified breaches Example: true |

Response fields:

- `[].Name` (string): Stable identifier
- `[].Title` (string): Display name (can change)
- `[].Domain` (string): Primary website
- `[].BreachDate` (string): Approximate breach date
- `[].AddedDate` (string): When HIBP loaded it
- `[].PwnCount` (integer): Accounts loaded
- `[].DataClasses[]` (string): Kinds of data exposed
- `[].IsVerified` (boolean): false for unverified breaches

```bash
curl 'https://haveibeenpwned.com/api/v3/breaches' \
  -H 'hibp-api-key: YOUR_API_KEY'
```

Example response (200):

```json
[
  {
    "Name": "ExampleForum",
    "Title": "Example Forum",
    "Domain": "example.org",
    "BreachDate": "2023-05-01",
    "AddedDate": "2023-08-10T12:00:00Z",
    "ModifiedDate": "2023-08-10T12:00:00Z",
    "PwnCount": 250000,
    "Description": "In May 2023, the forum at example.org suffered a breach.",
    "DataClasses": [
      "Email addresses",
      "Passwords",
      "Usernames"
    ],
    "IsVerified": true,
    "IsFabricated": false,
    "IsSensitive": false,
    "IsRetired": false,
    "IsSpamList": false,
    "IsMalware": false,
    "IsSubscriptionFree": false,
    "IsStealerLog": false,
    "LogoPath": "https://example.org/logo.png",
    "Attribution": null,
    "DisclosureUrl": null
  }
]
```

### Get one breach by its name: dates, size, data classes and flags (no key needed)

`GET /breach/{name}`

- Footprint: passive (the target is not contacted)
- Plan: No key needed

Returns a single breach model. Use the stable `Name`, not the `Title`, which can change.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `name` | path | string | yes | The breach's Name Example: ExampleForum |

Response fields:

- `Name` (string): Stable identifier
- `Title` (string): Display name
- `Domain` (string): Primary website
- `BreachDate` (string): Approximate breach date (often inaccurate)
- `AddedDate` (string): When HIBP loaded it
- `ModifiedDate` (string): Last change to the record
- `PwnCount` (integer): Accounts loaded
- `Description` (string): HTML description of the incident
- `DataClasses[]` (string): Kinds of data exposed
- `IsVerified` (boolean): false for unverified breaches
- `IsFabricated` (boolean): Likely manufactured data
- `IsSensitive` (boolean): Left out of public email searches
- `IsSpamList` (boolean): Not from a security compromise
- `IsMalware` (boolean): Sourced from a malware campaign
- `IsStealerLog` (boolean): Its domains are in the stealer-log endpoints
- `Attribution` (string): Credit requested by the data provider, or null
- `DisclosureUrl` (string): Link to a disclosure, or null

```bash
curl 'https://haveibeenpwned.com/api/v3/breach/ExampleForum' \
  -H 'hibp-api-key: YOUR_API_KEY'
```

Example response (200):

```json
{
  "Name": "ExampleForum",
  "Title": "Example Forum",
  "Domain": "example.org",
  "BreachDate": "2023-05-01",
  "AddedDate": "2023-08-10T12:00:00Z",
  "ModifiedDate": "2023-08-10T12:00:00Z",
  "PwnCount": 250000,
  "Description": "In May 2023, the forum at example.org suffered a breach.",
  "DataClasses": [
    "Email addresses",
    "Passwords",
    "Usernames"
  ],
  "IsVerified": true,
  "IsFabricated": false,
  "IsSensitive": false,
  "IsRetired": false,
  "IsSpamList": false,
  "IsMalware": false,
  "IsSubscriptionFree": false,
  "IsStealerLog": false,
  "LogoPath": "https://example.org/logo.png",
  "Attribution": null,
  "DisclosureUrl": null
}
```

### Get the breach most recently added to HIBP (no key needed)

`GET /latestBreach`

- Footprint: passive (the target is not contacted)
- Plan: No key needed

Returns the breach with the newest `AddedDate` (when HIBP loaded it, not when it happened). The docs recommend polling this, rather than domain search, to notice new breaches.

Response fields:

- `Name` (string): Stable identifier
- `AddedDate` (string): When HIBP loaded it
- `PwnCount` (integer): Accounts loaded

```bash
curl 'https://haveibeenpwned.com/api/v3/latestBreach' \
  -H 'hibp-api-key: YOUR_API_KEY'
```

Example response (200):

```json
{
  "Name": "SampleShop",
  "Title": "Sample Shop",
  "Domain": "example.net",
  "BreachDate": "2026-09-12",
  "AddedDate": "2026-11-20T08:30:00Z",
  "ModifiedDate": "2026-11-20T08:30:00Z",
  "PwnCount": 81234,
  "Description": "In September 2026, the online store at example.net suffered a breach.",
  "DataClasses": [
    "Email addresses",
    "Names",
    "Phone numbers"
  ],
  "IsVerified": true,
  "IsFabricated": false,
  "IsSensitive": false,
  "IsRetired": false,
  "IsSpamList": false,
  "IsMalware": false,
  "IsSubscriptionFree": false,
  "IsStealerLog": false,
  "LogoPath": "https://example.net/logo.png",
  "Attribution": null,
  "DisclosureUrl": null
}
```

### List every data class (kind of exposed data) used in breach records (no key needed)

`GET /dataClasses`

- Footprint: passive (the target is not contacted)
- Plan: No key needed

Returns an alphabetically sorted array of names. The list grows over time. `/dataClasses/descriptions` returns the same names with a description each.

Response fields:

- `[]` (string): Data class name

```bash
curl 'https://haveibeenpwned.com/api/v3/dataClasses' \
  -H 'hibp-api-key: YOUR_API_KEY'
```

Example response (200):

```json
[
  "Email addresses",
  "Passwords",
  "Phone numbers"
]
```

## Account

### Show your subscription: plan, rate limit, domain limits and included features

`GET /subscription/status`

- Footprint: passive (the target is not contacted)
- Plan: Core, Pro or High RPM

Returns the plan behind your key and what it includes.

Response fields:

- `SubscriptionName` (string): Plan name
- `Description` (string): Plan description
- `SubscribedUntil` (string): When the subscription ends
- `Rpm` (integer): Requests per minute allowed on breached-account searches
- `DomainSearchMaxBreachedAccounts` (integer): Largest domain (breached addresses, excluding spam lists) you can search
- `MaxBreachedDomains` (integer): Maximum domains, or null for no limit
- `IncludesStealerLogs` (boolean): Stealer-log endpoints included
- `IncludesKAnon` (boolean): k-anonymity search included

```bash
curl 'https://haveibeenpwned.com/api/v3/subscription/status' \
  -H 'hibp-api-key: YOUR_API_KEY'
```

Example response (200):

```json
{
  "SubscriptionName": "Pro 2",
  "Description": "Example plan description",
  "SubscribedUntil": "2027-06-01T00:00:00",
  "Rpm": 2000,
  "DomainSearchMaxBreachedAccounts": 10000,
  "MaxBreachedDomains": 100,
  "IncludesStealerLogs": true,
  "IncludesBulkDomainAdd": true,
  "IncludesAutoSubdomainVerification": true,
  "IncludesCustomerDomains": true,
  "IncludesKAnon": true
}
```

---

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/
