Exporting a Domain's Credentials
This endpoint requires access to Account & Session Takeover Prevention (ASTP). Please contact your Customer Success Manager for more details.
Flare’s Leaked Credentials API can be used to export a domain’s leaked credentials.
This guide will explain how to export all leaked credentials for the example.com domain using the credentials/_search endpoint.
Export Steps
Fetch one page of results
Use the credentials/_search
endpoint to fetch one page of results.
If the returned page of results is empty, this means that the export is complete.
Print the results
Loop over the response’s items and print the results.
Ratelimit and go to step 1
Wait one second to avoid going over the API rate limit. Then, go back to step 1 to fetch the next page.
End-to-End Examples
These are end-to-end examples in various programming languages.