Breach catalogue

Get the most recently added breach

Changed on

Returns the most recently added breach based on AddedDate. This endpoint is unauthenticated. A user-agent header is recommended.

get/latestbreach

Request

  • Base URL
    https://haveibeenpwned.com/api/v3
  • Auth
    none required

Headers

user-agentstring

Recommended user agent identifying the consuming application. This unauthenticated endpoint does not require the header. Browsers may supply their own User-Agent.

Response

The latest breach based on AddedDate

Namestring required

A Pascal-cased name representing the breach which is unique across all other breaches. This value never changes and may be used to name dependent assets (such as images) but should not be shown directly to end users (see the 'Title' attribute instead).

Titlestring required

A descriptive title for the breach suitable for displaying to end users. It's unique across all breaches but individual values may change in the future (i.e. if another breach occurs against an organisation already in the system).

Domainstring required

The domain of the primary website the breach occurred on. This may be used for identifying other assets external systems may have for the site.

BreachDatestring date required

The date (with no time) the breach originally occurred on in ISO 8601 format. This is not always accurate - frequently breaches are discovered and reported long after the original incident. Use this attribute as a guide only.

AddedDatestring date-time required

The date and time the breach was added to the system in ISO 8601 format, including seconds.

ModifiedDatestring date-time required

The date and time the breach was last modified in ISO 8601 format, including seconds. This is equal to or later than AddedDate.

PwnCountinteger required

The total number of addresses loaded into the system. This is usually less than the total number reported by the media due to duplication or other data integrity issues in the source data.

Descriptionstring required

Contains an overview of the breach represented in HTML markup. The description may include markup such as emphasis and strong tags as well as hyperlinks.

DataClassesstring[] required

This attribute describes the nature of the data compromised in the breach and contains an alphabetically ordered string array of impacted data classes.

IsVerifiedboolean required

True when the breach is considered verified. False indicates an unverified breach, which may not have originated from the indicated website but contains sufficient legitimate data to be included in HIBP.

IsFabricatedboolean required

Indicates that the breach is considered fabricated. A fabricated breach is unlikely to have been hacked from the indicated website and usually contains a large amount of manufactured data. However, it still contains legitimate email addresses and asserts that the account owners were compromised in the alleged breach.

IsSensitiveboolean required

Indicates a sensitive breach. Public account and hash-range searches exclude these breaches; verified-domain searches can return them.

IsRetiredboolean required

Indicates if the breach has been retired. This data has been permanently removed and will not be returned by the API.

IsSpamListboolean required

Indicates if the breach is considered a spam list. This flag has no impact on any other attributes but it means that the data has not come as a result of a security compromise.

IsMalwareboolean required

Indicates if the breach is sourced from malware. This flag has no impact on any other attributes, it merely flags that the data was sourced from a malware campaign rather than a security compromise of an online service.

IsSubscriptionFreeboolean required

Indicates if the breach is subscription-free. This flag has no impact on any other attributes, it is only used when running a domain search where a sufficiently sized subscription isn't present.

IsStealerLogboolean required

Indicates if the breach is sourced from stealer logs. A breach with this flag also has the domains that appear in the logs loaded against each email address. This data can be accessed via the stealer logs API.

LogoPathstring uri required

A URI that specifies where a logo for the breached service can be found. Logos are always in PNG format.

Attributionstring nullable

Sometimes requested by the party that provides the data to HIBP.

DisclosureUrlstring uri nullable

Link to additional information about the breach disclosure, or null when no link is available.

Changes

    • info

      the header request parameter user-agent became optional

    • info

      removed the non-success response with the status

    • info

      added the optional property DisclosureUrl to the response with the status