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
22
votes
4 answers
Location Data Google Photos API
When I query a photo in Google photos via the API, it doesn't return any location data that is associated with the image. I can see the location on the map when I view the information about the image in Google Photos, however the API doesn't give…

Andrew Schultz
- 4,092
- 2
- 21
- 44
12
votes
4 answers
Access Google Photo API with Python using google-api-python-client
According to Google API Client Libraries page it is possible to access the Google Photos API using the python client library, but after installing it using pip install -t lib/ google-api-python-client I don't see anything related to Photos API.
How…

Ido Ran
- 10,584
- 17
- 80
- 143
7
votes
1 answer
java.io.IOException: Error reading credentials from stream, 'type' field not specified
I am trying to authenticate a java app into the google photos api, using my own account, which doesn't support service_account as per documentation. The problem is that the file generated by the google-console for OAuth2 authentication doesn't…

Stela
- 71
- 1
- 1
- 2
7
votes
2 answers
Retrieve file size for videos stored on Google Photos
Context: I wanted to see how I'm using my Google Photos space and I wrote a little script in Python that uses the Google Photos API to retrieve all my albums and it's contents (using…

Josep Valls
- 5,483
- 2
- 33
- 67
7
votes
4 answers
photos.google.com/activities/photo_likes - call in javascript
https://photos.google.com/activities/photos_likes returns likes photos in shared albums. I would like to use the photoslibrary api or the activities api to find liked photos in shared albums.
However, I cannot find the documentation on how to do…

user10598002
- 79
- 3
7
votes
1 answer
Can upload photo when using the Google Photos API
I am trying to upload a photo (jpg image) using the new Google Photos API.
I am able to get an uploadToken but when I try to create the media item I get the following error:
{
"newMediaItemResults": [
{
"uploadToken":…

R. Sutherland
- 71
- 1
- 3
7
votes
2 answers
Is it possible to delete a photo or an album created via Google Photos API?
There does not seem to be any way of removing created photos or albums even when full access is grated to the program.
Delete support is vital for the Photos API to be complete. Lack of delete functionality really limits the usefulness of the API.…

homiak
- 401
- 5
- 12
6
votes
1 answer
Google Photos API - new version?
I'm writing a program to backup my Google Photos library locally, and last week the code was working fine but in the last few days I've been repeatedly getting an error back from the API client saying that "photoslibrary v1" does not exist within…

Ciaran O'Shea
- 61
- 2
6
votes
2 answers
Downloading a file from Google Drive in Javascript client
I'm trying to integrate the Google Drive in my angular application So that our users can copy the content from docs and download their images to my application. As per the file:get API Documentation, I'm using the below code to get the file
var…

VBC
- 161
- 1
- 3
- 15
6
votes
2 answers
Selecting video from Google Photos provider doesn't give mimetype information
I've created a sample here to reproduce this issue.
I'm running this project on an emulator with API level 29 and selecting a video from google photos provider.
But I cannot figure out how to get the mimeType of the selected file.
I've used…

Shivam Pokhriyal
- 1,044
- 11
- 26
6
votes
0 answers
Using Google api for Photos java client in android
Almost all the google services are available in 'google play services' for android and some are still only available as java library and there are instructions to use those java libraries in…

Thiyaga B
- 971
- 1
- 9
- 26
6
votes
3 answers
Authentication session is not defined
I try to use Google Photos API to upload my images, base on the steps of the following link.
https://developers.google.com/photos/library/guides/upload-media
After following the Using OAuth 2.0 for Web Server Applications, I just get the…

Chao
- 179
- 1
- 8
6
votes
3 answers
Uploading photo to Google Photos API not returning upload token
I'm using the 2018 version of the Google Photos API to upload images and media as documented here: "Uploading Bytes"
When I upload a new image or video I never get an upload token in the body of the response. It's always an empty body, which…

Edward Q. Bridges
- 16,712
- 8
- 35
- 42
6
votes
0 answers
Google photos api - Access-Control-Allow-Origin
I am building a design tool to create fully customizable photo products like photobooks. I use technologies such as firebase (database and storage) and angular4. In order to integrate google photos with my web app I use the google photos api. When I…

Dimitrios Tournoglou
- 61
- 2
5
votes
1 answer
Can't Upload Image with Google Photos API using NodeJS
I have application built in NodeJS it is suppose to upload pictures to google photos using google photos API
for the authentication part I'm doing successfully, i have problem when i try to upload pictures i receive the upload token without problem…

Laith Omar
- 59
- 6