Find out which album(s) a photo is in in Google Photos API

548 Views Asked by At

I am using the Google Photo API, https://developers.google.com/photos/library/reference/rest I am using get successfully to get information about a media (a photo). However, I really really need to know WHICH albums the photo is in (it cam be multiple).

Is there any way to do this? Am I missing something?

1

There are 1 best solutions below

0
On BEST ANSWER

You can get all albums first and then get photos through https://developers.google.com/photos/library/reference/rest/v1/mediaItems/search by adding the parameter of albumId.