# Pwned Passwords API

> Returns breached password hash suffixes and breach counts for a 5-character SHA-1 prefix.

Category: Utilities. Region: global. 1 endpoint at `https://api.hoshime.com/v1/pwnedpasswords/<endpoint>`, `GET` with query parameters, answering `{data, meta}` (see https://hoshime.com/docs/responses.md). Reference: https://hoshime.com/docs/platforms/pwnedpasswords
## GET /v1/pwnedpasswords/range

Breached password hashes that share a 5-character SHA-1 prefix, with their breach counts (k-anonymity).

Scope: `social:read` · Units: 1 · Cached: 1440 min

| Parameter | Type | Required | Description |
|---|---|---|---|
| `prefix` | string | yes | First five hex characters of the SHA-1 hash of a password, such as 5BAA6. The password itself is never sent. (e.g. 5BAA6) |
| `tunnel` | string | no | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
| `proxy` | string | no | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
| `profileId` | string | no | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |

Response data fields: `items` (Hash[]), `items[].count` (integer (int64)), `items[].suffix` (string), `prefix` (string)

```bash
curl "https://api.hoshime.com/v1/pwnedpasswords/range?prefix=5BAA6" -H "Authorization: Bearer $HOSHIME_TOKEN"
```
