Stack Overflow User Questions API
Every question one user has asked, with tags, score, view and answer counts and optional text.
GET /v1/stack-overflow/users/{memberId}/questions1 credit Failed requests are free
About this endpoint
GET /v1/stack-overflow/users/{memberId}/questions returns a page of questions asked by one user. Each row has id, url, title, tags, score, votes, viewCount, answerCount, commentCount, favoriteCount, isAnswered, acceptedAnswerId and the creation, activity and edit times.
Sort by activity (the default), creation or votes. Add include=body for bodyHtml and bodyMarkdown; with it, limit is at most 25. Only creation pages without a ceiling. A user with no questions is found with an empty list; a user id that does not exist is not_found.
Stack Overflow User Questions API FAQ
How do I get the question text?
Add include=body. Each row then has bodyHtml and bodyMarkdown, and limit is capped at 25 rows per page.
How many credits does a page cost?
Pricing is documented on the operation in the API registry (shown on this page). Confirm on every response with meta.creditsCharged: that field is the billing source of truth. Each paginated page is a separate billed request.
How is an empty list different from not_found?
A real user with no questions is lookupStatus found with data.questions empty. A user id that does not exist is lookupStatus not_found, also with an empty list.
Which sort walks every question?
sort=creation. activity and votes stop at 2,500 rows (625 with include=body) and set limitReached. Rows with equal scores can repeat or skip on those sorts.
Other Stack Overflow endpoints
- QuestionGET /v1/stack-overflow/questions/{questionId}
- Questions by idGET /v1/stack-overflow/questions/batch
- QuestionsGET /v1/stack-overflow/questions
- SearchGET /v1/stack-overflow/questions/search
- Similar titlesGET /v1/stack-overflow/questions/title-search
- AnswersGET /v1/stack-overflow/questions/{questionId}/answers
- CommentsGET /v1/stack-overflow/posts/{postId}/comments
- Comments by postGET /v1/stack-overflow/posts/comments