I'm trying to access the google sheets api with python within corporate network, that uses firewall. Then, I need to discover all the url/domains google sheets api requests to send IT team unlock the access for theses url's.
I am using the pygsheets library for connect with google api.
In order for users on your network to access Google Drive and Google Docs editors, your firewall rules should connect to the following hosts and ports. Otherwise, users may be blocked or denied access from these services.
For the following hosts, [N] means any single decimal digit and * means any string not containing a period.
Oauth server
API stuff
Other
Ripped from Google Drive firewall and proxy settings
Some of theses are for google drive the web application and others are for google drive api, sheets api and the oauth servers. I could probably wittle it down a little but wasnt sure if you wanted that. It may be best that they just open most of them and go from there.