r/pushshift • • Apr 09 '20

Pushshift Reddit API improvements are coming...

Currently, the API has issues when Reddit gets spam bursts. This has been an ongoing issue that is being addressed.

I just purchased two new servers to assist with the load. Based on usage patterns for the API, most API requests are for current data (data within the last 6 months).

We're currently working on a new version of the API which includes complete documentation for each endpoint (example: https://apiv3.pushshift.io/redoc)

The plan is to begin working on a new ES cluster using the latest version of Elasticsearch and loading the previous 6-12 months of data into it. The new API will have updated ingest code to handle spam bursts and to keep the API current (the API will always be within one minute or less of the most current comment and submission data).

Once the new cluster is brought online, I'll make an announcement. The new API will use keys to better track usage patterns, etc. The new cluster will start with the most current Reddit data with less indices so that people who are mainly interested in querying newer data will have less latency and faster response times -- including increased rate-limits and larger size limits.

The new servers should get here by early next week. At that time, I'll begin the process of setting up the new ES cluster. Since Ubuntu 20.04 is nearing release, we'll probably standardize the new cluster using that version of Ubuntu (Ubuntu 20.04 LTS).

For researchers that need enhanced rate-limits, the goal is to increase the size limits to 1,000 objects per request and new rate-limits up to 5 requests per second.

I know the API lag has been very frustrating for people interested in searching recent submissions and comments so improving the ingest logic is a very high priority for the new cluster that will be put in place.

The new servers will utilize more powerful CPUs with more RAM for each node to increase the cache size for data (which will decrease latency and improve response times across the board). Once the new servers are put in place, there will be a total of 10 servers backing the API with a total of 2.5 terabytes of RAM.

Thanks for your patience and support!

34 Upvotes

14 comments sorted by

4

u/[deleted] Apr 09 '20

Nice!

I'm just curious how you plan to deal with reddit's limits. My understanding from your previous posts on reddit spam, is that the spam is simply outpacing the amount of data the reddit API will even allow you to ingest.

6

u/Stuck_In_the_Matrix Apr 09 '20

Mainly by using additional accounts to pull data in parallel. The code to handle that is more complicated than simple sequential calls, but it overcomes a lot of limitations at the same time.

2

u/shaggorama Apr 09 '20

Good stuff. Is there a beta server I can use to update psaw? Looks like the new API won't be backwards compatible.

4

u/Stuck_In_the_Matrix Apr 09 '20

The goal is to make it backwards compatible. Don't put too much weight on the existing parameters in that documentation -- it was mainly just to show the documentation type, etc.

I'll definitely give you access to beta so you can make recommendations, etc. The new API should support all the existing parameters, etc. Backwards compatibility is really important for me.

2

u/shaggorama Apr 09 '20

How well account handling work? OAuth? Some other kind of token?

4

u/shiruken Apr 09 '20

Really looking forward to that documentation. Now if only Reddit could offer anything remotely similar.

4

u/fuzzycorona Apr 09 '20

Will you bring back the ability to sort by user? The main thing I used to use Pushshift for was to look up my old comments

3

u/[deleted] Apr 09 '20

Another redditor setup this site.

1

u/InitiatePenguin Apr 09 '20

Yeah, I don't like it as much though

0

u/[deleted] Apr 09 '20

[deleted]

1

u/fuzzycorona Apr 09 '20

How do I do that?

0

u/[deleted] Apr 09 '20

[deleted]

2

u/fuzzycorona Apr 09 '20

Awesome, thanks

2

u/InitiatePenguin Apr 09 '20

I'm really inept at this stuff, I loved the website before the feature was gone.

I'm always searching by author with a keyword and in a certain subredditall at once.

What's the format for that? And I just plug in the string above into a URL? Or do I need to run it from some sort of a console?

0

u/[deleted] Apr 09 '20

[deleted]

2

u/InitiatePenguin Apr 09 '20

Thanks so much for the help.

90% of my redditing is on mobile so the website GUI was a lifesaver.