I was going through the documentation for the new Google Photos API, but unable to find any information for the album metadata along with photo information.
Like, if I am using a List library contents API with filter, the resultant photos does not provide me the details of the albums that photo belongs to.
Is it even possible with the current API?
I checked in the mediaItems ref also. Unable to find such item. Has anyone explored this thing?
A media item can belong to multiple albums, some of which might be shared.
However, the Library API does not provide a mapping from a media item back to albums it belongs to. You could file a feature request and describe your use case if this is something that is missing for you. Be sure to describe how you would use this feature.
If you want to see if a particular media item (e.g. one you have found via a search) is part of an album, you need to compare their IDs. For example, you could list the contents of an album and check if the ID of the media item you are interested in is part of the response.