Need to see if your shared folder is taking up space on your dropbox đŸ‘šâ€đŸ’»? Find out how to check here.

Forum Discussion

Daemonzoid's avatar
Daemonzoid
Explorer | Level 3
9 years ago
Solved

Thumbnails

is there a way to GET tumbnails in batch now? getting the thumbnails one by one is really to slow to be usefull.

  • No, the Dropbox API doesn't currently offer a batch thumbnail endpoint, but I'll be sure to pass this along as a feature request.

5 Replies

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    9 years ago
    No, the Dropbox API doesn't currently offer a batch thumbnail endpoint, but I'll be sure to pass this along as a feature request.
  • Jeroen B.1's avatar
    Jeroen B.1
    Explorer | Level 4
    8 years ago

    Does anyone have an example of working code, preferably in Python?

     

    The method is called “files_get_thumbnail_batch”, but I am at a loss how to construct the argument. The docs call it “entries” and explain that this is “a list of files”, but what does that mean? What object type is meant, and how do I construct it?

     

    Thanks!

  • Greg-DB's avatar
    Greg-DB
    Icon for Dropbox Community Moderator rankDropbox Community Moderator
    8 years ago

    Jeroen B.1 Apologies, the Python documentation doesn't properly include the type for parameters that take lists like that.

     

    The files_get_thumbnail_batch entries parameter should be a list of ThumbnailArg. That would look like:

     

    entries = [
        dropbox.files.ThumbnailArg(path="/test.jpg", format=dropbox.files.ThumbnailFormat.png, size=dropbox.files.ThumbnailSize.w128h128),
        dropbox.files.ThumbnailArg(path="/test.png", format=dropbox.files.ThumbnailFormat.jpeg)
    ]
    
    print(dbx.files_get_thumbnail_batch(entries=entries))

     

     

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.

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, Facebook or Instagram.

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!