v2

latestOpenAPI 3.0.3Creative Commons Attribution 4.0 International2026-08-01171171.3 KB

Get all pastes for an account

Available on Core, Pro, and High RPM subscriptions. Searches for pastes containing the supplied email address. The address is not case-sensitive, is trimmed of leading or trailing whitespace, and should always be URL encoded. This is an authenticated API requiring both the hibp-api-key and user-agent headers.

get/pasteaccount/{account}

Path parameters

accountstring required

URL-encoded email address to search for pastes

Headers

user-agentstring required

User agent string identifying the consuming application. Required on all documented requests, including unauthenticated endpoints; missing user agents may receive HTTP 403 responses.

Response

List of pastes, sorted chronologically with the newest paste first

Sourcestring required

The paste service the record was retrieved from. Current values are: Pastebin, Pastie, Slexy, Ghostbin, QuickLeak, JustPaste, AdHocUrl, PermanentOptOut, OptOut.

Idstring required

The ID of the paste as it was given at the source service. Combined with the 'Source' attribute, this can be used to resolve the URL of the paste.

Titlestring nullable

The title of the paste as observed on the source site. This may be null and if so will be omitted from the response.

Datestring date-time nullable

The date and time (precision to the second) that the paste was posted. This is taken directly from the paste site when this information is available but may be null if no date is published.

EmailCountinteger required

The number of emails that were found when processing the paste.