Skip to content

Instantly share code, notes, and snippets.

@msafi
Last active November 28, 2023 23:07
Show Gist options
  • Save msafi/b1cb05bfab5b897c57e6 to your computer and use it in GitHub Desktop.
Save msafi/b1cb05bfab5b897c57e6 to your computer and use it in GitHub Desktop.
How to get your Google account/user ID

Go to this link https://plus.google.com/me. The me part of the URL will be replaced by your Google user ID (a.k.a Google account ID)

@chrisrao
Copy link

The link shared above [https://plus.google.com/me] gives me Google's 404 error page. When this error comes, the "me" part changes to one huge number in the URL.

@alexko30
Copy link

thanks

@gfejos
Copy link

gfejos commented Feb 3, 2019

Google+ will be shut down in March/April. Is there an alternative way to get Google user ID?

@Dorian3280
Copy link

Google Sign In -> choose Web -> Get Started in bottom on the page then follow instructions.

@avielt10
Copy link

avielt10 commented Apr 11, 2019

After Google+ has shut down. find your user ID here:

  • Go to https://developers.google.com/+/web/api/rest/latest/people/get

  • On the right-hand side in the Try this API section, in "userId" enter "me"

  • Press the Execute button

  • If not already logged in log in with your Google account

  • After a successful login, an HTTP 200 result is shown

  • Below an "id" entry is shown

@Murpup569
Copy link

The link shared above [https://developers.google.com/+/web/api/rest/latest/people/get] I'm getting a 404 error.

@PavloChechehov
Copy link

The link shared above [https://developers.google.com/+/web/api/rest/latest/people/get] I'm getting a 404 error.

https://developers.google.com/people/api/rest/v1/people/get

@shdunning
Copy link

@deluser8
Copy link

deluser8 commented Mar 2, 2020

when i typed me or mygmail@gmail.com into resoureName, i got error "resourceName does not match pattern: /^people/[^/]+$/"

@deluser8
Copy link

deluser8 commented Mar 2, 2020

when i typed me or mygmail@gmail.com into resoureName, i got error "resourceName does not match pattern: /^people/[^/]+$/"

Oh, i fixed it.
just typing people/me instead of me

@Rakeshdom
Copy link

could you tell me how to delete URL which has been Created by Google User

@Rakeshdom
Copy link

because i need google user id

@elshanismayiloo
Copy link

when i typed me or mygmail@gmail.com into resoureName, i got error "resourceName does not match pattern: /^people/[^/]+$/"

Oh, i fixed it.
just typing people/me instead of me

Hi. Sorry, I have an issue with something about this thing. But my issue is this: I have my users' IDs and I need to find them Gmail addresses. Can I use your this API method as an opposite way? Thanks for your attention in advance.

@jakeee51
Copy link

Greetings all. How do you obtain other resourceNames. In other words the people/{account_id} of other users other than me ?

@hanhbyte
Copy link

I can't enter anything on resourceName. Helpppp

@UnrelatedWorks
Copy link

resourceName: people/me
personFields: clientData

{
"resourceName": "people/XXX",
"etag": "%YYY"
}

XXX is your ID

@KylieKat17
Copy link

Greetings all. How do you obtain other resourceNames. In other words the people/{account_id} of other users other than me ?

If this ever gets figured out please let me know

@lukaret
Copy link

lukaret commented Nov 14, 2023

Hello how verify my google with id?

@userbradley
Copy link

Greetings all. How do you obtain other resourceNames. In other words the people/{account_id} of other users other than me ?

If this ever gets figured out please let me know

@KylieKat17 from my understanding, and from what I have been able to do, you can only get users info if you know their numerical ID

If you know their account ID then you can follow this guide

@KylieKat17
Copy link

If you know their account ID

@userbradley See, I tried that with the accountID (which is the same as the google plus user ID), and it gives me an error. It might be my API key that's the issue, but that's a different problem entirely in that case

@userbradley
Copy link

If you know their account ID

@userbradley See, I tried that with the accountID (which is the same as the google plus user ID), and it gives me an error. It might be my API key that's the issue, but that's a different problem entirely in that case

I believe you can only get your self and those in the same directory as you (workspace) - gmail is a single directory where users can’t see each other, so that may be the issue you’re running in to

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment