title: How to specify the gid (tabs) in Google Spreadsheet API v4?
body: <p>I am trying to use RESTful API to gather the data from a Google spreadsheet spreadsheet.</p>
  <p>I read the document at <a href="https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.values/get" rel="nofollow noreferrer">https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.values/get</a> but I cannot a way that allows me to specify a specific GID (tabs) of the spreadsheet.</p>
  <p>After call the API, I was able to get a value from the first tab of the spreadsheet, but I want to change it to the second page (another GID)</p>
  <p>Any help would be appreciated. Thanks.</p>
  <p>Edit: Added example:</p>
  <p>I have a sample spreadsheet here: <a href="https://docs.google.com/spreadsheets/d/1da3e6R08S8OoibbOgshyAQy7m9VRGPOrSGzVIvMSXf4/edit#gid=0" rel="nofollow noreferrer">https://docs.google.com/spreadsheets/d/1da3e6R08S8OoibbOgshyAQy7m9VRGPOrSGzVIvMSXf4/edit#gid=0</a></p>
  <p>When I want to get the value on A1, I can call the RESTful API:</p>
  <p><a href="https://content-sheets.googleapis.com/v4/spreadsheets/1da3e6R08S8OoibbOgshyAQy7m9VRGPOrSGzVIvMSXf4/values/A1?key=API_KEY" rel="nofollow noreferrer">https://content-sheets.googleapis.com/v4/spreadsheets/1da3e6R08S8OoibbOgshyAQy7m9VRGPOrSGzVIvMSXf4/values/A1?key=API_KEY</a></p>
  <p>And I will get:</p>
  <pre><code>{
    &quot;range&quot;: &quot;Sheet1!A1&quot;,
    &quot;majorDimension&quot;: &quot;ROWS&quot;,
    &quot;values&quot;: [
      [
        &quot;This is on the first tab!&quot;
      ]
    ]
  }
  </code></pre>
  <p>But as you see in my spreadsheet, I have to tabs (sheet2), how can I get that value of &quot;<code>This is on the second tab!</code>&quot;?</p>