Pwned Passwords range search (k-Anonymity)
Changed onFree Pwned Passwords range search using k-anonymity. This endpoint does not require authentication and is not rate limited; a user-agent header is recommended. Provide the first 5 characters of either a SHA-1 or NTLM hash to receive matching suffixes and prevalence counts.
Request
- Base URLhttps://api.pwnedpasswords.com
- Authnone required
Path parameters
First 5 characters of a SHA-1 or NTLM hash (hexadecimal, not case-sensitive) For example, 5BAA6 is the SHA-1 prefix of the demonstration password "password"; use five characters here, versus six for email hash ranges.
Query parameters
Returns NTLM hash suffixes when set to 'ntlm'. When the mode is not specified or is any value other than 'ntlm', the resulting hashes will be in SHA-1 form.
Headers
Recommended user agent identifying the consuming application. This unauthenticated endpoint does not require the header. Browsers may supply their own User-Agent.
Adds random padding to Pwned Passwords responses (discard padded entries with count of 0).
Response
Hash suffixes and prevalence counts. Each line contains a hash suffix followed by a colon and the count of how many times the password appears in the data set. Padded entries (when Add-Padding is used) always have a count of 0 and should be discarded. SHA-1 suffixes contain 35 hexadecimal characters; NTLM suffixes contain 27. Every valid prefix returns 200, even if the full hash being searched is absent. Lines are separated by CRLF.
Changes
- info
the
headerrequest parameteruser-agentbecame optional - info
added the non-success response with the status
- info
removed the non-success response with the status
- info