API call to get list of members with a given badge

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


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.

You were close :wink:

Try /user_badges.json?badge_id=<id>, for example 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.


So obvious when you know the answer! Thanks.

I’ll poke at the dev tools some more.