h4l
9 months ago
I'd be interested in knowing more about your API use. Are you using the official 3rd party API or one of their internal APIs used by their own web front-end?
It's a good idea for a project like this. One bit of feedback is that it would be helpful to have a bit more context for the images - the titles get elipsised on mobile and when viewing a full image you can't see the title.
modelorona
9 months 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!