# API call to get list of members with a given badge

**URL:** https://meta.discourse.org/t/api-call-to-get-list-of-members-with-a-given-badge/39877
**Category:** Development
**Created:** [19. Februar 2016 um 21:47 UTC](https://meta.discourse.org/t/api-call-to-get-list-of-members-with-a-given-badge/39877 "2016-02-19T21:47:16Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [19. Februar 2016 um 21:47 UTC](https://meta.discourse.org/t/api-call-to-get-list-of-members-with-a-given-badge/39877/1 "2016-02-19T21:47:16Z")

</div>

Slowing hacking away at a means to automate getting student info from Discourse into my grade book . . .

I’m trying to get a list of members with a given badge. I’ve tried things like

[https://meta.discourse.org/badges/14/first-link.json](https://meta.discourse.org/badges/14/first-link.json)

But that gives only information about the badge itself.

Another useful pull would be all of the badges earned by members of a given group.

---

<div class="post-metadata">

### Author: ![fefrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fefrei/32/119538_2.png) [@fefrei](https://meta.discourse.org/u/fefrei)
#### Post date: [20. Februar 2016 um 14:55 UTC](https://meta.discourse.org/t/api-call-to-get-list-of-members-with-a-given-badge/39877/2 "2016-02-20T14:55:22Z")

</div>

You were close 😉

Try `/user_badges.json?badge_id=<id>`, for example [https://meta.discourse.org/user\_badges.json?badge\_id=11](https://meta.discourse.org/user_badges.json?badge_id=11).

The general approach to finding this is to get the Discourse page to load this while inspecting the traffic with your browser’s Dev tools or a proxy.

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [21. Februar 2016 um 16:54 UTC](https://meta.discourse.org/t/api-call-to-get-list-of-members-with-a-given-badge/39877/3 "2016-02-21T16:54:36Z")

</div>

So obvious when you know the answer! Thanks.

I’ll poke at the dev tools some more.
