# Have I Been Pwned Breaches Scraper (`kawsar/have-i-been-pwned-breaches-scraper`) Actor

Collect public breach records—all listings or filtered by domain—and export clean JSON, CSV, or Excel results for research, monitoring, and reports. Built by BigiByte for fast, structured dataset extraction.

- **URL**: https://apify.com/kawsar/have-i-been-pwned-breaches-scraper.md
- **Developed by:** [Kawsar](https://apify.com/kawsar) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.99 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Have I Been Pwned Breaches Scraper

![Have I Been Pwned Breaches Scraper cover](https://images.bigibyte.com/cdn-cgi/image/width=1260,height=540,fit=cover,format=webp/apify-actors-covers/have-i-been-pwned-breaches-scraper-cover.png)

Retrieve the public Have I Been Pwned data breaches catalog in structured JSON, CSV, or Excel formats. Collect all available breach records or filter results by domain. Each record includes breach dates, affected domains, exposed data classes, affected account counts, and other useful metadata for security research and analysis.

### What It Does

This actor collects public breach metadata from Have I Been Pwned and converts it into structured dataset records.

Choose between collecting the complete breach catalog or filtering records for a specific domain. Each output record preserves the breach information and includes collection timestamps and source details.

### Modes

- **All Breaches (`breaches`):** Collects records from the public breach catalog.
- **By Domain (`domain`):** Filters the catalog for a specific domain, such as `adobe.com`.

### Input Parameters

| Parameter | Type | Description |
|---|---|---|
| `mode` | String | Collection mode: `breaches` or `domain` |
| `domain` | String | Domain to filter, used in `domain` mode |
| `maxItems` | Integer | Maximum number of records to collect |
| `requestDelayMs` | Integer | Delay between requests, in milliseconds |

### Input Examples

**Collect all breaches**

```json
{
  "mode": "breaches",
  "maxItems": 50,
  "requestDelayMs": 1000
}
```

**Filter by domain**

```json
{
  "mode": "domain",
  "domain": "adobe.com",
  "maxItems": 20
}
```

### Output Example

```json
{
  "Name": "000webhost",
  "Title": "000webhost",
  "Domain": "000webhost.com",
  "BreachDate": "2015-03-01",
  "AddedDate": "2015-10-26T23:35:45Z",
  "ModifiedDate": "2017-12-10T21:44:27Z",
  "PwnCount": 14936670,
  "Description": "In approximately March 2015, the free web hosting provider...",
  "LogoPath": "https://logos.haveibeenpwned.com/000webhost.png",
  "Attribution": null,
  "DisclosureUrl": null,
  "DataClasses": [
    "Email addresses",
    "IP addresses",
    "Names",
    "Passwords"
  ],
  "IsVerified": true,
  "IsFabricated": false,
  "scrapedAt": "2026-10-26T00:00:00+00:00"
}
```

### Output Fields

| Field | Description |
|---|---|
| `Name` | Unique name identifying the breach |
| `Title` | Display title of the breach |
| `Domain` | Website domain associated with the breach |
| `BreachDate` | Date the breach occurred |
| `AddedDate` | Date the breach was added to the catalog |
| `ModifiedDate` | Date the breach record was last modified |
| `PwnCount` | Number of affected accounts reported |
| `Description` | Description of the breach |
| `LogoPath` | Breach-related logo image location |
| `Attribution` | Attribution information, when available |
| `DisclosureUrl` | Related disclosure link, when available |
| `DataClasses` | Categories of exposed information |
| `IsVerified` | Indicates whether the breach is verified |
| `IsFabricated` | Indicates whether the breach is marked as fabricated |
| `scrapedAt` | Timestamp when the record was collected |

### Use Cases

- **Security Research:** Build datasets of publicly documented data breaches for analysis.
- **Incident Context:** Identify the types of information reported in breaches associated with a domain.
- **Breach Monitoring:** Compare scheduled catalog exports to identify changes over time.
- **Compliance Reviews:** Organize breach metadata for internal assessments and reporting.
- **Developer Workflows:** Use breach names and metadata in enrichment and research pipelines.

### Frequently Asked Questions

**What does this actor collect?**

It collects public breach catalog metadata, including affected domains, breach dates, account counts, descriptions, and exposed data categories.

**Can I search for a specific website?**

Yes. Select `domain` mode and provide the website domain in the `domain` field.

**What export formats are supported?**

You can export the dataset as JSON, CSV, Excel, and other formats supported by Apify.

**Can I schedule automatic updates?**

Yes. Configure an Apify schedule to run the actor periodically and compare the resulting datasets.

### Trademark Notice

Have I Been Pwned and its associated names and trademarks belong to their respective owners. This actor is an independent tool and does not imply any affiliation, sponsorship, or endorsement.

### Is Web Scraping Legal?

This actor collects publicly accessible breach catalog metadata without bypassing login screens, paywalls, or technical security measures. How collected information can be used depends on applicable laws and the source website's policies.

- **Personal Data:** Breach metadata may describe exposed personal information, including email addresses, names, and IP addresses. Handle it responsibly and consider applicable GDPR and CCPA requirements.
- **Copyright and Licensing:** Have I Been Pwned breach metadata is provided under CC BY 4.0. Follow its attribution requirements when reusing or redistributing the catalog. Descriptions and logos may have separate usage considerations.
- **Platform Terms and Rate Limits:** Respect Have I Been Pwned's terms, collection policies, and request limits.
- **Disclaimer:** This information is general guidance, not legal advice. Consult a qualified professional if you need advice about a specific use case.

For more information, read Apify's guide: [Is web scraping legal?](https://blog.apify.com/is-web-scraping-legal/).

# Actor input Schema

## `mode` (type: `string`):

What to scrape. All breaches returns the full public catalog. By domain filters with the domain query parameter.

## `domain` (type: `string`):

Filter domain for mode=domain (e.g. adobe.com). Ignored in All breaches mode.

## `maxItems` (type: `integer`):

Stop after this many successful rows. Hard max is 1000.

## `requestDelayMs` (type: `integer`):

Milliseconds to wait between requests. Raise if you see 429.

## `userAgent` (type: `string`):

Identify your scraper

## `timeoutSecs` (type: `integer`):

Overall run budget in seconds.

## `requestTimeoutSecs` (type: `integer`):

Per-request timeout in seconds.

## `proxyConfiguration` (type: `object`):

Optional proxy. Leave off unless you need it. The public breaches endpoint usually works without a proxy.

## Actor input object example

```json
{
  "mode": "breaches",
  "domain": "adobe.com",
  "maxItems": 100,
  "requestDelayMs": 1000,
  "userAgent": "BigiByteActorResearch/1.0 (contact: hello@bigibyte.com)",
  "timeoutSecs": 300,
  "requestTimeoutSecs": 30,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

Dataset rows in the overview table.

## `dataset` (type: `string`):

Full dataset for this run.

## `items` (type: `string`):

Dataset items as JSON.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "domain": "adobe.com"
};

// Run the Actor and wait for it to finish
const run = await client.actor("kawsar/have-i-been-pwned-breaches-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "domain": "adobe.com" }

# Run the Actor and wait for it to finish
run = client.actor("kawsar/have-i-been-pwned-breaches-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "domain": "adobe.com"
}' |
apify call kawsar/have-i-been-pwned-breaches-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,kawsar/have-i-been-pwned-breaches-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/Vi5Gj1Cxfra1BjisL/builds/9QBoMlJAQNom2QfzN/openapi.json
