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/10
is_accepted
is one of the fields. And, in the current stage, it seems that this cannot be used for filtering the result values as the query parameter.
From this situation, how about the following workaround? I would like to propose to use jq
for filtering the retrieved values. In this workaround, the values with is_accepted: false
are retrieved from the all retrieved values using jq
.
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 | jq '[.items[] | select(.is_accepted == false)]'
jq '[.items[] | select(.is_accepted == false)]'
is used for the retrieved values."is_accepted": false
are retrieved.https://api.stackexchange.com/2.2/users/10348758/answers
.