jQuery Implementation

Password Request

$.getJSON("https://api.leakedpassword.com/pass/{your-password}", function(data) {
    console.log(data);
});

SHA1 Hash Request

$.getJSON("https://api.leakedpassword.com/sha1/{your-sha1-hash}", function(data) {
    console.log(data);
});

Response

{
    "password": {
        "leak": true,
        "hash": "7110eda4d09e062aa5e4a390b0a572ac0d2c0220",
        "seen": 1256907
    }
}