2

I'm trying to do a really basic Google People API request...

https://people.googleapis.com/v1/people/108498888227655418560?personFields=photos&key=XXX (API key redacted)

It produces the error... { "error": { "code": 403, "message": "The caller does not have permission", "status": "PERMISSION_DENIED" } }

I've successfully tested the API key before with the same type of request. It's a key from our Google Developer Console called "Browser key (auto created by Google Service)".


I also tried the same request using the Google API Explorer using API key authentication, same result...

Google API Explorer error

The API Explorer uses a demo API key, so the problem isn't the key it seems.


Could it be photos is no longer part of a Google user's public profile data? I don't think so, since you can go see the user's profile photo (even when completely logged out of Google) at... http://profiles.google.com/108498888227655418560

Maybe the People API is just broken? It was definitely working just a couple of days ago (Feb 5th 2018).

chichilatte
  • 1,697
  • 19
  • 21

1 Answers1

0

Google People API was actually broken.

chichilatte
  • 1,697
  • 19
  • 21
  • is? I am here today with the same issue. On some requests it shows the photo just fine, on others I get 403. – Stijn de Witt May 08 '20 at 10:33
  • 1
    If it was working perfectly for you previously and now is intermittent then it may well be broken again. Tweeting @googledevs might help? – chichilatte May 08 '20 at 11:26
  • Yeah I'm pretty certain it's broken (again)... I'm not sure if it ever worked perfectly because this is a new app I'm developing. I've seen broken images countless times and it keeps bugging me but every time I investigate it's the same thing: the copied URL just works for me ina new browser tab and in the network tab I see 403 responses for the broken images. – Stijn de Witt May 08 '20 at 14:01
  • I did not know about @googledevs, might try that, thanks! – Stijn de Witt May 08 '20 at 14:01