I want to get information about all bounties that were active within last 3-4 days. This should include started, awarded and expired bounties. How do I do this?
Here are my thoughts.
- If a bounty is still active, the corresponding question will be included in
/questions/featured
endpoint response. Then from thebounty_user
,bounty_amount
andbounty_closes_date
fields ofanswer
type I can figure who, when and how much offered as a bounty. - If a bounty has been awarded, the corresponding answer and question will have
last_activity_date
updated. Therefore, I can look through all recently active answers in the/answers
endpoint.bounty_user
,bounty_amount
will tell me who and how much is offered- by inspecting
/users/{ids}/reputation-history
for the bounty starter and answer owner, I can get timestamps for when bounty was started and ended.
- If a bounty has expired, I would still expect the corresponding question appear in recently updated questions. However, there wouldn't be any record of an expired bounty.
- For expired bounties started by the question author, I might check
/users/{ids}/reputation-history
and see when and how much they allocated for this question. - For expired bounties started not by question author, I don't know what to do.
- For expired bounties started by the question author, I might check
For example, this timeline shows that two bounties started, and both expired without a winner. The first bounty was started by the question author, the second bounty was started by a passer-by 1.5 years later. However, the API question timeline type does not include the "bounty_started" or "bounty_ended" event types, and indeed those are omitted from the API timeline response.
Votes
table from SEDE/dump. I am asking about getting the bounty information from the API, which is very different, because there no/votes
endpoint in API. So this is not a duplicate.