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
5
votes
4 answers
Google Photos API limits
I'm trying to use the Google Photos API to incrementally upload a very large local photo library.
Everything was working, but after uploading about 1.2GB the requests started being rejected with the following message:
Insufficient tokens for quota…

AngryPeaches
- 51
- 2
- 5
5
votes
1 answer
Google Photos API, pageSize Parameter not returning expected results
Using the Google Photos API Explorer I am trying to limit the number of albums returned using the albums.list method.
If I set pageSize = 10, the api explorer returns 5 albums, if I set it to 3 in returns 1 album.
Any suggestions as to why I am not…

nakunakifi
- 73
- 3
4
votes
1 answer
How to upload a picture to Google Photos using Powershell
there are basically no Powershell code samples over the Internet concerning how to upload photos to Google Photos.
According to the documentation, uploading media items is a two-step process:
Upload the raw bytes to a Google Server. This doesn't…

Riccardo
- 2,054
- 6
- 33
- 51
4
votes
2 answers
Google Photos API with filter to get photos with album information?
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…

kirtan403
- 7,293
- 6
- 54
- 97
3
votes
1 answer
How to migrate from OOB OAuth?
I am running a python script on the device with no screen/no browser (ssh access only). The script used offline Google's OAuth:
def get_authenticated_service( self , args):
flow =…

LA_
- 19,823
- 58
- 172
- 308
3
votes
0 answers
Uploading Videos to Instagram using InstaBot module
I am currently working on a bot which uploads a random media item from my google photos and uploads it to Instagram using InstaBot and the Google Photos API. Uploading pictures is fine, but when trying to upload video the bot says
yolo.mp4 has…

Aryan Garg
- 128
- 9
3
votes
1 answer
Google Photos API to archive photos
From the Google Photos API documentation, I found that we have the filter for the archived File/Album, but I am not able to find any reference to Archive. Are there any ways to archive the Google Photos through the REST…

Kirubakaran
- 378
- 4
- 20
3
votes
0 answers
How to get Google Photos tags?
I want to download some photos off Google Photos, but I'd like them to be searchable.
Is there any way of getting the tags Photos assigns to a file? If you search for "black car" or "dog" or "London", you instantly get a list of results - I doubt…

Buffalo
- 3,861
- 8
- 44
- 69
3
votes
1 answer
filter based media search with google photos API (python)
I'm trying to use the mediaItems().search() method, using the following body:
body = {
"pageToken": page_token if page_token != "" else "",
"pageSize": 100,
"filters": {
"contentFilter": {
…

Hadar
- 658
- 4
- 17
3
votes
0 answers
Google Photos API: Identify "motion photos"
For media items that are "motion photos", the Google Photos API allows you to append "=dv" to the base URL of a media item to get the item as a "video/mp4". Without the =dv, the item comes back as a "image/jpeg". This works more or less as…

Robert Levy
- 28,747
- 6
- 62
- 94
3
votes
1 answer
How do you authenticate a user for PhotosLibraryClient in an Android app with no backend server
Previously, I was using the library:
com.google.apis:google-api-services-photoslibrary:v1-rev1-1.23.0
But I've been informed that wasn't meant to be released, and it has some errors. So I've tried switching over the correct…

richjhart
- 336
- 3
- 12
3
votes
1 answer
How to use Google Photos API Method: mediaItems.search in Google apps script for a spreadsheet
I really tried to figure this out on my own...
I am trying to load photo metadata from google photos into a sheet using the Google Photos API and google apps script.
I was able to make some progress after a lot of help on a previous question
Is it…

Isaac Guerrero
- 33
- 1
- 5
3
votes
0 answers
Retrieving google photos with IONIC 3 with google photos API
I am working on an IONIC application.
In this app the user will be able to get photos from his google photos account and do some design manipulations on the image he selected.
So for that I want to use the google photos API
I did not find any…

Dushy
- 375
- 3
- 13
3
votes
1 answer
Google Photo returns "error 400: Request contains an invalid media item id. (INVALID_ARGUMENT)" when adding a media item into an existing album
After getting a list of media items and a list of albums from the Google Photo API (using Go and the Google Photo REST API), adding items to an album returns an error.
(Note: using the web interface to add the items to the album works fine).
Code to…

Morangorin
- 33
- 1
- 4
3
votes
2 answers
Json key is missing the refresh token field in google photos api
I am creating a app using google photos api in php. Here is my code
function connectWithGooglePhotos()
{
$clientSecretJson = json_decode(
file_get_contents('credentials.json'),
true
)['web'];
$clientId =…
user9312196