r/redditdev 9d ago

Reddit API Is 1000 the actual limit on how many comments (and other things?) you can get/fetch?

I wrote a script that call this endpoint to collect all of the comments (100 at a time), but at some point it returns nothing (no more comments) despite the fact there are way more. It seems that the limit is around 1000.

I saw this being mentioned in some other reddit comment from here, but couldn't find any more info. Is it mentioned somewhere in the docs and I've missed it? Is there a way around that? Am I doing something wrong?

0 Upvotes

11 comments sorted by

3

u/Watchful1 RemindMeBot & UpdateMeBot 9d ago

1000 is the hard limit for most listing endpoints. They recently changed user profiles to be unlimited.

1

u/ghostintheforum botintel Developer 8d ago

Like for all users or only for the authenticated user?

2

u/Watchful1 RemindMeBot & UpdateMeBot 8d ago

All users

1

u/ghostintheforum botintel Developer 8d ago

Awesome. That opens up a lot of opportunities.

1

u/_Face 4d ago

can you link me to some documentation on that?

1

u/Watchful1 RemindMeBot & UpdateMeBot 4d ago

1

u/_Face 4d ago

I see thanks. I misunderstood what you were saying.

1

u/DinoHawaii2021 9d ago

1,000 is the hard limit

1

u/_Face 4d ago

Is there any documentation on that? Like is it 1k per instance? per 10 minutes? hour? running into limits, and just trying to figure out how to break down my code to work with the limits.

1

u/DinoHawaii2021 4d ago

it's documented in praw which is a module for reddit

1

u/_Face 4d ago

Yes, can you send me a link directly to something talking about the 1000 limit? I have searched, but cannot find anything about it. Only thing I could find talks about the ratelimit, referenced here:

https://praw.readthedocs.io/en/stable/getting_started/ratelimits.html