Google

Get UserIDs

Google Drive Documents
# Get user ID from Google Drive document

# Logged
# Open the source code and search for: "\x2210" and "\x2211"
# Paste it in the Google Photos or Maps URL and find out more about your target.

# Not logged in
# Developer tools > Network > Filter "Permissions"
# Load the document and get informations for owner & co
Google Contacts
# Google Contacts can help getting IDs from e-mails
# But it may not work ! 

# CSV file with name and e-mails
# Import it, then several methods
# Method 1
# - Developer tools and reload the page
# - Look for 4th raw requests to "contacts.google.com" with "batchexecute" endpoint
# - Copy request content to a file
$ cat file | grep -oP "10+\d{19}|11+\d{19}" | sort -u

# Method 2
# You can also find them in the page source code
# Go for the contact and open source code
# Search for "data-sourceid"

# Method 3
# If you have target YouTube channel page
# Look in the source code for the link to plus.google.com/<id>
Google API
# The only trustworthly way is to use the Google API

# First get contact information like above
# In the raw request, look for a contactID in the Form data
# String is beginning by "c" an +- 19 chars long.

# Then look on the API
https://developers.google.com/people/api/rest/v1/people/get

# resourceName
people/c0123456789...

# personFields
metada


Using UserIDs

# 3 ways
# - Find photos albums
# - Look for geolocation
# - Find YouTube account connected to this
Photos albums
# Photos albums of a given user
https://get.google.com/albumarchive/{userID}

# Sometimes photos are tied to exact locations on Google Maps
Geolocation
# Google Maps and Google Reviews can both be accessed via GMaps
https://www.google.com/maps/contrib/{userID}

# By default is shows the photos that are uploaded with location information
# But the users reviews can be accessed via the option on the left.
# You are still able to find out someones real name.
Youtube
# YouTube channel
# Does not work with userID but accountName
# Possible to have several channels/profiles, but only one account
https://www.youtube.com/feeds/videos.xml?user={accountName}

# In most cases, it is the part before "@gmail.com"

# You can link different channels to the same user
https://www.youtube.com/channel/UCAiaFvFFZOwlU8Sw8S0dunQ

# Getting accountName
# In the source code : "ownerProfileUrl" or "vanityChannelUrl"

# Getting UserID
# In the source code : "plus.google.com"