Stack Apps is a question and answer site for apps, scripts, and development with the Stack Exchange API. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

It seems that there's something odd going on with badges. If we take some random user, say 1719, which has one account, and check the user page, then we can see that it says user has 3 bronze badges. Now if we try to retrieve user or badge information for that user via API, we will see 5 (4 bronze, one silver):

Is it something wrong with API or StackExchange pages are not displayed the information correctly (or maybe applying some default filter, for example time-based)?

share|improve this question
up vote 0 down vote accepted user ids are not the same as user ids (are not the same as Server Fault's, Super User's, etc., etc.).

Stack Overflow user 1719 is voyce, who has the five badges the API returns.

Jelon is user 2326, and the API returns his 3 badges corrrect too.

share|improve this answer
So if I got it right, then by accessing we end up on a page of the user Jelon (with 3 badges). If we access, that will be ID of a different user (because it's SO rather than SE) - voyce, having 5 badges. In that case how do we get badges info through API for the StackExchange user based on his StackExhange ID/URL? Or if every SE user has an ID on SO (but different), then how to find SO ID (that 2326)? – Artificial Intelligence Mar 1 '12 at 10:02
@ArtificialIntelligence - isn't exposed via the API, the site itself is just aggregating data from the proper Q&A sites. User ids on happen to be account_ids, which can be used to find proper site users via /users/{ids}/associated. – Kevin Montrose Mar 1 '12 at 16:52

You must log in to answer this question.

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