title: HTTP Rest API Pagination Power Automate Logic Apps
body: <p>I guess this question applies to both Power Automate and Logic Apps.  I'm querying an API that returns a number of pages.</p>
  <p>The JSON output looks like this:</p>
  <pre><code>{
    &quot;_results&quot;: [
  
      { ... },
      { ... },
      { ... },
      { ... }
  
    ],
  
    &quot;pageNumber&quot;: 1,
    &quot;totalPageCount&quot;: 5,
    &quot;pageSize&quot;: 100,
    &quot;pageCount&quot;: 100,
    &quot;totalCount&quot;: 445,
  
  }
  </code></pre>
  <p>I've omitted the results data to save space.</p>
  <p>In this example, the API result shows the data for Page 1 and we also see that there are 5 pages in total.</p>
  <p>I tried using the pagination setting in Logic Apps but I think that only applies to continuation tokens.</p>
  <p>I would like to know how we can loop through the pages based on the logic of pageNumber &lt;= totalPageCount ?</p>
  <p>Thanks</p>