title: Get data range in Google spreadsheet
body: <p>I'm able to get the data range of a sheet using the following function in <a href="https://developers.google.com/apps-script/reference/spreadsheet/sheet#getDataRange()" rel="nofollow noreferrer">app script</a>:</p>
  
  <pre><code>function myFunction() {
    var newSheet = 
    SpreadsheetApp.openById('spreadsheetId');
    var sheet = newSheet.getSheetByName('Sheet1');
    Logger.log(sheet.getDataRange().getA1Notation());
  }
  </code></pre>
  
  <p>This returns the range: A1:B3</p>
  
  <p>Is there any way to get the same thing using Google spreadsheet REST API?</p>