User Badges not visible in json

badge

(Pulkitpahwa) #1

Hey,

We have been using Discourse for quite a long time now and we are now trying to integrate its api with our main website.

What we are trying to do is to display the badges that a particular user has received on his public profile on our main website. But json results are showing less number of badges than the user actually has. e.g. one of the user has 11 badges and his json profile is showing only 3 badges.

After detailed observation, I found out that the badges belonging to the same category are not being displayed,

Can you please let me know where can I get the complete list of user badges ?


(cpradio) #2

Based on the Network tab in Dev Tools, you need to use
https://meta.discourse.org/user-badges/cpradio.json?grouped=true

Replacing cpradio with the actual user’s name.