This post has been de-listed
It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.
Moving forward with more features for score data, the API will now allow aggregations by author and subreddit with regards to score to show the top scoring subreddits and authors.
Keep in mind that this aggregation is expensive (especially for authors) and may timeout if it exceeds 20 seconds -- so you should also use the metadata=true parameter to check if it did time out.
There are a few parameters to use here including min_doc_count which will restrict results to show only subreddits or authors who made at least X comments is a specific period. I always find examples to be the best way to learn, so here are some examples.
To see the top subreddits by average comment score over a 24 hour period (this shows between 2 and 3 days ago) where the subreddit had at least 1,000 comments made in that period, you would do this:
This will show the top 100 subreddits that had the highest average comment scores.
The four new aggregations are:
subreddit:score:avg
subreddit:score:sum
author:score:avg
author:score:sum
If you wanted to see how much total karma was generated from a specific author, you could do this:
This shows that there was a total of 279,942 karma generated from comments by [deleted] authors.
Who were the top 10 average contributors by highest average comment score to /r/science in that period?
Most of the results are from people who had one comment that generated a lot of karma. You could increase the min_doc_count to something higher.
In this example, in order to be included in the rankings, an author would have had to make at least 2 comments:
Aggregations by authors are much more expensive because it basically has to find every comment made by every author and group them first before doing the aggregations. There are far fewer subreddits in play than authors for a specific time period, so those results will be faster. It's normal for an author aggregation to take 10-15 seconds to complete -- but this can eventually be optimized.
With the new API, it will be possible to see the average reply delay by authors and rank them by smallest to largest -- this pulls out basically all bots on Reddit.
Subreddit
Post Details
- Posted
- 5 years ago
- Reddit URL
- View post on reddit.com
- External URL
- reddit.com/r/pushshift/c...