Using the Google Photos Library API your app can read, write, and share photos and videos in Google Photos.
Questions tagged [google-photos-api]
222 questions
1
vote
1 answer
Best way to refresh the thumbnail/base url of Google Photos/Google Drive API
Google suggests to retrieve the base url again when needed after 60 minutes after the origin query because the url's expire.
So far, so good. But what if I'm developing a photo gallery and I'm displaying 5000 or them in a grid? Should I query the…

Denny Weinberg
- 2,492
- 1
- 21
- 34
1
vote
0 answers
Event Hooks for Google Photos API
I am wondering whether the Google Photos API offers an interface for events/hooks. Ideally, I would like to provide a callback URL/endpoint can is hit every time a new album etc. is created. Reading the docs I cannot determine whether this is…

rhys_stubbs
- 538
- 6
- 16
1
vote
2 answers
mediaItems.search_next() returns 400
Unable to get all results of mediaItems.search:
photos = google.get_service(credentials, 'photoslibrary', 'v1')
request = photos.albums().list(pageSize=50)
while request is not None:
result = request.execute()
for album in result['albums']:
…

Toto
- 161
- 4
1
vote
1 answer
Accessing other user's public photos using Google Photos Library API
Is it possible to retrieve other user's public photos using Google Photos Library API? I don't see any such thing in the Documentation. All I can retrieve is my own uploaded photos.

Mohsin
- 73
- 2
- 9
1
vote
2 answers
What time is does the daily Google Photos API Quota Reset?
I currently have a usage quota of 4,000,000 requests per day via the Google Photo Library API. We're doing a large promotion of our product which has now blown through the quota.
I'm now receiving an error code 429. Does anyone know what time of…

Bruce Seymour
- 1,520
- 16
- 24
1
vote
1 answer
Google Photos API - Can I access existing enrichments?
I'm using the Google Photos Java API to create a small program to access the contents of a pre-existing album. I have been able to get code up and running that can report the album's name, and the media items it contains and so on, but not the text…

GuyCC
- 31
- 4
1
vote
1 answer
Is there a way to add comments through Google Photo API?
I would like to know if I can add comments to a google photo shared album via the API?
Cheers,

Paul Fournel
- 10,807
- 9
- 40
- 68
1
vote
1 answer
Getting 403 Forbidden when using Google Photos API
I'm sorry but English is not my first language and my English is broken.
I'm trying to download my 3000+ pictures using Google Photos API with Python.
First I downloaded MediaItems list with this code.
from pathlib import Path
from requests_oauthlib…

Sakaki Mirai
- 13
- 1
- 4
1
vote
0 answers
How to set "pageSize" with the java client of the Google Photos API
We are using the Google Photos API java client on Android to retrieve some of the user's photo with this code:
try(PhotosLibraryClient photosLibraryClient = PhotosLibraryClient.initialize(settings)) {
…

Gauthier
- 4,798
- 5
- 34
- 44
1
vote
1 answer
Integrate Google Photos Library API in android application
I want to integrate google photos api in android,I have done google sign in process but I am not able to get access token because i was getting error in FixedCredentialsProvider.create method while passing parameter.
PhotosLibrarySettings settings…

kuldeep pandit
- 11
- 1
- 3
1
vote
1 answer
0Auth2 problem to get my google photos libraries in a google sheet of mine
I am trying to follow documentation but never get the 0Auth2 to connect.
Btw I'm running the script manually from the google sheets scripting page, where should I get prompting for allowing access?
(I don't understand all this 0Auth2 scheme and I…

Frç Ju
- 31
- 2
1
vote
0 answers
Google Photos API, pageToken field in response always populated
I am playing with Google Photos API Explorer. Documentation says that pageToken field in response Populated if there are more albums to retrieve for this request. But in practice it's always populated, even if it's a last page and the next page…

AyumuKasuga
- 189
- 1
- 8
1
vote
1 answer
Google Photos API : Auto backup photos
The Picasa API returns an album called "Auto Backup" which contains all media not associated with an album.
I am unable to fetch "Auto Backup" photos using the new Google Photos API. My scope is set to…

Amitendu Panja
- 13
- 2
1
vote
2 answers
NoSuchMethodError: No static method catching(Lcom/google/common/util/concurrent/ListenableFuture
I want to upload a photo to Google-Photo using google-api-client. Here is my code:
gradle file:
api 'com.google.api-client:google-api-client:1.26.0'
api 'com.google.api-client:google-api-client-android:1.26.0'
api…

Nguyen Minh Binh
- 23,891
- 30
- 115
- 165
1
vote
1 answer
uplaod video use google-photos-api
Video file uploaded using api, its file name is an upload date,Parameters set according to the document.This is the code and result:
String url = "https://photoslibrary.googleapis.com/v1/uploads";
HttpPost post = new HttpPost(url);
…

user10477369
- 11
- 1