Pastes

Get all pastes for an account

Changed on

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}

Request

  • Base URL
    https://haveibeenpwned.com/api/v3
  • Auth
    API key in header hibp-api-key

Path parameters

accountstring required

URL-encoded email address to search for pastes

Headers

user-agentstring required

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

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 required

The title of the paste as observed on the source site, or null when no title is available.

Datestring date-time nullable required

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.

Changes

    • breaking

      the response's body type changed from object to string for status

    • breaking

      the response's body type changed from object to string for status

    • breaking

      removed the media type application/json for the response with the status

    8 more changes in this revision