r/googlecloud • u/Longjumping-Cold1389 • 7d 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/Advanced-Ad4869 7d ago
You use the identity of the account with the Google SDK of the language you are using. The easiest way is to generate a service account key json that you download. But this is VERY important, that key is a bearer token with no restrictions so you need to safe guard it. You can't share it or commit it to git or like use it client side in a website cuz someone will steal it. You should really read the Google cloud documentation on service accounts before proceeding.