Get all breaches for an account
Changed onAvailable on Core, Pro, and High RPM subscriptions. Returns the breaches for the supplied account (email address, username, or phone number). The account is not case-sensitive and is trimmed of leading or trailing whitespace. The account should always be URL encoded. This is an authenticated API requiring both the hibp-api-key and user-agent headers. Test API keys can be used to query test addresses on the hibp-integration-tests.com domain.
Request
- Base URLhttps://haveibeenpwned.com/api/v3
- AuthAPI key in header hibp-api-key
Path parameters
URL-encoded account to search for (email address, username, or phone number)
Query parameters
Returns the full breach model when false. By default, only the name of the breach is returned rather than the complete breach data.
Filters the result set to only breaches against the domain specified. It is possible that one site (and consequently domain), is compromised on multiple occasions. For example, adobe.com. Omit this parameter to search all breach domains.
Returns breaches that have been flagged as 'unverified'. By default, both verified and unverified breaches are returned when performing a search.
Headers
User agent identifying the consuming application. Required for authenticated APIs. Use your application name and optionally its version. Browsers may supply their own User-Agent instead of a custom value.
Response
A list of breaches for the account. By default the response is truncated to only the breach name. Set truncateResponse=false to receive the full breach model. Sensitive and retired breaches are not returned by the public API.
Changes
- breaking
the response's body type changed from
objecttostringfor status - breaking
removed the media type
application/jsonfor the response with the status - breaking
removed the media type
application/jsonfor the response with the status
6 more changes in this revision
- breaking