I want to fetch only my accepted answers from Stack Overflow using the API 2.1 and currently I've following code
$data = file_get_contents("http://api.stackexchange.com/2.1/users/741747/answers?page=1&pagesize=10&order=desc&min=1&sort=votes&site=stackoverflow&filter=!4.nQbW4zw_OOSDSf7");
The above code returns all answers, but I want to filter to only accepted answers.
Searched the API documentation but didn't find anything or maybe I don't know where to look for it.
I Appreciate any kind of advice.
is_acceptedbut thought there is another way to do it. If I do it in the way you advised then, suppose, for example, I'm fetching10answers at a time (pagination) and if one or more answers are not accepted then I've to exclude those from my result and in this case I'm not able to show10answers, so what could be the work around, any ideas ? – The Alpha Mar 11 '13 at 00:305000answers then how much time it could take to fetch all of them using a single request you think, is this a good idea ? – The Alpha Mar 11 '13 at 00:47