title: Google Sheets API v4 receives HTTP 401 responses for public feeds
body: <p>I'm having no luck getting a response from v4 of the Google Sheets API when running against a public (i.e. "Published To The Web" AND shared with "Anyone On The Web") spreadsheet.</p>
  
  <p>The relevant documentation states:</p>
  
  <p>"If the request doesn't require authorization (<strong><em>such as a request for public data</em></strong>), then the application must provide either the API key or an OAuth 2.0 token, or both—whatever option is most convenient for you."</p>
  
  <p>And to provide the API key, the documentation states:</p>
  
  <p>"After you have an API key, your application can append the query parameter key=yourAPIKey to all request URLs."</p>
  
  <p>So, I <strong>should</strong> be able to get a response listing the sheets in a public spreadsheet at the following URL:</p>
  
  <p><a href="https://sheets.googleapis.com/v4/spreadsheets/">https://sheets.googleapis.com/v4/spreadsheets/</a>{spreadsheetId}?key={myAPIkey}</p>
  
  <p>(with, obviously, the id and key supplied in the path and query string respectively)</p>
  
  <p>However, when I do this, I get an HTTP 401 response:</p>
  
  <pre><code>{
    error: {
      code: 401,
      message: "The request does not have valid authentication credentials.",
      status: "UNAUTHENTICATED"
    }
  }
  </code></pre>
  
  <p>Can anyone else get this to work against a public workbook?  If not, can anyone monitoring this thread from the Google side either comment or provide a working sample?</p>