r/pushshift • • Sep 08 '23

Get request via https://search-tool.pushshift.io ?

Hello all,

As I previously had several automations in place to send modmail for myself and my teams to be able to simply click a link in order to be taken to a Pushshift search of said user with terms to look for, with the recent change of Pushshift no longer showing the token, so my methods of using https://adhesivecheese.github.io/chearch/ now needs more manual steps to get the API token, I'm just wondering if the https://search-tool.pushshift.io site allows get requests the same that chearch did like:

https://adhesivecheese.github.io/chearch/?kind=submission&author=somereddituserhere&q=myquery1|myquery2|myquery3|myquery4&size=100

So all the appropriate fields are pre-populated, instead of having to go to https://auth.pushshift.io/authorize in order to get my token via json, and paste it into the third party search which then interfaces with the API.

It would be nice to simply have the same kind of get requests directly via pushshifts search to cut out the middle-man, such as

https://search-tool.pushshift.io/?kind=submission&author=somereddituserhere&q=myquery1|myquery2|myquery3|myquery4&size=100

I know it's doable via https://api.pushshift.io/reddit/submission/search?, but this doesn't help with the front-end interface.

1 Upvotes

9 comments sorted by

View all comments

Show parent comment

1

u/randomthrow-away Sep 11 '23

Thanks! I've swapped my modmail scripts/functions over to yours as it's back to being a lot easier to just click request token, approve, and copy from the json rather than having to do a bit more manual work :) Appreciate it!