Is there any way to list all the users who have any Gold badge, not by badge like here, but any type of badge, like Great Question, Famous Question, Gold badge in Java, Gold badge in Discussion, ...


1 Answer 1


You would need a SEDE query to do that. I just made one for you:

enter image description here

For reference, here is the complete query:

SELECT u.Id AS [User Link],
  MAX(b.Name) AS 'One of the gold badges they have',
  COUNT(*) AS 'Number of gold badges'
  FROM Users AS u
  INNER JOIN Badges AS b
    ON b.UserId = u.Id
  WHERE b.Class = 1

Note that SEDE is updated once a week, on Sunday morning. Feel free to fork and experiment.

  • Thank you for your help, i think this SEDE query also do what i search for data.stackexchange.com/stackoverflow/query/567586/… :) Dec 22, 2016 at 13:39
  • Yes, but users may appear multiple times in that list.
    – Glorfindel Mod
    Dec 22, 2016 at 13:40
  • i see thank you then soo much :) Dec 22, 2016 at 13:49
  • is there any way to query for a specific tag? Like get the list of all users who have bronze medal for the Java tag?
    – Honey
    Jun 5, 2018 at 19:32
  • Yes, if you fork the query, you can add an extra condition to the WHERE and filter on b.Name. Or just check the bronze Java tag badge page itself; there's no need to pull this data from SEDE when it's available real-time.
    – Glorfindel Mod
    Jun 5, 2018 at 19:48

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .