# The replies column is not matching

**URL:** https://meta.discourse.org/t/the-replies-column-is-not-matching/338450
**Category:** Support
**Tags:** rest-api
**Created:** [November 26, 2024, 9:29am UTC](https://meta.discourse.org/t/the-replies-column-is-not-matching/338450 "2024-11-26T09:29:32Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Nestor\_Matias](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nestor_matias/32/393562_2.png) [@Nestor\_Matias](https://meta.discourse.org/u/Nestor_Matias)
#### Post date: [November 26, 2024, 9:29am UTC](https://meta.discourse.org/t/the-replies-column-is-not-matching/338450/1 "2024-11-26T09:29:33Z")

</div>

i need some help i will i am trying to access to api /latest.json but the replies column is not matching why is that you can see it in the screenshots replies are 1 and in the api json is 0 am i missing something ?

 ![image](https://global.discourse-cdn.com/meta/original/4X/a/9/f/a9fc6972cc8b1f796fa88ab6a729bf198a9b34bf.png)  
 ![image](https://global.discourse-cdn.com/meta/original/4X/a/4/4/a448e1bb63e5e2e14ef0c8101b9104e959ea2e67.png)

---

<div class="post-metadata">

### Author: ![NateDhaliwal](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/natedhaliwal/32/313494_2.png) [@NateDhaliwal](https://meta.discourse.org/u/NateDhaliwal)
#### Post date: [November 26, 2024, 9:49am UTC](https://meta.discourse.org/t/the-replies-column-is-not-matching/338450/2 "2024-11-26T09:49:04Z")

</div>

Could you send a screenshot of the posts in the topic?  
Thanks.

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [November 26, 2024, 9:54am UTC](https://meta.discourse.org/t/the-replies-column-is-not-matching/338450/3 "2024-11-26T09:54:34Z")

</div>

`reply_count` parameter refers to direct replies to the post.

> [@How to get accurate reply count through API?](https://meta.discourse.org/t/how-to-get-accurate-reply-count-through-api/144267/2):
>
> The reply\_count parameter on a post gives you the number of direct replies to the post. A reply to a post is created by clicking the “Reply” button that is directly under the post. Replies to the topic’s original post are an exception to this. If a post is created by clicking the Reply button directly under the topic’s first post, it will not increment the OPs reply count. The reply\_count on a topic is the total number of direct replies to posts in that topic. It is not the total number of post…

> The `reply_count` on a _topic_ is the total number of direct replies to posts in that topic. It is not the total number of posts in the topic.

---

<div class="post-metadata">

### Author: ![Nestor\_Matias](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nestor_matias/32/393562_2.png) [@Nestor\_Matias](https://meta.discourse.org/u/Nestor_Matias)
#### Post date: [November 26, 2024, 10:00am UTC](https://meta.discourse.org/t/the-replies-column-is-not-matching/338450/4 "2024-11-26T10:00:03Z")

</div>

hi @NateDhaliwal here is the post …

 ![image](https://global.discourse-cdn.com/meta/original/4X/d/c/3/dc3920301f2dd3d6a62f97f7b08ac568b0afc663.png)  
it has only one reply

---

<div class="post-metadata">

### Author: ![Nestor\_Matias](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nestor_matias/32/393562_2.png) [@Nestor\_Matias](https://meta.discourse.org/u/Nestor_Matias)
#### Post date: [November 26, 2024, 10:08am UTC](https://meta.discourse.org/t/the-replies-column-is-not-matching/338450/5 "2024-11-26T10:08:39Z")

</div>

@Lilly thanks Lily but in the json how to get the total reply number as you can see in my forum? if the json file as you can see none of those fields belong to reply?

---

<div class="post-metadata">

### Author: ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)
#### Post date: [November 26, 2024, 10:13am UTC](https://meta.discourse.org/t/the-replies-column-is-not-matching/338450/6 "2024-11-26T10:13:19Z")

</div>

topic replies would be `post_count - 1`

> For finding the total number of comments in a topic, look at the topic’s `posts_count` value.

---

<div class="post-metadata">

### Author: ![nat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nat/32/235063_2.png) [@nat](https://meta.discourse.org/u/nat)
#### Post date: [November 26, 2024, 10:58am UTC](https://meta.discourse.org/t/the-replies-column-is-not-matching/338450/7 "2024-11-26T10:58:27Z")

</div>

> [@Nestor\_Matias](#):
>
> ![image](https://global.discourse-cdn.com/meta/original/4X/d/c/3/dc3920301f2dd3d6a62f97f7b08ac568b0afc663.png)

What version of the app are you on? We’ve updated our topic map:

> [@Feedback on our simplified topic map experiment](https://meta.discourse.org/t/feedback-on-our-simplified-topic-map-experiment/307584):
>
> As of August 2024 this is no longer an experiment, and is part of Discourse by default! Previously we asked for some feedback about our topic map in [Request for feedback: how do you use the topic map?](https://meta.discourse.org/t/request-for-feedback-how-do-you-use-the-topic-map/294587) Today we’re rolling out an experimental topic map here on Meta that dramatically simplifies this layout, while keeping much of the useful information available behind a click. Before: After: What’s changed: Removed created, last reply, and reply count. This information is…

I highly recommend updating your site.

---

<div class="post-metadata">

### Author: ![nat](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nat/32/235063_2.png) [@nat](https://meta.discourse.org/u/nat)
#### Post date: [November 26, 2024, 11:09am UTC](https://meta.discourse.org/t/the-replies-column-is-not-matching/338450/8 "2024-11-26T11:09:19Z")

</div>

Separately for your question:

`reply_count` in json refers to a specific reply to a post, e.g. clicking on this particular reply button below the post:

 ![post controls](https://global.discourse-cdn.com/meta/original/4X/b/6/b/b6bfc78b75d4376f3a32c1e434f85b2bf96a5b94.png)

whereas replies is essentially a count of every reply from the OP (topic / first post).

* * *

Using this meta topic’s json as an example:

```plaintext
https://meta.discourse.org/t/why-isnt-discourse-more-frequently-recommended-as-a-community-platform/221040.json

```

if you notice, post number 1 has 3 direct replies even though the topic has many replies.

 ![3 replies](https://global.discourse-cdn.com/meta/original/4X/b/9/4/b9441be3db678018013faa4f15ab485c2e50fdee.png)

The gist of it is a “reply\_count” is the number of replies to a post, and it doesn’t indicate how many replies a topic has.

---

<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 26, 2024, 11:09am UTC](https://meta.discourse.org/t/the-replies-column-is-not-matching/338450/9 "2024-12-26T11:09:39Z")

</div>

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