# Pwned Passwords API

Category: [Security related services](https://free-web-services.com/web-services/web-development/security/)  
Page: https://free-web-services.com/web-services/web-development/security/pwned-passwords-api.html  
Documentation: https://haveibeenpwned.com/API/v3#PwnedPasswords

Pwned Passwords from Have I Been Pwned lets you check whether a password appears in known data breaches, without ever sending the password. Hash the password with SHA-1, send only the first five characters of the hash, and compare the returned list of hash suffixes and counts locally (k-anonymity). Useful to warn users at sign-up who choose a breached password. Free, no key needed. An official MCP server at https://haveibeenpwned.com/mcp lets AI agents check password hashes against Pwned Passwords without signing in.

- API key: Not needed
- Pricing: Free, no key needed.
- From the browser: Yes (CORS)
- Interface: REST, HTTP-GET, MCP
- Provider: haveibeenpwned.com
- Last checked: Working on November 16th, 2026

Example request:

```sh
curl 'https://api.pwnedpasswords.com/range/21BD1'
```

The JavaScript works in a web page as well as in Node.js 18 or newer.

