Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
Is it possible to retrieve multiple thumbnails of multiple files at once ? I tried to make a request to https://photos.dropbox.com/thumbnails_batch just like the guide from https://blogs.dropbox.com/tech/2014/01/retrieving-thumbnails/ but it doesnt' work and I'm not sure if I did it wrong or this end point is no longer supported.
I tried to make a get request to https://photos.dropbox.com/thumbnails_batch?paths= /path/to/thumb0.jpg,/path/to/thumb1.jpg,[...],/path/to/thumbN.jpg but it showed 4xx error. Please advice if I missed anthing from this request.
Thank you
That's a way of calling the API endpoint and supplying the credentials on the URL itself (instead of in a header), but the API call still returns the thumbnail data directly.
API v2 does also offer a way to do this as well as documented here under "Content-download endpoints" (i.e., using the 'authorization' and 'arg' URL parameters).
It's important to note thought that while it does technically produce a single URL that returns a thumbnail that can be accessed just via a GET request, it should be used with caution, as it could leak the access token. For example, you shouldn't use this technique client-side if the thumbnails are being shown to anyone other than the owner of the files, as the links contain the access token.
The different versions of the API work differently, so it won't be a matter of just replacing /1/thumbnails with /2/get_thumbnail. For API v2, you'll need to use the 'authorization' and 'arg' URL parameters, per the documentation I linked to earlier:
https://www.dropbox.com/developers/documentation/http/documentation#formats
For example, getting the thumbnail for a files at /test.jpg would look like this:
https://content.dropboxapi.com/2/files/get_thumbnail?authorization=Bearer%20ACCESS_TOKEN_HERE&arg=%7B%22path%22%3A%20%22%2Ftest.jpg%22%2C%22format%22%3A%20%22jpeg%22%2C%22size%22%3A%20%22w64h64%22%7D
Hi there!
If you need more help you can view your support options (expected response time for a 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!