mediaItems endpoint just returns 2 items, have more than 10K in my libraray

24 Views Asked by At

So i was creating a script to see what items have been uploaded to google photos and what items have not.

Yesterday this worked fine, fetching more than 8K items using the same script, only now its just returning 2 pictures, both taken yesterday. When investigating further using postman I'm also getting just 2 results back of yesterday. Now I've removed those images (since they where screenshots and I don't want to keep them) now the list is empty

This is the CURL

curl --location --request GET 'https://photoslibrary.googleapis.com/v1/mediaItems' \
--header 'Authorization: Bearer xxx'

This is the result

{
    "nextPageToken": "xxxxxx"
}

My library contains more than 10K photos so I'm a bit confused. Is there some counter somewhere stating that this is the last page? It seems like it, since the next page using the nextpagetoken is empty.

Hope if someone has the answer for me. Thanks!

0

There are 0 best solutions below