Password Breach Check API - Free Have I Been Pwned Lookup
Hashes the password with SHA-1, sends only the first 5 characters of the hash to the Have I Been Pwned database, and checks if the full hash appears in known breaches. The full password and full hash are never transmitted. Returns whether the password is breached, how many times it appeared, and a recommendation.
Code examples
curl -X POST https://api.botoi.com/v1/breach/check \
-H "Content-Type: application/json" \
-d '{"password":"P@ssw0rd123"}'When to use this API
Enforce breach-aware password policies at signup
Check passwords against known breaches during account creation. Reject passwords that appear in breach databases and prompt users to choose a stronger alternative. Reduces credential stuffing risk.
Audit existing user passwords in bulk
Hash stored passwords and check them against the breach database. Flag affected accounts for mandatory password resets. Run this as a scheduled job after major breach disclosures.
Add breach warnings to password change flows
When users update their password, check the new password in real time. Show a warning with the breach count if the password is compromised. Let users proceed but make the risk visible.
Frequently asked questions
Is my password sent to the server?
What is k-Anonymity?
How many breaches does this check against?
Does a breach_count of 0 mean the password is safe?
Can I check multiple passwords at once?
Get your API key
Free tier includes 5 requests per minute with no credit card required. Upgrade for higher limits.