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

# Get all pastes for an account

`GET /pasteaccount/{account}`

## Request

- Base URL: `https://haveibeenpwned.com/api/v3`
- URL: `https://haveibeenpwned.com/api/v3/pasteaccount/{account}`
- Auth: API key in header `hibp-api-key`

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, required: The title of the paste as observed on the source site, or null when no title is available.
  - `Date` string, 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.
  - `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`: No pastes found, or the account has opted out. The response body is empty.
- `429`: Too many requests - rate limit exceeded
- `503`: Service unavailable or an edge challenge. The response may be HTML or plain text; do not assume a JSON error body.

## Changes

- **2026-11-16** `7bd47da8c4f3`: 8 breaking, 3 info
  - the response's body type changed from `object` to `string` for status `400`
  - the response's body type changed from `object` to `string` for status `403`
  - removed the media type `application/json` for the response with the status `404`
  - removed the media type `application/json` for the response with the status `503`
  - …7 more
- **2026-09-11** `1bb60b713979`: 2 info
  - api operation id `getAccountPastes` was added
  - api tag `Pastes` added
- **2026-03-24** `129587cd1899`: 2 breaking, 5 info
  - the response property `items/Date` became nullable for the status `200`
  - the response property `items/Title` became nullable for the status `200`
  - added the non-success response with the status `400`
  - added the non-success response with the status `401`
  - …3 more

[Operation history](https://skmtc.dev/haveibeenpwned/apis/have-i-been-pwned-api-v3/changes/pasteaccount/:account/get.md)

---

[API](https://skmtc.dev/haveibeenpwned/apis/have-i-been-pwned-api-v3.md) - [All operations](https://skmtc.dev/haveibeenpwned/apis/have-i-been-pwned-api-v3/llms.txt) - [OpenAPI document](https://skmtc.dev/haveibeenpwned/apis/have-i-been-pwned-api-v3/revisions/52f578954670?raw)
