Hacker News new | ask | show | jobs
by modelorona 632 days ago
hey thanks for your message! I am using the API that's here: https://www.reddit.com/dev/api/

From my understanding, it's used a lot by moderators. It's likely that they may block me since I do not pass any authentication or identifier info, but I don't think it'll happen soon as my use case is extremely simple (knock wood).

I query it as such: https://www.reddit.com/r/earth/top.json?limit=50 and then parse it on the front.

During my testing, I was blocked only once and that was because I ended up querying the same URL too much, which in normal usage shouldn't happen.

The previous iteration used a library called snoowrap (https://github.com/not-an-aardvark/snoowrap) which is unfortunately archived now.

Thank you for the feedback about the image context!