Getting all organizations with v1/organizations endpoint

Hey, i’m trying to get all of the existing organizations, this is the code i’m using to process this

var sheet_orga = ss.getSheetByName('Orga/ID');
var token ='XXXXX'; 

var url_orga = ""+token;
var response_orga = UrlFetchApp.fetch(url_orga); 
var dataSet_orga = JSON.parse(response_orga.getContentText()); 

function GetOrga(){

  for (var i = 0; i <; i++) {
    data_orga =[i];
    sheet_orga.appendRow([,, data_orga.owner_id]);

the problem is that it only retuns me the first 100 organizations and we have like 5000. Any idea of how i can get all of them ?

Hey @JuloSancho
This wiki might be helpful. By default all API responses are paginated. You need to provide the page number in the subsequent requests to get all data