r/googlecloud • u/Longjumping-Cold1389 • 3d ago
Google sheets API Key
I really just want an api key to pull info from one of my google sheets. But as i look into this there is this whole rabbit hole of AM admin, and changing the organizations default permissions, and i saw vague mentions of weekly charges. So let me ask this, is there an easier way to get an api key for google sheets, and if not how high is the risk of charges if i set up an organization and do all the steps to get the key though google cloud.
2
Upvotes
1
u/martin_omander Googler 3d ago
The Google Sheets API is free.
Does your code run in Google Cloud, for example on Cloud Run? Then it automatically has a service account and you don't need to download any key.
3
u/Advanced-Ad4869 3d ago
All you need to do is create a Google cloud project, enable the sheets API on that project then create a service account in that project and add the service account's email address to whatever sheets you want.