DEV Community

Cover image for Discover The Dark Web Exposure API
Etuge Anselm for Dakidarts

Posted on

Discover The Dark Web Exposure API

Check if a password has been exposed in known breaches. Future updates will add full email/username/domain scan support.

Dark Web Exposure API


Authentication

All requests require your RapidAPI key in headers:

"x-rapidapi-key": "YOUR_RAPIDAPI_KEY" "x-rapidapi-host": "dark-web-exposure-api.p.rapidapi.com" 
Enter fullscreen mode Exit fullscreen mode

Endpoints

1. Check Password Exposure

POST /password

Check if a password has appeared in known breaches (using pwnedpasswords).

Request Body

{ "password": "mypassword123" } 
Enter fullscreen mode Exit fullscreen mode

Successful Response

{ "ok": true, "breach_count": 1523 } 
Enter fullscreen mode Exit fullscreen mode
  • breach_count → Number of times this password appeared in known breaches.
  • A count of 0 means the password hasn’t been exposed.

Error Response

{ "error": { "code": "missing_password", "message": "Provide a password." } } 
Enter fullscreen mode Exit fullscreen mode

Roadmap (Upcoming)

  • /scan endpoint for email / username / domain breach checks.

Top comments (0)