# Getting a topic statistics with API

**URL:** <https://meta.discourse.org/t/getting-a-topic-statistics-with-api/237052>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [August 24, 2022, 1:08pm UTC](https://meta.discourse.org/t/getting-a-topic-statistics-with-api/237052 "2022-08-24T13:08:42Z")\
**Posts on this page:** 2\
**Page:** 1

## AI-generated summary

In the Development category under the topic "Getting a topic statistics with API," user [Chittaranjan_Jena](/t/-/237052/1) asks how to retrieve specific topic statistics, such as the reply count highlighted in an attached screenshot, using the Discourse REST API. After searching existing documentation and forums without success, they request assistance. User [pfaffman](/t/-/237052/2) responds by providing two key resources: a link to a discussion on how to get accurate reply counts via the API and a guide on how to reverse engineer the Discourse API for further investigation.

<div class="post-metadata">

**Author:** ![Chittaranjan\_Jena](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chittaranjan_jena/32/260683_2.png) [@Chittaranjan\_Jena](https://meta.discourse.org/u/Chittaranjan_Jena)\
**Post date:** [August 24, 2022, 1:08pm UTC](https://meta.discourse.org/t/getting-a-topic-statistics-with-api/237052/1 "2022-08-24T13:08:42Z")

</div>

How to get statistics of a topic (highlighted in red box in attached image) through API? I referred the discourse APIs and searched in forum but couldn’t get a proper answer. Can someone help please?

Regards

 ![Screenshot 2022-08-24 at 6.33.16 PM](https://global.discourse-cdn.com/meta/original/4X/d/5/4/d540eeaedff6a278cfe281f164ccf17106f9c54a.png)

---

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [August 24, 2022, 2:57pm UTC](https://meta.discourse.org/t/getting-a-topic-statistics-with-api/237052/2 "2022-08-24T14:57:07Z")

</div>

See `https://meta.discourse.org/t/how-to-get-accurate-reply-count-through-api/144267.json` and [How to reverse engineer the Discourse API](https://meta.discourse.org/t/how-to-reverse-engineer-the-discourse-api/20576)
