Skip to content
.NET API for RESTful api
Branch: master
Clone or download
Latest commit e718403 Nov 8, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
SharpPwned.NET Moved IHaveIBeenPwnedRestClientto the interfaces folder Nov 8, 2019
.gitignore Add .gitignore and .gitattributes. Aug 4, 2017
LICENSE Remove duplicate Install-Package Mar 3, 2019
SharpPwned.NET.sln Add project files. Aug 4, 2017


This library wraps v2 RESTful API in .NET Standard.


var client = new HaveIBeenPwnedRestClient();
var response = client.IsPasswordPwned("hunter2").Result;

This will return a bool value, depending on if the password is indeed pwned.

using SharpPwned.NET.Model;

var client = new HaveIBeenPwnedRestClient();
var response = client.GetAccountBreaches("").Result;
foreach(Breach x in response)

GetAccountBreaches will return a list Breach objects, each Breach represents a single breached site and holds values as Name, Domain, Account Count etc. For full list of values, visit API Documentation.

This project targets .NET Standard 1.4

Nuget Package:

PM> Install-Package SharpPwned.NET

You can’t perform that action at this time.