Search code examples
stackexchange-api

Getting access to a Stack Exchange user's `about_me` data via API?


I'm trying to get the about_me data on Stack Exchange profiles via the API provided by Stack Overflow using: https://api.stackexchange.com/docs/users-by-ids.

Example:
    https://api.stackexchange.com/2.2/users/3029?&site=bitcoin

The API doesn't return the about_me profile description.
How does one get access to this?


Solution

  • The about_me property is not returned by default; you must use a custom filter to get it.

    For example:
        /2.2/users/1642231?site=stackoverflow&filter=!eQnjl7OMkDx5MiwVw_4HYqq7h5

    Which currently returns:

    "items": [ {
        "down_vote_count":  11,
        "up_vote_count":    66,
        "reputation":       7912,
        "user_id":          1642231,
        "accept_rate":      83,
        "about_me":         "<p>Stanford graduate female developer living and working...",
        "display_name":     "Patoshi パトシ"
        //etc...