Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Checks email addresses against the Have I Been Pwned v3 API to list known data breaches and pastes.
Use this skill ↓61% 83%+22 ptsof test cases passed
Passed 19 of 23 test cases with the skill, and 14 of 23 without it.
3 of 3 safety checks passed
Not used yet
Look up whether an email address has appeared in any publicly known data breaches. Uses the Have I Been Pwned v3 API.
Requires: HIBP_API_KEY in .env — $3.50/month subscription at haveibeenpwned.com/API/Key
$email = "[email protected]"
$key = $env:HIBP_API_KEY
$url = "https://haveibeenpwned.com/api/v3/breachedaccount/$([Uri]::EscapeDataString($email))?truncateResponse=false"
$result = Invoke-RestMethod -Uri $url -Headers @{ "hibp-api-key" = $key } -ErrorAction SilentlyContinue
if ($null -eq $result) {
Write-Host "✅ $email was NOT found in any known data breaches."
} else {
Write-Host "⚠️ $email found in $($result.Count) breach(es):"
$result | ForEach-Object {
Write-Host " • $($_.Name) ($($_.BreachDate)) — $($_.DataClasses -join ', ')"
}
}
$email = "[email protected]"
$key = $env:HIBP_API_KEY
$url = "https://haveibeenpwned.com/api/v3/pasteaccount/$([Uri]::EscapeDataString($email))"
Next to this one in the catalogue, plus more from the same author.