'Iterate through all previous versions of Google Sheets

I want to iterate through all previous versions of a Google sheet and extract some information from all the versions along with version timestamp.

Is there any easy to do so? I couldn't find any API which could loop through the previous versions.



Solution 1:[1]

You could try using the Revision.list method to retrieve the Revision history of a file. Referencing this answer from a similar thread looks like you will need to download and re-upload back the file so you can have the specific version that you want available as there is no way to make a copy programatically using the Revisions Drive API.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Gabriel Carballo