# Is there a way to get full badge list for a user?

**URL:** https://meta.discourse.org/t/is-there-a-way-to-get-full-badge-list-for-a-user/60816
**Category:** Support
**Created:** [April 12, 2017, 3:09am UTC](https://meta.discourse.org/t/is-there-a-way-to-get-full-badge-list-for-a-user/60816 "2017-04-12T03:09:52Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![kraml](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kraml/32/68627_2.png) [@kraml](https://meta.discourse.org/u/kraml)
#### Post date: [April 12, 2017, 3:09am UTC](https://meta.discourse.org/t/is-there-a-way-to-get-full-badge-list-for-a-user/60816/1 "2017-04-12T03:09:52Z")

</div>

I’m evaluating integraton of the badge system into other part of a website. And I found in API document that it seems the only way to get a list of badge a user has it to use the `/users/<username>.json` API endpoint.

However after I tried this on myself on meta, I only saw three badges returned, the three that appears on my user card(are those called the featured badges?).

I searched in API document further more but didn’t see other API that returns badge information for a given user. Am I missing something or just that API don’t exist?

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [April 12, 2017, 3:57am UTC](https://meta.discourse.org/t/is-there-a-way-to-get-full-badge-list-for-a-user/60816/2 "2017-04-12T03:57:23Z")

</div>

Try  
`https://meta.discourse.org/u/<username-here>/badges.json`

---

<div class="post-metadata">

### Author: ![kraml](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kraml/32/68627_2.png) [@kraml](https://meta.discourse.org/u/kraml)
#### Post date: [April 12, 2017, 4:00am UTC](https://meta.discourse.org/t/is-there-a-way-to-get-full-badge-list-for-a-user/60816/3 "2017-04-12T04:00:41Z")

</div>

Thanks but it returns the same payload as `/users/<username>.json` for me…

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [April 12, 2017, 4:48am UTC](https://meta.discourse.org/t/is-there-a-way-to-get-full-badge-list-for-a-user/60816/4 "2017-04-12T04:48:53Z")

</div>

Hmm, I see what you mean. There was a recent change from “/users/” to “/u/” that may have something to do with it.

If you open your browsers dev tools and request a users badges page you should be able to see the URL that Discourse is using to get the page data. Is that different?

---

<div class="post-metadata">

### Author: ![kraml](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kraml/32/68627_2.png) [@kraml](https://meta.discourse.org/u/kraml)
#### Post date: [April 12, 2017, 4:54am UTC](https://meta.discourse.org/t/is-there-a-way-to-get-full-badge-list-for-a-user/60816/5 "2017-04-12T04:54:55Z")

</div>

Thanks for the reminder. The API should be `https://meta.discourse.org/user-badges/<username>.json`.

Since the release of [docs.discourse.org](http://docs.discourse.org) I was under the impression that all APIs are documented there. It seems this one is not yet.

---

<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: [May 24, 2019, 12:32pm UTC](https://meta.discourse.org/t/is-there-a-way-to-get-full-badge-list-for-a-user/60816/6 "2019-05-24T12:32:03Z")

</div>



---

<div class="post-metadata">

### Author: ![dax](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dax/32/244677_2.png) [@dax](https://meta.discourse.org/u/dax)
#### Post date: [May 24, 2019, 1:20pm UTC](https://meta.discourse.org/t/is-there-a-way-to-get-full-badge-list-for-a-user/60816/7 "2019-05-24T13:20:10Z")

</div>

Now it is documented for sure [https://docs.discourse.org/#tag/Badges](https://docs.discourse.org/#tag/Badges)

---

<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: [June 23, 2019, 1:20pm UTC](https://meta.discourse.org/t/is-there-a-way-to-get-full-badge-list-for-a-user/60816/8 "2019-06-23T13:20:11Z")

</div>

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