We Want to Hear From You! What Do You Want to See on the Community? Tell us here!

Forum Discussion

purnasomebody's avatar
purnasomebody
Explorer | Level 4
6 years ago
Solved

unable to get all Image details information from Metadata (media_info)

how to get all the Image details information from metadata using api v2. In api v1 we were able to get  below information but now how we can able to get these kind of infromation from V2.

example:

"contents": [
{
"size": "2.3 MB",
"rev": "38af1b183490",
"thumb_exists": true,
"bytes": 2453963,
"modified": "Mon, 07 Apr 2014 23:13:16 +0000",
"client_mtime": "Thu, 29 Aug 2013 01:12:02 +0000",
"path": "/Photos/flower.jpg",
"photo_info": {
"lat_long": [
37.77256666666666,
-122.45934166666667
],
"time_taken": "Wed, 28 Aug 2013 18:12:02 +0000"
},
"is_dir": false,
"icon": "page_white_picture",
"root": "dropbox",
"mime_type": "image/jpeg",
"revision": 14511
}
],

  • To retrieve the additional media information for a media file like this via API v2, call /2/files/get_metadata with include_media_info:true. If the media information is available for the file, it will be included in the FileMetadata.media_info in the response.

3 Replies

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

    To retrieve the additional media information for a media file like this via API v2, call /2/files/get_metadata with include_media_info:true. If the media information is available for the file, it will be included in the FileMetadata.media_info in the response.

  • purnasomebody's avatar
    purnasomebody
    Explorer | Level 4
    6 years ago

    Greg-DB  Thanks 
    Yes I am able to get the additional info like location, dimension, timetaken. Can i get other information too ? like shutter speed, aperture etc we can get this infromation from Dropbox UI but i need to get it from API Is that possible?

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

    No, unfortunately the Dropbox API doesn't expose these additional fields, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. 

    If you want to retrieve this information, you'd need to download the file and parse out that data from the file.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.6,035 PostsLatest Activity: 7 years ago
410 Following

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!