We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
neunygph
10 years agoExplorer | Level 4
Getting multiple thumbnails of multiple files at once ?
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/...
neunygph
10 years agoExplorer | Level 4
Hi Greg,
I'm trying to get a thumbnail for an image in my account and make a POST request to https://api.dropboxapi.com/2/files/get_thumbnail, and it successfully returned with a status 200, which is good. But from the json response, I do not see any link or url to this thumbnail. Also, regardless what size or format option I put in, the returned data is always showing that the thumbnail is the same size and the format is always the original format when uploaded.
For instance, I uploaded a .jpeg or jpg image. Is it possible to retrieve a .png thumbnail and the size other than the original uploaded size ? And where do I find the link/url for this thumbnail from the response. Please advice.
Thank you
I'm trying to get a thumbnail for an image in my account and make a POST request to https://api.dropboxapi.com/2/files/get_thumbnail, and it successfully returned with a status 200, which is good. But from the json response, I do not see any link or url to this thumbnail. Also, regardless what size or format option I put in, the returned data is always showing that the thumbnail is the same size and the format is always the original format when uploaded.
For instance, I uploaded a .jpeg or jpg image. Is it possible to retrieve a .png thumbnail and the size other than the original uploaded size ? And where do I find the link/url for this thumbnail from the response. Please advice.
Thank you
Greg-DB
Dropbox Community Moderator
10 years agoThe /2/files/get_thumbnail endpoint returns the raw thumbnail data directly in the response body, not as a URL. You'll want to read the response body out and save or display that as the thumbnail. The API doesn't offer a way to get links for thumbnails, but I'll be sure to pass this along as a feature request.
Also, the JSON in the dropbox-api-result header is the metadata for the original file itself, not the returned thumbnail data.
- neunygph10 years agoExplorer | Level 4Look like the api version 1 support thumbnails url, I'm just wondering when v1 will be deprecated or no longer in use anymore?
- Greg-DB10 years ago
Dropbox Community Moderator
The API v1 /thumbnails endpoint also only returns the data, not a URL.
You can find the deprecation timeline for API v1 here:
https://blogs.dropbox.com/developers/2016/06/api-v1-deprecated/
- neunygph10 years agoExplorer | Level 4Hi Greg,
According to the document from https://www.dropbox.com/developers-v1/core/docs#thumbnails, I implemented the api v1 to get an image thumbnail and I got this and I am able to display the thumbnail with this active url https://api-content.dropbox.com/1/thumbnails/auto/IMG_8199.jpg?size=l&access_token={mytoken}. So I'm wondering if there is a replacement for v2 with a similar URL like the one from https://api-content.dropbox.com/1/thumbnails/auto/IMG_8199.jpg?size=l&access_token={mytoken}.
Thanks,
About 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!