Badge IDs are, especially on older sites, very random.
- What are Badge IDs?
- Where can I find these IDs?
- How can I reproduce this table in case of changes in the Badge system?
- Who is going to profit from this table?
Meta Stack Exchange is a question and answer site for meta-discussion of the Stack Exchange family of Q&A websites. It only takes a minute to sign up.Sign up to join this community
When this post mentions Badge IDs, it refers to the part of the URL that is actually important to SE to redirect you to the right badge. For example, consider this URL:
Here, the Badge ID is 1. The page you would land on would be the same if the
/teacher was removed from the URL.
The IDs are currently hosted on Github as tables in an array of different file formats and the way to reproduce said table.
Since the table is hosted on Github, you can execute the following code and then you can make a pull request on Github. Here is the code, written in AppleScript with as much documentation as possible:
Feel free to rewrite this code in other languages. Currently, this method only supports macOS-Systems with Chrome or Chromium-based browsers.
Some people have made meta-posts wanting to access badge IDs. The Stack Exchange API also provides a way to interact with badges, but there is no complete table of badge IDs and as stated above and in the docs, there is no real order to badge IDs. It is potentially possible to do the same thing using the Stack Exchange Data Explorer.