# Data Breach Check API: Email, Domain and Password Exposure (`nabeelbaghoor/data-breach-check-api`) Actor

Data breach check API on your own Enzoic account: breach exposures for emails and domains, exposed users of your domain, new breaches by date, compromised password check by partial hash (never plaintext) and exposed cards for your monitored BINs. Bring your own key.

- **URL**: https://apify.com/nabeelbaghoor/data-breach-check-api.md
- **Developed by:** [Nabeel Hassan](https://apify.com/nabeelbaghoor) (community)
- **Categories:** Developer tools, Integrations, Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.00 / 1,000 breach exposures

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## Data Breach Check API - Email, Domain and Password Exposure

Check whether your users' email addresses, your company domain, their passwords or your card BINs have been exposed in data breaches, with your own Enzoic API key, as one clean dataset row per exposure, exposed user, password verdict or exposed card.

Works with the official Enzoic API on api.enzoic.com: the Exposures API (by email, by domain, exposed users of a domain, new exposures by date, exposure details), the Passwords API and BIN exposures. Point it at a list of staff emails or your domain and get back every breach they appear in with its title, industry category, source, record count, dates, password format and the data types that leaked, ready to download as JSON, CSV or Excel, schedule, or feed into password reset workflows, SIEM alerts, account takeover defences and security awareness reports. Bring your own API key.

BYOK, route-checked but not live-tested: every path, parameter and response field comes from the Enzoic developer docs on docs.enzoic.com and Enzoic's published OpenAPI description, and all seven routes were confirmed with a probe (each answers 401 Unauthorized to an invalid key, while invented routes answer 404), but the actor has not been run against a live Enzoic key.

### What it does

- **Breach exposures for email addresses**: every breach, stealer log, combo list or paste each address appears in, with full exposure details inline. Up to 50 addresses per call, sent as SHA-256 hashes by default so the plain address never leaves the run.
- **Breach exposures for a domain**: every exposure that contained email addresses on your domain, paged through to the end.
- **Exposed users of a domain**: every email address on your domain that Enzoic has seen exposed, with the IDs of the exposures it appears in. Ideal for a forced password reset list.
- **New exposures by date**: everything Enzoic catalogued since a date up to 30 days back, optionally including exposures with personal data but no credentials.
- **Exposure details**: the full record of any exposure by ID.
- **Compromised password check**: is this password known to be compromised? Each password is hashed with SHA-256 inside the run and only the first 10 hex characters are sent (k-anonymity); the match is decided locally. The dataset carries the verdict and the line number, never the password.
- **Exposed payment cards for your BINs**: cards Enzoic recovered for the BINs your account monitors, masked to first 6 and last 4 digits by default.
- **Pay only for results**: lookups with nothing found and requests the provider refuses are recorded as a free row that says why, never charged.

### How to get an API key

Enzoic API access comes with an Enzoic account; you can request a free trial key on enzoic.com. Your account has an API key and an API secret. Paste the key into Enzoic API key and the secret into Enzoic API secret, or put both in the DATA_API_KEY secret as `key:secret`. The actor sends them only in the HTTP Basic Authorization header, as Enzoic documents, and removes them from everything it logs. BIN exposures need BINs added to monitoring in your Enzoic account first; this actor only reads.

### Input

| Field | Modes | Description |
| --- | --- | --- |
| `mode` | all | `emailExposures` (default), `domainExposures`, `domainUsers`, `recentExposures`, `exposureDetails`, `passwordCheck` or `binExposures` |
| `emails` | emailExposures | One email address per line, up to 1,000 |
| `hashEmails` | emailExposures | Send SHA-256 hashes of the lowercased address (default true) |
| `domains` | domainExposures, domainUsers | One domain per line, such as `example.com` |
| `exposureIds` | exposureDetails | One exposure ID per line |
| `passwords` | passwordCheck | Secret field: one password per line, up to 1,000 |
| `startDate`, `endDate` | lookups, BIN | YYYY-MM-DD, ISO-8601, or days back such as `30d` |
| `includeNonCredentialsExposures` | recentExposures | Also list exposures without credentials |
| `includeRawMatchSource` | binExposures | Add the breach snippet around each card |
| `showFullCardNumbers` | binExposures | Keep card numbers whole (default false: masked) |
| `maxResults` | all | Row ceiling for the run (default 100, max 10,000) |
| `apiKey`, `apiSecret` | all | Your Enzoic key and secret (or DATA_API_KEY as key:secret) |

Example: every breach your executives' emails appear in since the start of 2024.

```json
{
    "mode": "emailExposures",
    "emails": ["ceo@example.com", "cfo@example.com"],
    "startDate": "2024-01-01"
}
```

Example: every exposed address on your company domain.

```json
{
    "mode": "domainUsers",
    "domains": ["example.com"],
    "maxResults": 1000
}
```

### Example output

An illustrative exposure row, shaped like the documented ExposureDetails response (values are an example, not real data).

```json
{
    "mode": "emailExposures",
    "modeLabel": "Exposures for email addresses",
    "recordType": "exposure",
    "searchValue": "jane.doe@example.com",
    "found": true,
    "username": "jane.doe@example.com",
    "exposureId": "57dc11964d6db21300991b78",
    "title": "funsurveys.net",
    "category": "Manufacturing",
    "source": "Cybercrime Forums",
    "entries": 5123,
    "exposureDate": "2015-05-01T00:00:00.000Z",
    "dateAdded": "2016-09-16T15:36:54.000Z",
    "passwordType": "Cleartext",
    "exposedData": ["Emails", "Passwords"],
    "sourceURLs": null,
    "domainsAffected": 683,
    "sourceFileCount": 1,
    "retrievedAt": "2026-11-09T09:00:00.000Z",
    "note": null
}
```

A password check row carries `passwordNumber` (the line number in your input), `compromised`, `revealedInExposure` (false means it is in cracking dictionaries rather than a breach) and `timesExposed`. An exposed user row carries `username`, `exposureIds` and `exposureCount`.

### FAQ

#### What is Enzoic?

Enzoic (formerly PasswordPing) runs a continuously updated database of compromised credentials and data breach exposures collected from cybercrime forums, paste sites, file sharing sites, messaging services, dark web markets, stealer malware and combo lists. Its API lets companies check users, domains and passwords against that database.

#### Do I need my own Enzoic API key?

Yes. This is a bring-your-own-key actor: it calls Enzoic with your key and secret, under your Enzoic plan and the Enzoic Terms of Service. A missing or rejected key ends the run cleanly with a status message that explains what to change, and nothing is charged.

#### Is my password sent to Enzoic?

No. Each password is hashed with SHA-256 inside the run and only the first 10 hex characters of that hash are sent, as the Enzoic Passwords API documents. Enzoic answers with every candidate hash sharing that prefix and the match is checked locally. The password, its hash and the prefix are never written to the dataset or the log; rows identify each password by its line number. The Passwords field is a secret input, so it is stored encrypted.

#### Are email addresses sent in plain text?

Not by default. Enzoic recommends sending the SHA-256 hash of the lowercased address, and this actor does that unless you turn off Send emails as hashes. The domain modes send the domain name.

#### Can I check someone else's email or domain?

Use it for your own organization: your staff, your customers' accounts on your service, your domains and your BINs. Enzoic's terms forbid building applications that harvest usernames and passwords or perform other malicious activity.

#### What is the difference between exposures for a domain and exposed users of a domain?

Exposures for a domain lists each breach that contained addresses on the domain, with its full details. Exposed users of a domain lists each affected email address with the IDs of the breaches it appears in. Run Exposure details with those IDs for the full records.

#### Can I get the leaked passwords for my users?

No. That is Enzoic's Cleartext Credentials API, which is restricted to vetted organizations and is deliberately not wrapped here. This actor tells you who and what was exposed, not the leaked passwords themselves.

#### What happens when nothing is found?

The lookup comes back as one row with found set to false and a note saying Enzoic has no exposures for that value. It is never charged.

#### What do I pay?

Pay per result: 0.01 USD per breach exposure or exposed payment card, 0.005 USD per exposed user of a domain and 0.005 USD per password checked. Empty lookups and refused requests are never charged. Your Enzoic plan and its monthly API call quota are billed separately by Enzoic.

#### What happens if my key is wrong or my quota runs out?

A 401 (wrong key or secret) ends the run cleanly with a message saying so. Enzoic answers 403 when the rate limit or the monthly quota is used up; the actor waits and retries twice, then ends cleanly with the API's own words. Server errors are retried.

### Pricing

| Event | Price | Charged for |
| --- | --- | --- |
| `exposure-row` | 0.01 USD | Each breach exposure (by email, domain, date or ID) |
| `exposed-user` | 0.005 USD | Each exposed email address of a domain |
| `password-check` | 0.005 USD | Each password checked |
| `payment-card` | 0.01 USD | Each exposed card for your monitored BINs |

### Keyword map

data breach check API, email breach lookup, breached email checker, compromised password check, pwned password API, k-anonymity password check, domain breach monitoring, exposed employee emails, credential exposure API, account takeover prevention, dark web exposure check, stealer log exposure, combo list exposure, BIN monitoring, compromised card numbers, Enzoic API, PasswordPing.

### Terms and data use

Use of the Enzoic API is governed by your Enzoic agreement and the Enzoic Terms of Service. Section 7.2(c) forbids using the Service to create an application that performs malicious activity, including harvesting usernames and passwords; section 7.3 forbids assigning or sub-licensing your rights to use the Enzoic Software. The terms set no storage or cache time limit, and section 8.1 leaves your own Content and Application with you. Run this actor with your own key, to protect your own users, domains and cards. This actor is not affiliated with or endorsed by Enzoic.

# Actor input Schema

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

Each mode calls one documented read-only route of the Enzoic API with your own key. Nothing is added to or removed from monitoring in your Enzoic account. Check your own users, staff, domains and BINs only.

## `apiKey` (type: `string`):

Your own Enzoic API key, from your Enzoic account. It is sent only in the Basic Authorization header and removed from every log line. You can also paste key:secret here and leave the secret empty. Leave empty to use the DATA_API_KEY secret, set to key:secret.

## `apiSecret` (type: `string`):

The API secret that belongs to the key above.

## `emails` (type: `array`):

Breach exposures for email addresses only. One address per line, up to 1,000 a run, sent in batches of 50.

## `hashEmails` (type: `boolean`):

Breach exposures for email addresses only. On: each address is sent as the SHA-256 hash of the lowercased address, as the Enzoic docs recommend, so the plain address never leaves the run. Off: the plain address is sent.

## `domains` (type: `array`):

Exposures for a domain and exposed users of a domain. One domain you own per line, such as example.com.

## `exposureIds` (type: `array`):

Exposure details only. One exposure ID per line, as the exposureId or exposureIds columns of the other modes return them.

## `passwords` (type: `string`):

Compromised password check only. One password per line, up to 1,000. Each is hashed with SHA-256 inside the run and only the first 10 hex characters of the hash are sent to Enzoic. The dataset shows each password by its line number, never the password or its hash.

## `startDate` (type: `string`):

Only exposures (or BIN card finds) on or after this date: YYYY-MM-DD, a full ISO-8601 timestamp, or days back such as 30d. New exposures by date needs it within the last 30 days and defaults to 7d.

## `endDate` (type: `string`):

Only exposures (or BIN card finds) on or before this date: YYYY-MM-DD, a full ISO-8601 timestamp, or days back such as 1d. Not used by New exposures by date. A BIN range may span at most 30 days.

## `includeNonCredentialsExposures` (type: `boolean`):

New exposures by date only. Also return exposures that held personal data but no usernames or passwords.

## `includeRawMatchSource` (type: `boolean`):

Exposed payment cards only. Add the text snippet from the breach source around each card number. Enzoic warns this can be slow on large result sets.

## `showFullCardNumbers` (type: `boolean`):

Exposed payment cards only. Off: card numbers, in the row and in the snippet, are masked to the first 6 and last 4 digits. On: they are kept whole.

## `maxResults` (type: `integer`):

The most rows this run returns in total, across all values. Each row with data is one charged result, so a low cap also limits cost and Enzoic API calls.

## Actor input object example

```json
{
  "mode": "emailExposures",
  "emails": [
    "jane.doe@example.com"
  ],
  "hashEmails": true,
  "includeNonCredentialsExposures": false,
  "includeRawMatchSource": false,
  "showFullCardNumbers": false,
  "maxResults": 20
}
```

# Actor output Schema

## `records` (type: `string`):

One row per exposure, exposed user, password check or exposed card.

# 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 = {
    "emails": [
        "jane.doe@example.com"
    ],
    "maxResults": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("nabeelbaghoor/data-breach-check-api").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 = {
    "emails": ["jane.doe@example.com"],
    "maxResults": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("nabeelbaghoor/data-breach-check-api").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 '{
  "emails": [
    "jane.doe@example.com"
  ],
  "maxResults": 20
}' |
apify call nabeelbaghoor/data-breach-check-api --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,nabeelbaghoor/data-breach-check-api"
        }
    }
}
```

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/HlKkwVc7CP2R3bJfP/builds/vxSUxvypZep3dMa07/openapi.json
