Is there a reason why you don't integrate with their API instead? Seems like they offer have what you need: https://haveibeenpwned.com/API/v2