# Laat alle gebruikers het post\_count van gebruikers zien bij gebruik van de API

**URL:** https://meta.discourse.org/t/allow-all-users-to-see-users-post-count-when-using-the-api/161770
**Category:** Support
**Created:** [22 augustus 2020 om 19:18 UTC](https://meta.discourse.org/t/allow-all-users-to-see-users-post-count-when-using-the-api/161770 "2020-08-22T19:18:12Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Wille](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wille/32/194693_2.png) [@Wille](https://meta.discourse.org/u/Wille)
#### Post date: [22 augustus 2020 om 19:18 UTC](https://meta.discourse.org/t/allow-all-users-to-see-users-post-count-when-using-the-api/161770/1 "2020-08-22T19:18:13Z")

</div>

Hey.

I was wondering if there’s any way to allow all users to see users post\_count when using the API call /users/{username}.json without having to modify the git repo?

Is there something like a setting or plugin for this?

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [25 augustus 2020 om 15:55 UTC](https://meta.discourse.org/t/allow-all-users-to-see-users-post-count-when-using-the-api/161770/2 "2020-08-25T15:55:54Z")

</div>

You can retreive it from `https://meta.discourse.org/u/Wille.json` under

`"post_count":0`

Your topic count is 1.

---

<div class="post-metadata">

### Author: ![Wille](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wille/32/194693_2.png) [@Wille](https://meta.discourse.org/u/Wille)
#### Post date: [22 september 2020 om 12:04 UTC](https://meta.discourse.org/t/allow-all-users-to-see-users-post-count-when-using-the-api/161770/3 "2020-09-22T12:04:51Z")

</div>

Sure, that works when looking up the profile of ones own user, but I would like the post\_count to be public to everyone, preferably even to anonymous browsers.  
If I look up [https://meta.discourse.org/u/Codinghorror.json](https://meta.discourse.org/u/Codinghorror.json) there’s no post\_count there, just the same as with [https://meta.discourse.org/users/Codinghorror.json](https://meta.discourse.org/users/Codinghorror.json)

---

<div class="post-metadata">

### Author: ![Wille](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wille/32/194693_2.png) [@Wille](https://meta.discourse.org/u/Wille)
#### Post date: [6 oktober 2020 om 15:20 UTC](https://meta.discourse.org/t/allow-all-users-to-see-users-post-count-when-using-the-api/161770/4 "2020-10-06T15:20:13Z")

</div>

Bump, not just for seeing post\_count but being able to configure the API. Possible?  
Edit: Never mind, may have found it under Settings → User → public user custom fields  
Edit2: Never mind the never mind, adding ‘post\_count’ there didn’t help. Is there some kind of syntax here like user@user\_fields@post\_count ?  
Edit3: Doesn’t seem to work with custom created fields either. I added “Discord ID” both in Customize → User Fields and Settings → User → public user custom fields, doesn’t show up even in my (admin’s) own json /users/admin.json when logged in as admin.

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [6 oktober 2020 om 16:09 UTC](https://meta.discourse.org/t/allow-all-users-to-see-users-post-count-when-using-the-api/161770/5 "2020-10-06T16:09:25Z")

</div>

It’s in `https://meta.discourse.org/u/wille/summary.json`

 ![image](https://global.discourse-cdn.com/meta/original/3X/3/8/388dd02a9822b318de5587a07bbc893e627182ac.png)

---

<div class="post-metadata">

### Author: ![Wille](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/wille/32/194693_2.png) [@Wille](https://meta.discourse.org/u/Wille)
#### Post date: [6 oktober 2020 om 18:30 UTC](https://meta.discourse.org/t/allow-all-users-to-see-users-post-count-when-using-the-api/161770/6 "2020-10-06T18:30:08Z")

</div>

Appreciate it a lot!

Is there any rhyme or reason to the API so I know where to look next time for something in the future?  
I can’t find any mentions of summary.json in the API docs for instance.

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [9 oktober 2020 om 06:04 UTC](https://meta.discourse.org/t/allow-all-users-to-see-users-post-count-when-using-the-api/161770/7 "2020-10-09T06:04:28Z")

</div>

This topic might help: [Reverse engineer the Discourse API](https://meta.discourse.org/t/how-to-reverse-engineer-the-discourse-api/20576)

---

<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: [8 november 2020 om 06:05 UTC](https://meta.discourse.org/t/allow-all-users-to-see-users-post-count-when-using-the-api/161770/8 "2020-11-08T06:05:34Z")

</div>

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