Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fetch/add OneDrive photo tags via API?

Tags:

exif

onedrive

On the OneDrive website under Photos>Tags, it shows that it has behind-the-scenes done analysis of my photos and figured out common tags, e.g. #People, #Fireworks, #Whiteboard.

How can I access these tags programmaticaly via the OneDrive API?

It looks like they're not physically stored within the JPEG's EXIF header - at least, I didn't find them using ExifTool or the exifdata.com website. (Actually I can't even tell whether EXIF allows for arbitrary tags to be stored in it... a search for "exif tag" understandably produces the wrong results :) )

And I couldn't find any OneDrive APIs that mentioned these tags. They didn't seem to be present in any facets, for instance.

like image 925
Lucian Wischik Avatar asked Feb 21 '16 06:02

Lucian Wischik


People also ask

How do I add tags to OneDrive photos?

Add a new tagSelect a photo, then select Edit tags. On the Edit tags pane that opens, type a new tag, like Hiking, Art, Food, etc.

Is there an API for OneDrive?

The OneDrive REST API is a portion of the Microsoft Graph API which allows your app to connect to content stored in OneDrive and SharePoint.

How do I upload files to OneDrive and share it with REST API?

Choose an office file, and then click upload button. The file will be uploaded to OneDrive, and a preview page will be rendered. Microsoft All-In-One Code Framework is a free, centralized code sample library driven by developers' real-world pains and needs.


2 Answers

At this point in time (February 2016), this isn't accessible via the API.

There is, however, a UserVoice request to have these added to the API. On November 25, 2015, it was tagged with "In the plans" and is currently 11th on the list of planned features. There is not an associated ETA for when the request will be completed.

like image 161
Andy Avatar answered Oct 08 '22 02:10

Andy


If you add your own tags to a JPG file via the OneDrive website or iOS app, it will write them to the EXIF data in the file and update the file synced to your local file system.

I'm not sure which other file types it will do this for, but it certainly doesn't work for HEIC and MOV files at the moment.

like image 41
Rehan Avatar answered Oct 08 '22 04:10

Rehan