API changes - Get All Reviews

tl;dr: This broke my personal script that counts “reviews I’ve done today”; I was able to fix it, but I don’t think the fix generalizes to most peoples’ use cases in this thread.


This temporarily broke my personal script which calls'/v2/reviews?updated_after=' + todays_date_at_midnight.toISOString() and checks the total_count to see how many reviews I’ve done today.

For that use case, I was able to just change reviews to review_statistics, which works almost the same. (It does undercount items that have been reviewed more than once in a day, but that’s fine.) And I imagine it’s easier on the database because the number of review statistics is much smaller than the number of reviews.

Unfortunately, I don’t think the review_statistics endpoint is useful for getting review stats for any day before ‘today’, so it won’t be useful for e.g. heatmap scripts unless they run every day from the start. A new endpoint for review metadata would be nice!

2 Likes