I am able to retrieve a list of all my answers, within a given date range, by using this below curl command:
curl "https://api.stackexchange.com/2.2/users/10348758/answers?page=1&pagesize=100&fromdate=1588291200&todate=1592179200&order=desc&sort=activity&site=stackoverflow&access_token=my-access-token&key=my-key" | gunzip
I need to find the list of my unaccepted answers within a given date range.
According to the documentation, these fields can be applied to the answer type.
In the documentation, it is written that:
The upvoted, downvoted, and accepted fields can only be queried for with an access_token with the private_info scope.
So, I have also created access_token
with the scope being private_info
.
I have modified my command in the following way :
curl "https://api.stackexchange.com/2.2/users/10348758/answers?is_accepted=false?page=1&pagesize=100&fromdate=1588291200&todate=1592179200&order=desc&sort=activity&site=stackoverflow" | gunzip
In the above command, I have added the is_accepted=false
parameter, but I am getting the same result as the above command i.e. I am getting a complete list of answers. I want to retrieve only those answers of mine which are unaccepted (within a given date range). Do I need to apply a filter in the curl
command?
How can I retrieve a list of all my unaccepted answers (within a given date range) using Stack Exchange API?