rbrlortie needs to display statistics about their Discourse instance, specifically the count of latest posts. simon suggests using the /about.json endpoint for total posts and topics, as well as data for the last 7 and 30 days. For a specific time period, simon recommends making an API call to /admin/reports/posts.json with start_date and end_date query parameters. rbrlortie finds this solution helpful.
Some of the data you are looking for is available at /about.json. It will give you the total number of posts and topics, and also data for the last 7 days and the last 30 days.
To get the post count for a specific time period, you can make an API call to any of the admin reports that are displayed on your site’s dashboard. For the posts report, you can make a query to /admin/reports/posts.json. The start_date and end_date can be set as query parameters.