# Slackbot with Discourse Admin stats

**URL:** https://meta.discourse.org/t/slackbot-with-discourse-admin-stats/139167
**Category:** Development
**Tags:** rest-api
**Created:** [January 20, 2020, 9:26am UTC](https://meta.discourse.org/t/slackbot-with-discourse-admin-stats/139167 "2020-01-20T09:26:52Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Konrad\_Sopala](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/konrad_sopala/32/167014_2.png) [@Konrad\_Sopala](https://meta.discourse.org/u/Konrad_Sopala)
#### Post date: [January 20, 2020, 9:26am UTC](https://meta.discourse.org/t/slackbot-with-discourse-admin-stats/139167/1 "2020-01-20T09:26:52Z")

</div>

Hey there everyone! Looking for a bit of guidance with out development process.

### What we want to build?

A Slackbot will feed of data like (new users created, topics created, solutions created, likes given etc.) from our admin dashboard in Discourse and posting it on aa daily / weekly basis via the Slackbot to one of the channels we have in Slack

### Question

Have anyone built something like that already? Any tips, guidance really appreciated!

---

<div class="post-metadata">

### Author: ![Konrad\_Sopala](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/konrad_sopala/32/167014_2.png) [@Konrad\_Sopala](https://meta.discourse.org/u/Konrad_Sopala)
#### Post date: [January 27, 2020, 1:51pm UTC](https://meta.discourse.org/t/slackbot-with-discourse-admin-stats/139167/2 "2020-01-27T13:51:03Z")

</div>

I haven’t seem to find any API endpoints in Discourse API to be able to fetch that data

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [January 27, 2020, 2:05pm UTC](https://meta.discourse.org/t/slackbot-with-discourse-admin-stats/139167/3 "2020-01-27T14:05:44Z")

</div>

You can fetch all the report data (well, any data in Discourse) via the API. Check out

> [@Reverse engineer the Discourse API](https://meta.discourse.org/t/how-to-reverse-engineer-the-discourse-api/20576):
>
> Discourse is backed by a complete JSON api. Anything you can do on the site you can also do using the JSON api. The API is documented at [docs.discourse.org](https://docs.discourse.org). You can also use the [discourse\_api](https://github.com/discourse/discourse_api) Ruby gem as a client library. However, not every endpoint is documented. To determine how to do something with the JSON API here are some steps you can follow. Example: recategorize a topic. Go to a topic and start editing a category: Open Chrome dev tools, switch to the Network tab, select …

For the report data, you can just add `.json` to the URL. For example `/admin/reports/topics.json?end_date=2020-01-26&start_date=2019-12-26` will get you all the data for the topics report.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [December 12, 2023, 10:27am UTC](https://meta.discourse.org/t/slackbot-with-discourse-admin-stats/139167/4 "2023-12-12T10:27:33Z")

</div>



---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [January 11, 2024, 10:27am UTC](https://meta.discourse.org/t/slackbot-with-discourse-admin-stats/139167/5 "2024-01-11T10:27:52Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
