---
title: "Get all pastes for an account"
method: GET
path: "/pasteaccount/{account}"
---

# Get all pastes for an account

`GET /pasteaccount/{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.

## Path parameters

- `account` string, required

## Headers

- `user-agent` string, required

## Response `200`

List of pastes, sorted chronologically with the newest paste first

- Paste[]
  - `Source` string, required — The paste service the record was retrieved from. Current values are: Pastebin, Pastie, Slexy, Ghostbin, QuickLeak, JustPaste, AdHocUrl, PermanentOptOut, OptOut.
  - `Id` string, 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.
  - `Title` string, 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.
  - `Date` string, 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.
  - `EmailCount` integer, required — The number of emails that were found when processing the paste.

## Other responses

- `400` — Bad request — invalid account format
- `401` — Unauthorized — the hibp-api-key header was missing, malformed, or invalid.
- `403` — Forbidden — no user agent has been specified in the request.
- `404` — Not found — no pastes for account
- `429` — Too many requests — rate limit exceeded
- `503` — Service unavailable

---

[API](https://skmtc.net/haveibeenpwned/apis/have-i-been-pwned-api-v3.md) · [All operations](https://skmtc.net/haveibeenpwned/apis/have-i-been-pwned-api-v3/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/haveibeenpwned/have-i-been-pwned-api-v3/revisions/b6c35caec844/schema)
