I am new to Python. I want to extract a user bio, answers, questions they made in Stack Overflow.
Can I do that using the API? For example, can I extract the user: name bio and number of questions answered, using the API, from this URL: https://stackoverflow.com/users/4189194/krishna?tab=profile?

1 Answer 1


The API presents individual features behind individual URLs. The information on the profile page is combined from several sources; to get the details you requested, you will have to submit multiple requests. Probably start at the API "Hello World" Python example and consult the official documentation for the precise API endpoints; for example, https://api.stackexchange.com/2.2/users/874188?site=stackoverflow.com gets me


and https://api.stackexchange.com/2.2/users/874188/posts?site=stackoverflow.com gets me the (beginning of a paginated, newest-first) list of posts by myself (including questions as well as answers, though recently I only have the latter).

I don't see an API endpoint to get the profile information (bio and avatar etc) but those should be simple to scrape as such.

You must log in to answer this question.

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