pushshift / api

Pushshift API
1.29k stars 109 forks source link

Aggregation by time returns 0 results #64

Open ckgt opened 3 years ago

ckgt commented 3 years ago

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 },

Spaceface16518 commented 3 years ago

Aggregations have been disabled (see #62).

@pushshift will the aggs parameter ever be back?

ghost commented 2 years ago

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