Have I Been Pwned
Data breaches that include email accounts or domains
Managed auth
Authentication
Methods your end users can connect with. Credentials are stored encrypted, and secret values are never shown again or returned by the API.
API key
Your users enter
- API key (32 hexadecimal characters)SecretRequired
Where to find them
- The API is paid.
- Get a subscription at haveibeenpwned.com/API/Key (Core, Pro…).
- Copy the key from the dashboard of your account (haveibeenpwned.com/Dashboard). The plan sets the requests per minute (if exceeded, it responds 429); to search by domain you must verify it first in the dashboard, and “stealer logs” require the Pro plan.
Tools (2)
Have I Been Pwned API request
HAVEIBEENPWNED_SEND_REQUESTAuthenticated call to the Have I Been Pwned API (https://haveibeenpwned.com/api/v3). Any endpoint of the API is allowed. Examples: GET /breachedaccount/{email}?truncateResponse=false, GET /pasteaccount/{email}, GET /breacheddomain/{verified domain}, GET /subscribeddomains, GET /stealerlogsbyemail/{email} (Pro), GET /breaches?Domain=adobe.com, GET /breach/{Name}, GET /latestbreach, GET /dataclasses. A 404 means there are no results.
Required scopes
No scopes required
Input
Have I Been Pwned API request input Name Type Description methodstringHTTP methodOne of: GET,POST,PUT,PATCH,DELETEDefault:"GET"pathrequiredstringPath relative to the API base URL, or a full URL on the same API (e.g. a next-page link) queryobjectQuery string parameters bodyunknownJSON body formobjectBody as application/x-www-form-urlencoded instead of JSON body_base64stringBinary body, base64 (at most 960000 characters) content_typestringContent-Type of body_base64 headersobjectExtra headers such as Accept. Authentication is added automatically. Breaches of an account
HAVEIBEENPWNED_LIST_ACCOUNT_BREACHESPublic breaches that include an email address: name, domain, date, affected accounts and types of exposed data (passwords, phone numbers…). It counts toward the plan's requests-per-minute limit.
Required scopes
No scopes required
Input
Breaches of an account input Name Type Description emailrequiredstringEmail address include_unverifiedbooleanInclude unverified breachesDefault: true

