API & MCP

Everything a person can do on Private Breach Checker, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Private Breach Checker

Checks a password against the Have I Been Pwned Pwned Passwords collection using k-anonymity: your browser hashes the password with SHA-1 and sends only the first 5 of 40 hex characters. The server and API accept only a SHA-1 hash or 5-character prefix, never a password.

Inputs of Private Breach Checker
FieldTypeDefaultDescription
hash (required)text—SHA-1 hash or 5-character prefix. Hex only. Never enter a password here. With JavaScript on, use the password box above.

Example request

SHA-1 of the password "password"

curl -X POST https://privatebreachchecker.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"hash":"5BAA61E4C9B93F3F0682250B6CF8331B7EE68FD8"}'

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

{
  "mcpServers": {
    "private-breach-checker": { "type": "http", "url": "https://privatebreachchecker.usefulweb.site/mcp" }
  }
}