title: How to get profile info google photo library api
body: <p>I was writing a simple logic to list pictures using the Google Photos REST API. I'd like to print the connected user profile once they are logged into my app. <strong>But</strong> I cannot find any endpoint in the REST API to get the user profile as in Gmail or Drive REST APIs.</p>
  
  <p><a href="https://developers.google.com/photos/library/guides/get-started#request-id" rel="nofollow noreferrer">https://developers.google.com/photos/library/guides/get-started#request-id</a></p>
  
  <p>Meanwhile, I have tried to get the user details from the oAuth2 access token, but it does not give any user details like mail id or name.</p>
  
  <p><strong>GET</strong> <a href="https://www.googleapis.com/oauth2/v1/tokeninfo?access_token=ACCESS_TOKEN" rel="nofollow noreferrer">https://www.googleapis.com/oauth2/v1/tokeninfo?access_token=ACCESS_TOKEN</a></p>
  
  <p><strong>Response:</strong></p>
  
  <pre><code>{
      "issued_to": "xxxxx.apps.googleusercontent.com",
      "audience": "xxxxxx.apps.googleusercontent.com",
      "scope": "https://www.googleapis.com/auth/photoslibrary",
      "expires_in": 3522,
      "access_type": "offline"
  }
  </code></pre>
  
  <p>Is there any way to retrieve user profile from the above oAuth2 access_token (independent to the scope)?</p>