具
Pwned Passwords API
1 endpointUtilitiesGlobalsocial:read1 real examples
Returns breached password hash suffixes and breach counts for a 5-character SHA-1 prefix.
View as Markdown| GET | /pwnedpasswords/range | Breached password hashes that share a 5-character SHA-1 prefix, with their breach counts (k-anonymity). |
range
GET
/v1/pwnedpasswords/rangeBreached password hashes that share a 5-character SHA-1 prefix, with their breach counts (k-anonymity).
scope social:read1 unitcached 24 h
Parameters
prefixstring required | First five hex characters of the SHA-1 hash of a password, such as 5BAA6. The password itself is never sent. e.g. 5BAA6 |
tunnelstring | 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. |
proxystring | 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. |
profileIdstring | 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
4 fields
items | Hash[] |
count | integer (int64) |
suffix | string |
prefix | string |
curl "https://api.hoshime.com/v1/pwnedpasswords/range?prefix=5BAA6" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/pwnedpasswords/range?prefix=5BAA6", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/pwnedpasswords/range?prefix=5BAA6", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "items": [ { "count": 2, "suffix": "003CD215739D7C1B2218670D26F81408237" }, { "count": 29, "suffix": "003D68EB55068C33ACE09247EE4C639306B" } ], "prefix": "5BAA6" }, "meta": { "cached": false, "endpoint": "range", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "pwnedpasswords", "requestId": "req_2Xb9kQ…", "units": 1 } }