Webhooks are fired when an action occurs on the Discourse site, so they will not be useful for getting details about historical activity on the site. You can get a lot of details about the Discourse site through the API. This would be a good approach for categories, groups, and badges. There are API endpoints for those tables, so you can get the data with a single request and then save it on your client’s web application. For a PHP example of how to get categories, see: https://github.com/discourse/wp-discourse/blob/master/lib/utilities.php#L78.