api icon indicating copy to clipboard operation
api copied to clipboard

/reddit/subreddit/search not working

Open ghost opened this issue 6 years ago • 2 comments

What am I trying to do?

Obtaining a list of subreddits

How did I try to do it?

Using the api.pushshift.com/reddit/subreddit/search api endpoint listed at https://pushshift.io/api-parameters/

What happened?

An HTTP 404 response was returned.

Here's the ipython snippet:

Python 3.6.9 (default, Nov  7 2019, 10:44:02) 
Type 'copyright', 'credits' or 'license' for more information
IPython 7.10.2 -- An enhanced Interactive Python. Type '?' for help.

In [1]: import requests

In [2]: res = requests.get('https://api.pushshift.io/reddit/subreddit/search?sort=desc')

In [3]: res.status_code
Out[3]: 404

In [4]: print(res)
<Response [404]>

In [5]: print(res.content)
b''

In [6]: 

What was I expecting?

Some kind of response (A list of subreddits sorted in ascending order of something).

ghost avatar Jan 05 '20 18:01 ghost

what can we do to assist to get the subreddit endpoint online?

I tried this test beta endpoint for the subreddit api: https://beta.pushshift.io/search/reddit/subreddits?size=25&q=test

and I receive an Internal Server Error error

jeffward01 avatar Apr 15 '21 20:04 jeffward01

Same error faced by me today. Is the api on maintenance?

Vinit-source avatar Jul 03 '21 12:07 Vinit-source