One month down in 2025: How are your resolutions coming along? Check out how to get back on track here.
Forum Discussion
Sophia S.3
9 years agoNew member | Level 1
Dropbox API rate limits
Hi,
I am hitting dropbox API rate limit and I can see 429 status code, I know that dropbox rate limit is per user basis.
I just wanted to know the number, How many API calls are allowed per user per day.
Thanks,
Murali
- Richard P.
Super User alumni
The documentation suggests that reasonable use should never hit the rate limiting level, so I wonder what you are doing :)
It also says you need to contact the developer support team to discuss your requirements:
- Greg-DB
Dropbox Staff
The Dropbox API does have a rate limiting system, but we don't have any specific numbers documented. It is only designed to prevent abuse though, and is accordingly very generous. You generally don't need to worry about hitting it in normal use, as Richard noted.
Also note that not all 503s indicate rate limiting, but in any case that you get a 429 or 503 the best practice is to retry the request, respecting the Retry-After header if given in the response, or using an exponential back-off, if not.
If you inspect the body of the response, it may contain more specific information about the issue (e.g., explaining if it's explicit rate limiting, or some different issue).
In any case, if you can share some context and let me know what endpoints you're seeing this with, I'll be happy to offer any advice I can about potentially optimizing your implementation.
- Sophia S.3New member | Level 1
Thanks Gregory
Here is the status of the error that I saw.
Status code : 429
Error Description: {u'error_summary': u'too_many_requests/...', u'error': {u'reason': {u'.tag': u'too_many_requests'}, u'retry_after': 300}}It would be very useful if you can share how the rate limits are calculated.
Thanks,
Murali
- Greg-DB
Dropbox Staff
The rate limit system is based on the rate of API calls from an app-user pair over an amount of time.
What endpoint are you getting that from though? Can you share some code and context so I may be able to offer some advice?
- Sophia S.3New member | Level 1
Thanks Gregory,
In my code I am actually trying to get all the folder and file details for each user, and Also to get shared details for each file and folder. I have around 50K files. In case sequential execution everything works as expected. If I try to list files and folders with multiple process then I am hitting rate limits. Here I am trying to run 3 processes at a time.
So In this case just wanted to confirm, If I do some amount of calls in the same time. Does it hit rate limits?
Thanks,
Murali
- Greg-DB
Dropbox Staff
In that case, make sure you're using /files/list_folder[/continue] with recursive to true to get the listing.
And yes, it's based on making a large number of requests in a certain amount of time.
- Richard P.
Super User alumni
It did use to say somewhere in the dev docs that traversing the entire document tree for an account was not recommended for precisely this reason, did that advice go away? :)
- Greg-DB
Dropbox Staff
Using the recursive parameter is the solution to that in API v2, as it lets you get all of the metadata in the account without needing to make a call for every folder.
- Sophia S.3New member | Level 1
Here I am using /files/list_folder API, and I got all the files/folder metadata but to get shared details for each file/folder I have to make API call for each shared I'd.
- Chris ChrisExplorer | Level 3
Hello,
I am also hitting the rate limit. My application searches for zip files in a folder and extracts them. They contain thousand of tiny files which are uploaded one by one. This takes some hours with fast internet. Any ideas? Should I wait some time between the uploads or zip files? How long?
That is the error message:
INFO:dropbox:Request to files/upload
DEBUG:urllib3.connectionpool:https://content.dropboxapi.com:443 "POST /2/files/upload HTTP/1.1" 429 None
INFO:dropbox:Ratelimit: Retrying in 15.0 seconds.Kind Regards,
Chris
- Chris ChrisExplorer | Level 3
Found a solution here in section File Uploads:
- Greg-DB
Dropbox Staff
Are you using /sharing/get_folder_metadata to get information on each shared folder? If so, you can instead use /sharing/list_folders[/continue] to list them all more efficiently.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,947 PostsLatest Activity: 10 minutes ago
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X or Facebook.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!