The best way for you to retrieve this information is via the Get all engagements | Engagements API. While there currently isn't a way for you to search and filter the engagements based on an engagement type/user/date range, you can loop through the results on your server and filter it accordingly. You would also need to implement a count logic to get the total count shown in the dashboard example.