Skip to content

Instantly share code, notes, and snippets.

@msafi
Last active June 3, 2025 14:17
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)

@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

@AgustinBl
Copy link

AgustinBl commented Jun 3, 2025

Log in to your Google account if not already
Go to https://myaccount.google.com/data-and-privacy
Locate the button Maps Timeline in the History settings, right-click on it and copy its URL
That URL contains 'gid' parameter which is your Google ID.
Hope this helps the folks looking for their google user id in 2025.

https://stackoverflow.com/a/79368839/15016449

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