We Want to Hear From You! What Do You Want to See on the Community? Tell us here!
Forum Discussion
alexz
5 years agoExplorer | Level 4
Get metadata for batch of files
Hi everyone,
Does anyone know how to get metadata for a batch of files?
I'm querying the files via "list_folder" / "list_folder/continue" but since December 2, 2019 it doesn't return "media_info". The question is how to get metadata for these files (especially "media_info->time_taken")? E.g. if "list_folder" has returned 500 files how can I get this data for all of them? 500 separate requests to "get_metadata" look a little bit overwhelming.
Is there is any other way?
Thanks.
3 Replies
- Greg-DB5 years ago
Dropbox Community Moderator
Unfortunately there isn't a batch way to get metadata with media info, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though.
- alexz5 years agoExplorer | Level 4
Thank you for the information. But how to deal with `API rate limit error: too_many_requests` in this case?
- Greg-DB5 years ago
Dropbox Community Moderator
That error indicates that you're hitting a rate limit, so you'd need to catch that error and have your app wait before trying again. The Dropbox API has a rate limiting system in order to protect against high rates of calls. Note that not all 429s and 503s indicate explicit 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.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,035 PostsLatest Activity: 5 hours ago
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
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!