List pages api only fetching 100 pages

I am trying to fetch all the pages of CODA to google sheet using google app script but only 100 pages are fetched from third party software like or using google app script. The code is below:

function fetchPageList() {
 var spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
  var sheet = spreadsheet.getSheetByName('Main');

  var DocID = sheet.getRange('B2').getValue();
 var APIToken = sheet.getRange('C2').getValue();
var pages = CodaAPI.listPages(DocID).items;

  var rows = [],
  for (i = 0; i < pages.length; i++) {
    data = pages[i];
    rows.push([, data.type,,data.parent?'',data.browserLink]); //your JSON entities here
  row =5;
  col= 2;
  sheet.getRange( row, col, rows.length, 5).setValues(rows);


This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.