We Want to Hear From You! What Do You Want to See on the Community? Tell us here!
Forum Discussion
Hillaero
5 years agoHelpful | Level 6
What is the easiest way to download 101 previous revisions of a file?
I have a file that gets edited multiple times a day. There was content in this file that was only visible for a couple days about a month ago. What is the best way to get that information?
I tried using the web interface, but it was clear that it would take hours of loading previous versions to get back that far. I did some searching on the forum and saw this post How-to-batch-download-the-entire-file-version-history . I said to myself, that will be a fun project, I might even learn something. With much enthusiasm, I took their advice and wrote my own app.
It is Monday morning, April 12, 2021. My app is ready. My file is in the crosshairs. Soon I will be able to find a keyword in all open documents using Notepad++. It is so close.
JSON parsing error
Reload App . . .
JSON parsing error
Devastated, I find that I can only load 100 previous versions using list_revisions. This gets me back 10 days...
Do I really have to write an autohotkey program to scrape the website to get this information? Or did they implement this request from 2017 and I just don't see it?
Thank you
2 Replies
- iNeil2 months ago
Dropbox Community Moderator
Hello Hillaero,
There has been a recent enhancement to the Dropbox API’s /2/files/list_revisions endpoint that may be helpful for your implementation. The endpoint now supports two new capabilities:
- before_rev (optional request parameter): This allows you to request revisions that occurred before a specific revision ID. It can be set using the rev of the last entry from a previous response. Currently it is only supported when using path mode in your request.
- has_more (response field): This boolean indicates whether additional revisions are available. If true, you can continue retrieving older revisions by making another call with the before_rev request parameter. If false, it means all available revisions have been returned, and there are no more entries to fetch.
These updates have improved the pagination functionality for file revision history. However, this functionality is not yet available in the Dropbox SDKs. To use the new capabilities, you’ll need to make direct HTTP requests to the /2/files/list_revisions endpoint.
If you have any questions, please don’t hesitate to reach out to us.
Best regards,
API Support Team - Greg-DB5 years ago
Dropbox Community Moderator
Unfortunately this hasn't been implemented on the API. It still only supports retrieving 100 revisions. That's still open as a feature request though. Apologies I don't have better news for you!
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,035 PostsLatest Activity: 2 years 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!