How to REST the Have I Been Pwned (HIBP) API
Contents
Perform REST API requests to the HIBP API to verify if your email or password have been involved in a data breach.
Prerequisites
- REST Client (VSCode) or Postman
- HIBP API Key
I prefer integrated extensions like REST Client within my developer workspace to not have to switch between applications - Yeah I’m lazy, so what.
A working version for REST calls for email, passwords and breaches can be found at segraef/Scripts/REST or my tiny HIBP web app I wrote using Python and Flask but let me give you the single snippet here to give you the idea:
|
|
Output
The output looks like this:
A more detailed and non-truncated response with breach details looks like this:
|
|