
getQuestion will display all responses to the question of your choice. Very handy for finding interesting user IDs for a second crack at getByUser. Requires a question ID, which may be found by the questionSearch and getByCategory services, or on the Answers site.
http://answers.yahooapis.com/AnswersService/V1/getQuestion
| appid | string (required) | The application ID. See Application IDs for more information. |
| question_id | string | Unique ID of the question. Returned by questionSearch, getByUser, and getByCategory, or found on the Answers site in the request string under qid. |
| 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: http://answers.yahooapis.com/AnswersService/V1/getQuestion?appid=YahooDemo&question_id=1005120800412
The schema document for this service response is located at http://answers.yahooapis.com/AnswersService/V1/AnswerResponse.xsd
| Field | Description |
|---|---|
| ResultSet | Contains details for the question listed. |
| Question | Contain the question. Has attributes:
|
| Subject | The subject of the question |
| Content | The full question |
| Date | Pre-formatted date when the question was submitted |
| Timestamp | Unix timestamp for when the question was submitted |
| Link | Link to the question |
| Category | The Category that the question is listed under. Has attribute:
|
| UserId | The unique User id |
| UserNick | The nickname of the user |
| UserPhotoURL | User photo URL. |
| NumAnswers | The number of answers to the question |
| NumComments | The number of comments on the question |
| ChosenAnswer | The answer chosen by the user as the best |
| ChosenAnswererId | The user id of the chosen answerer |
| ChosenAnswererNick | The nickname of the chosen answerer |
| ChosenAnswererTimestamp | The time the answer was submitted |
| ChosenAnswererAwardTimestamp | The time the answer was given an award |
| For each Answer in the Answers object: | |
| Content | The text of the answer. |
| Reference | The reference URL. |
| Best | Any value for Best represents the fact the the asker of the question chose this as the best answer, and rated it from to 5. This only applies when the asker chooses it as best answer, and not when it comes to a vote. |
| UserId | The answerer's user ID |
| UserNick | The answerer's nickname |
| Date | The date the answer was posted. |
| Timestamp | The Unix timestamp corresponding to the date posted. |
The following is a sample response for the query cars:
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.
Copyright © 2008 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Copyright Policy - Job Openings