Have I Been Pwnd Connector

Documentation

Base Url

http://lzrconnector-haveibeenpwnd.lazarustechservices.com

Get leaks by email

v1

http://lzrconnector-haveibeenpwnd.lazarustechservices.com/v1/get-leaks-by-email/:email

Params

Response

Returns a JSON with the information about the leaks associated with the given email.
Successful response:

{
    "status": "success",
    "cache": "boolean",
    "data": [
        {
            "Name": "string",
            "Title": "string",
            "Domain": "string",
            "BreachDate": "string",
            "AddedDate": "string",
            "ModifiedDate": "string",
            "PwnCount": "number",
            "Description": "string",
            "LogoPath": "string",
            "DataClasses": "string[]",
            "IsVerified": "boolean",
            "IsFabricated": "boolean",
            "IsSensitive": "boolean",
            "IsRetired": "boolean",
            "IsSpamList": "boolean",
            "IsMalware": "boolean",
            "IsSubscriptionFree": "boolean",
            "IsStealerLog": "boolean"
        }
    ]
}

The account has no leaks
By default, Have I Been Pwned returns a 404 with no body when there are no breaches found for an email. This connector patches that behavior and returns a 200 with an error message:

{
    "status": "success",
    "cache": "boolean",
    "data": []
}

Error

Return error message

{
    "status": "error",
    "error": "string"
}

Get last analyzed business leaks

v1

http://lzrconnector-haveibeenpwnd.lazarustechservices.com/v1/get-last-business-leaked

Params

Response

Returns a JSON with the most recent breaches:

{
    data:[
        {
            "Name": "string",
            "Title": "string",
            "Domain": "string",
            "BreachDate": "string",
            "AddedDate": "string",
            "ModifiedDate": "string",
            "PwnCount": "number",
            "Description": "string",
            "LogoPath": "string",
            "DataClasses": "string[]",
            "IsVerified": "boolean",
            "IsFabricated": "boolean",
            "IsSensitive": "boolean",
            "IsRetired": "boolean",
            "IsSpamList": "boolean",
            "IsMalware": "boolean",
            "IsSubscriptionFree": "boolean",
            "IsStealerLog": "boolean"
        }
    ]
}

Error

Return error message

{
    "error": "string"
}