# API user\_badges /users/username/activity/badges.json API vs. /user-badges/username.json

**URL:** <https://meta.discourse.org/t/api-user-badges-users-username-activity-badges-json-api-vs-user-badges-username-json/117958>\
**Category:** Development\
**Created:** [16 במאי,‏ 2019,‏ 8:03pm UTC](https://meta.discourse.org/t/api-user-badges-users-username-activity-badges-json-api-vs-user-badges-username-json/117958 "2019-05-16T20:03:39Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![kimardenmiller](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kimardenmiller/32/119631_2.png) [@kimardenmiller](https://meta.discourse.org/u/kimardenmiller)\
**Post date:** [16 במאי,‏ 2019,‏ 8:03pm UTC](https://meta.discourse.org/t/api-user-badges-users-username-activity-badges-json-api-vs-user-badges-username-json/117958/1 "2019-05-16T20:03:39Z")

</div>

[In the API we see](https://github.com/discourse/discourse_api/blob/64476cc1782565108f9dd6213229663f0baa7eff/lib/discourse_api/api/badges.rb#L10-L13):

```
  def user_badges(username)
    response = get("/users/#{username}/activity/badges.json")
    response.body['badges']
  end

```

But that does not get all the user’s badges. From Discourse\>user\>badges this call is made:

```
user-badges/username.json

```

which does give all the badges.

I need the second one. Add it to the API and do a PR? What should I call it?

---

_[View the full topic](https://meta.discourse.org/t/api-user-badges-users-username-activity-badges-json-api-vs-user-badges-username-json/117958)._
