Add an API to get the most recent breach date by account/email
On my website, I'd like to detect if the user's password has been recently breached so I can ask them to reset their password. It would be easy if there is an endpoint that given an account/email returns a single timestamp or breached date of the most recent breach if there is one.
With the current API, the only way to achieve this is to use the v3 breachedaccount API with the option truncateResponse set to false. The untruncated response body of the endpoint is quite large. On top of that, I'd have to deserialize the response to JSON then iterate through the array within the JSON to see if "BreachDate" is recent.
I think an efficient endpoint that can return the most recent breach date would come in handy when trying to protect users on web applications. I'd love to call this endpoint from login/registration pages.