r/redditdev • u/pl00h • Jun 30 '23
Updated rate limits going into effect over the coming weeks
Hi Devs,
Over the last few months, we’ve shared updates on our Data API Terms and Developer Terms. Shortly, we will begin enforcing the previously announced, updated API rate limits. Rate limits will go into effect for all apps with usage above the free limit in the coming weeks, and some changes will be noticeable over the next 24 hours.
As we have shared, this will not impact non-commercial bots operating within free rate limits or moderator tools.
Free API access rates are as follows:
- 100 queries per minute per OAuth client id if you are using OAuth authentication
- 10 queries per minute if you are not using OAuth authentication
The vast majority of third-party apps and bots fall into the free usage category and should not see any disruptions. Our free rates account for bursts in usage.
For apps that exceed these limits, we have exempted select clients (for example, accessibility-focused apps like RedReader, Luna, and Dystopia), mod bots, and mod tools. If your bot or tool is affected unexpectedly, please reach out here.
12
u/Watchful1 RemindMeBot & UpdateMeBot Jun 30 '23
I don't remember exactly who it was that said it at the time, but I recall someone mentioning that the number of separate apps within a user would be limited at some point. Is that still the plan?
The docs say rate limits are per client id, which is different than per user. Can you confirm that's correct and multiple clients/app ids within one user continue to get separate rate limits (as long as they are doing distinct things and aren't used to intentionally bypass the rate limit).
21
u/HelioDex Jun 30 '23 edited Jun 30 '23
Thanks for the heads-up. The free usage categories are plenty for all of my current use cases.
6
u/justcool393 Totes/Snappy/BotTerminator/etc Dev Jun 30 '23
doesn't this cover most mod tools, in specific, toolbox, which doesn't use OAuth for most of it's functionality?
4
u/p337 Bot Developer Jun 30 '23
Some mods employ tools or bots to automatically ban users based on their participation in other communities or based on keywords in their comment history. How, if at all, will this change impact these bots?
10
u/SirensToGo Jun 30 '23
I'm sure we'll see shortly, but what will NSFW content appear as? Is it just the same behavior as what happens today when a user has NSFW content disabled in their account prefs? Will NSFW posts just be silently removed from listings? Will comments made by users in NSFW subs be visible in their profile over the API? Or will accessing an NSFW sub return some sort of error?
8
u/TehVulpez Jul 02 '23
Are requests outside of the oauth subdomain counted as part of your 100 per minute? For example when you use /api/v1/authorize or /api/v1/access_token, do those also count against your total API requests?
14
u/ocelotsporn Jul 01 '23
And with one push of code you’ve become digg
5
u/SoggyBagelBite Jul 04 '23
Classic Reddit. Can't even fuck their own site up on schedule.
3
u/8sADPygOB7Jqwm7y Jul 02 '23
so I am not a big dev, just some uni student who uses PRAW to do some basic scraping.
Will PRAW be limited in any way? As far as I know it should enforce its rate limit on its own (tho lately before the update it often missed it) so I should be under 100/minute. I also noticed I seem to still be able to access NSFW content. Will this change?
Will there be any change to how I use praw/what I can request regarding NSFW?
3
u/OurFreeBird Jul 04 '23
Yall considered fucking yourselves?
9
u/Terrh Jun 30 '23
Not by # of users I bet, lol.
2
u/hunting_fatherhood Jul 02 '23
I have what I think is a totally noob question: I want to scrape the selftext of a handful of users posts in a particular subreddit. I then want to parse the text for a particular structure, and if I find it, retain the selftext, title, username, and submission url in a database. I’ll be analyzing the selftext and tagging the post in my database for the purpose of pointing back to the post.
Is that an acceptable use of Reddit? Do I have to get permission? The availability of tools to do this makes me think I’m not doing anything wildly unscrupulous. I see rate limit discussion of 100 requests per minute. I’ll be in the ballpark of less than 100 requests per user.
TIA!
2
u/kystarrk Jul 05 '23
Joey for reddit deserves an accessibility exemption. The text to speech and expansive font customization is incredible and extremely helpful.
3
u/weepinstringerbell Jul 01 '23
Obviously the vast majority of apps won't be affected. They're mostly niche tools that don't use your API much. But the actual relevant mobile clients are all doomed with these changes.
Or am I wrong? Other than RES and mobile clients for browsing, what other third-party apps are out there that people genuinely care about?
1
u/unpopularperiwinkle Jul 04 '23
Ridiculous
1
u/[deleted] Jul 04 '23
ass
1
u/bluequail Jul 04 '23
Hi there. I have some questions.
And a little more complicated one. A while back, I invited an AI bot to our sub, to dispense advice. It was giving out excellent advice, then was banned, I guess for being a bot.
I spoke with the person running the script, and they generously offered to run the script on their own personal account.
*I would like to know if something like that would be at risk of falling into this whole pricing thing, and would it matter if the ran it on mobile or a computer. It was not commercial, there was no fee for it, and the only thing it ever said in regards to money was the cost of drawing that reply, and if you appreciated the answer, to donate dollar to your favorite charity.
Edit - one last question.
1
u/Shawnj2 Jul 04 '23
Hello, with the discontinuation of legacy products, particularly i.reddit and /.compact how many more months will old.Reddit be supported before the site is deprecated in favor of new Reddit?
1
u/deSuspect Jul 05 '23
Fucking pathetic lol Enjoy more traffic while 3rd party apps still work
1
u/TotesMessenger Jul 05 '23
I'm a bot, bleep, bloop. Someone has linked to this thread from another place on reddit:
If you follow any of the above links, please respect the rules of reddit and don't vote in the other threads. (Info / ^Contact)
1
u/[deleted] Jul 05 '23
RIF (RIF Is Fun) is an accessibility client as well. As in I am unable and unwilling to access reddit on my phone without it.
1
u/eightNote Jul 11 '23
How many weeks before it's one request a year?
1
u/mangogeckoshareingot Jul 11 '23
Can someone ELI5? I don't really get what these changes are doing.
1
u/EthanJudah Jul 15 '23
Any suggestions on how to increase API limits? Currently trying to scrape for a MSc dissertation. Limits are very frustrating
1
u/gravitygoing Jul 29 '23 edited Jul 29 '23
Hi. A little late, but I think this post is a good place to ask a question.
Recently, I sometimes receive 429 errors(Too Many Requests), but there is a question about the returned header fields. Returned header example:
{x-ratelimit-reset= 600, x-ratelimit-used = 0, x-ratelimit-remaining = 600,},{x-ratelimit-reset= 23, x-ratelimit-used = 638, x-ratelimit-remaining = 0,}Why the max value of 'x-ratelimit-used' is '600'?
The time window seems to be reset as 600 always, i.e. 10 minutes. You say 100 queries per a minute for free API access. Then 10 minutes should be 100x10=1000. Therefore, the max value of remaining/used should be 1000.
Is this calculation correct? But why is 600 the max value for returned headers? Is it calculated differently on the real server?
0
u/[deleted] Jun 30 '23
[deleted] — view deleted comment
0
u/[deleted] Jun 30 '23
[deleted] — view deleted comment