Yahoo! Answers: Get Questions By User

getByUser lists questions from a specific user ID. User IDs are returned by getByCategory, getQuestion, or questionSearch, and may also be found on the Answers site by mousing over any user nickname and observing the value of the show parameter.

Request URL: GET

GET Request parameters

See information on constructing REST queries

Parameter Value Description
user_id string (required) User ID: unique per user. See notes above on how to find it.
appid string (required) The application ID. See Application IDs for more information.
type string: omit for default "all" Question status. Set to "all", "resolved", "open", or "undecided".
filter string: omit for default "question". Type of result set:
  • question: Questions asked by the user.
  • answer: Questions answered by the user.
  • best_answer: Questions where the user's answer was chosen as best answer. Only useful where type=resolved.
sort string: omit for default "date_desc". Result set sort field and order:
  • date_desc: By date, descending from most recent,
  • date_asc: By date, ascending from oldest.
  • ans_count_desc: By answer count, descenting from highest.
  • ans_count_asc: By answer count, ascending from lowest.
start integer: default 0 Starting question to list, used to display further results.
results integer : default 10, max 50 Number of questions to be returned.
output string: omit for default "xml" Defines the output for the call. Accepted values are "xml", "json", "php", and "rss".
callback string: default "" If set, wraps the JSON object in call to the selected function. Only makes sense if output selected is JSON.

Sample Request Url:

Response fields

The schema document for this service response is located at

ResultSetContains all of the questions listed.
QuestionContain an individual question's data. Has attributes:

  • id: The unique question id
  • type: The state of the question.
SubjectThe subject of the question
ContentThe full question
DatePre-formatted date when the question was submitted
TimestampUnix timestamp for when the question was submitted
LinkLink to the question
CategoryThe Category that the question is listed under. Has attribute:
  • id: The unique category id
UserIdThe unique User id
UserNickThe nickname of the user
UserPhotoURLUser photo URL.
NumAnswersThe number of answers to the question
NumCommentsThe number of comments on the question
ChosenAnswerThe answer chosen by the user as the best
ChosenAnswererIdThe user id of the chosen answerer
ChosenAnswererNickThe nickname of the chosen answerer
ChosenAnswererTimestampThe time the answer was submitted
ChosenAnswererAwardTimestampThe time the answer was given an award

Sample response

The following is a sample response for the above query:

Rate Limits

Yahoo! Web Search Web Services are limited to 5,000 queries per IP per day per API. See information on rate limiting and our Usage Policy to learn about acceptable uses and how to request additional queries.


The Yahoo! Answers Web Search services return the standard errors. There are no service-specific errors.

Ready to get started?

By applying for an Application ID for this service, you hereby agree to the Terms of Use