Questions tagged [google-photos-api]

Using the Google Photos Library API your app can read, write, and share photos and videos in Google Photos.

222 questions
3
votes
0 answers

Can you use the Google Photo API with the Google picker?

My understanding is that the Google Picker can be used to select "Picasa" photos and albums. However, since the Picasa API has now been shutdown, the ids returned by the picker are completely useless (at least as far as doing anything with the…
Dylan Watson
  • 2,283
  • 2
  • 20
  • 38
3
votes
2 answers

Google Photos API - Is there a way to get direct, permanent, link to images?

Quite simple question about these new APIs: I already created a system fetching album images, but the baseUrl expires after a while. Is there a system to get a non-expiring URL? Until today I was using Picasa APIs (now closed), giving me a permanent…
a-coder
  • 291
  • 2
  • 14
3
votes
0 answers

Streaming google photos videos in iOS not working (nor in Safari)

I am trying to use the base url provided by google photos API (example below) but it is not streaming not in iOS not in Safari. I am using AVPlayer in iOS and receive the following error: Error Domain=AVFoundationErrorDomain Code=-11850 "Operation…
David Bemerguy
  • 1,334
  • 11
  • 15
3
votes
1 answer

Google Library Photos Api

// Set up the Photos Library Client that interacts with the API PhotosLibrarySettings settings = PhotosLibrarySettings.newBuilder() .setCredentialsProvider( FixedCredentialsProvider.create(/* Add credentials here. */)) …
3
votes
0 answers

Google Photo API - get file by name

I has filename from meta info and I wanna download this one. I checked documentation and I didn't find how it does. Does it possible?
3
votes
1 answer

Google Photos API - a permanent url to an uploaded item for static content

I'm trying to refactor a Java application using the Picasa Web Albums API to using the new Google Photos api. In Picasa API you had the PhotoEntry object, which represented the uploaded entity and one could access the URL to the uploaded image as…
sc3_2
  • 51
  • 5
3
votes
3 answers

Google Photos API mediaItems:batchCreate : NOT_IMAGE: There was an error while trying to create this media item

I'm trying to upload an image file to Photos library using C#. Scopes used: https://www.googleapis.com/auth/photoslibrary https://www.googleapis.com/auth/photoslibrary.appendonly I'm generating uploadToken using below: FileStream fS = new…
3
votes
1 answer

Google Photos APIs - Move EXISTING image to album

Since few days I've been searching for a solution for a problem described in title. The problem: I have some images in google photos and I want to move them to a specific album using Google Photo Api. I based on…
kjago
  • 69
  • 3
2
votes
1 answer

Error 3 uploading video to Google Photos with Powershell (Works for pictures)

I am using the following code to upload photos and videos to Google Photos using Powershell. The code works perfectly for pictures, but will fail when uploading a video (which is accepted in Google Photos when this is uploaded through a…
Riccardo
  • 2,054
  • 6
  • 33
  • 51
2
votes
1 answer

Google Photos API service obj NoneType' object has no attribute 'album'

What do I want to achieve? Upload Photos From Given Dir to Google Photos Album Reference Links Guide I am using Files Google.py: it Creates Service Object as per Need main.py: I have imported Service obj from Google.py Google.py import pickle import…
2
votes
0 answers

Access control for media files on Google Cloud Storage

I have a social media app deployed on App Engine where users can upload and share photos/videos with a private group of people. For writes, I have a POST endpoint that accepts uploaded files and writes them to one GCS bucket that's not public. For…
2
votes
1 answer

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

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…
Merc
  • 16,277
  • 18
  • 79
  • 122
2
votes
0 answers

How do I search for a photo with a specific filename using the Google Photos API?

When I go to https://photos.google.com/ I can enter a filename into the search box and find the photo with that filename. Is it possible to do that using the Google Photos API? I can't find any example or reference that shows how to do…
2
votes
0 answers

How to get mediaItemId of a Google photo using its shared URL?

I'm using Google Photo APIs to download a list of photos which have been shared. For example: https://photos.app.goo.gl/MNZQw1AJg2VaNM1K7 But I don't know if it is possible to obtain the mediaItemId from this kind of URL?
Tu Le
  • 309
  • 2
  • 7
2
votes
0 answers

List all "People" albums in Google Photos API

I was wondering if there was any way to use albums.list or any other API which will return a list of all the faces you have in your Google Photos?
1 2
3
14 15