api icon indicating copy to clipboard operation
api copied to clipboard

Aggregation by time returns 0 results

Open ckgt opened this issue 5 years ago • 2 comments

Taking the example url to list comment and document counts that mention 'trump' within 7 days returns no data. The example said it is specifically setting size=0 because we don't want comment data. That's true but it doesn't return the aggregate data either.

https://api.pushshift.io/reddit/search/comment/?q=trump&after=7d&aggs=created_utc&frequency=hour&size=0

returns...

{ "data": [] }

expected...

{ "aggs": { "created_utc": [ { "doc_count": 685, "key": 1502406000 }, { "doc_count": 1238, "key": 1502409600 }, { "doc_count": 1100, "key": 1502413200 },

ckgt avatar Jan 14 '21 04:01 ckgt

Aggregations have been disabled (see #62).

@pushshift will the aggs parameter ever be back?

Spaceface16518 avatar Jan 22 '21 19:01 Spaceface16518

aggs seems to still be inactive, though the @ckgt you can set size to an integer > 0 for results and post process.

ghost avatar Nov 06 '21 03:11 ghost