Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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?

like image 951
Patoshi パトシ Avatar asked Jan 29 '19 19:01

Patoshi パトシ


1 Answers

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...
like image 179
Brock Adams Avatar answered Sep 28 '22 03:09

Brock Adams