title: API endpoint for google sheets
body: <p>I am trying to create an API endpoint to access a google spreadsheet I made in google sheets for a web application. I have enabled google sheets API in the API console and created OAuth 2.0 Client IDs credentials for it.</p>
  
  <p>The google <a href="https://developers.google.com/sheets/api/reference/rest?apix=true" rel="nofollow noreferrer">documentation</a> says that the endpoint, for a get request (which is all need), is  </p>
  
  <p><a href="https://sheets.googleapis.com/v4/spreadsheets/" rel="nofollow noreferrer">https://sheets.googleapis.com/v4/spreadsheets/</a>{spreadsheetId}</p>
  
  <p>But when I try to access it I get a 403 error:</p>
  
  <pre><code>{
    "error": {
      "code": 403,
      "message": "The request is missing a valid API key.",
      "status": "PERMISSION_DENIED"
    }
  }
  </code></pre>
  
  <p>I can't find the API endpoint structure anywhere in the documentation. I don't know what credentials go where. And in the google API console it only gives me the option to create OAuth 2.0 Client IDs or Service Account.</p>
  
  <p>Really not sure how to make a simple GET request to a public spreadsheet. Any help appreciated.</p>