Stack Apps is a question and answer site for apps, scripts, and development with the Stack Exchange API. Join them; it only takes a minute:

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

I've seen a couple of Stack Apps that have the actual picture for the user profile. Is that coming from the API, and if so how? If not I'm assuming they are using some screen-scrapping to get that URL.

share|improve this question
up vote 6 down vote accepted

AFAIK StackExchange network uses gravatars. Hence you can get their profile picture from their email address (check the gravatar site for details).

share|improve this answer
Thanks that works great! – Chris Nicol Oct 29 '11 at 15:52

Actually, the API does this already, and I'd prefer this method over using my email address. In fact, the reason for the Stack Exchange API is so that our apps don't have to rely on third parties that may break, change their APIs, misuse our data, or go away. Additionally, if your app doesn't need access to sending me emails, then I'd just prefer you not have my email address, as no one else on Stack Exchange has it.!*MxL2GdM9OVn.VWD

The above is an example request, that uses my username instead, to retrieve my gravitar profile image. My email address isn't needed. You don't need to ask me for it at account creation in your app, which means I'm more likely to use your app.

In addition, it may be easier to pull these details by userId, such as this example:!*N1O2t9FKJv(Hwn5

  "items": [
      "user_id": 552792,
      "user_type": "registered",
      "display_name": "jmort253",
      "profile_image": "",
      "reputation": 11660,
      "website_url": "",
      "account_id": 265671
  "quota_remaining": 9951,
  "quota_max": 10000,
  "has_more": false

To create your own /users filter, see the users API or the Users by ID API.

share|improve this answer

You must log in to answer this question.

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