<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Passing a parameter to an API for retrieving paginated data in Developer</title>
    <link>https://community.fabric.microsoft.com/t5/Developer/Passing-a-parameter-to-an-API-for-retrieving-paginated-data/m-p/1693160#M28119</link>
    <description>&lt;P&gt;I am working with our marketing tools API so I can pull marketing data into a Power BI report. The API data is paginated and limited at 20 by default. I want to pass a parameter (limit = 100) but I've not had much luck finding information on how to do this. I have tried to pass it using the advanced settings for getting web data (this is the same place where I have successfully passed the API Token. When I add the limit as a header parameter, nothing happens (the response is still 20 lines of data, per the default). Ideally, I could set this up to do an offset (another parameter the tool uses to grab the next set of records) and to grab all of the data that is available.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 26 Feb 2021 23:01:13 GMT</pubDate>
    <dc:creator>wcameron14</dc:creator>
    <dc:date>2021-02-26T23:01:13Z</dc:date>
    <item>
      <title>Passing a parameter to an API for retrieving paginated data</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Passing-a-parameter-to-an-API-for-retrieving-paginated-data/m-p/1693160#M28119</link>
      <description>&lt;P&gt;I am working with our marketing tools API so I can pull marketing data into a Power BI report. The API data is paginated and limited at 20 by default. I want to pass a parameter (limit = 100) but I've not had much luck finding information on how to do this. I have tried to pass it using the advanced settings for getting web data (this is the same place where I have successfully passed the API Token. When I add the limit as a header parameter, nothing happens (the response is still 20 lines of data, per the default). Ideally, I could set this up to do an offset (another parameter the tool uses to grab the next set of records) and to grab all of the data that is available.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 26 Feb 2021 23:01:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Passing-a-parameter-to-an-API-for-retrieving-paginated-data/m-p/1693160#M28119</guid>
      <dc:creator>wcameron14</dc:creator>
      <dc:date>2021-02-26T23:01:13Z</dc:date>
    </item>
    <item>
      <title>Re: Passing a parameter to an API for retrieving paginated data</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Passing-a-parameter-to-an-API-for-retrieving-paginated-data/m-p/1693978#M28124</link>
      <description>&lt;P&gt;Needs more details. Do you have access to that API's documentation?&amp;nbsp; Does it describe how to do pagination with offsets and limits?&lt;/P&gt;</description>
      <pubDate>Sun, 28 Feb 2021 00:01:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Passing-a-parameter-to-an-API-for-retrieving-paginated-data/m-p/1693978#M28124</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2021-02-28T00:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: Passing a parameter to an API for retrieving paginated data</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Passing-a-parameter-to-an-API-for-retrieving-paginated-data/m-p/1694027#M28125</link>
      <description>&lt;P&gt;Yes. This is directly from the API documentation:&amp;nbsp;&lt;A href="https://developers.activecampaign.com/reference#pagination" target="_blank"&gt;https://developers.activecampaign.com/reference#pagination&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Endpoints that return collections of resources must limit the number of records returned in a given response. The query parameter &lt;STRONG&gt;limit&lt;/STRONG&gt; can be used to alter the number of records returned. A typical endpoint will return 20 records by default and will allow a maximum of 100 records to be returned. The query parameter &lt;STRONG&gt;offset&lt;/STRONG&gt; can be used to offset the result set. These query parameters can be combined to recover all records in a collection through a series of requests by incrementing the &lt;STRONG&gt;offset&lt;/STRONG&gt; by the value of &lt;STRONG&gt;limit&lt;/STRONG&gt; with each request.&lt;/P&gt;&lt;P&gt;The total number of results in a collection can be found in the&amp;nbsp;meta.total&amp;nbsp;property of the response.&lt;/P&gt;</description>
      <pubDate>Sun, 28 Feb 2021 02:08:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Passing-a-parameter-to-an-API-for-retrieving-paginated-data/m-p/1694027#M28125</guid>
      <dc:creator>wcameron14</dc:creator>
      <dc:date>2021-02-28T02:08:26Z</dc:date>
    </item>
    <item>
      <title>Re: Passing a parameter to an API for retrieving paginated data</title>
      <link>https://community.fabric.microsoft.com/t5/Developer/Passing-a-parameter-to-an-API-for-retrieving-paginated-data/m-p/1694031#M28126</link>
      <description>&lt;P&gt;Do the first call with ?limit=100 , then query the Meta/Total value and calculate how many more calls you need to make to hit the total. Power Query allows you to create lists, and to add columns to these. with the contents of the API call returns.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- make first call with ?limit=100&lt;/P&gt;
&lt;P&gt;- let's say the call returned with Meta/Total=760&lt;/P&gt;
&lt;P&gt;- create a list with a value from 100 to 700 in steps of 100&lt;/P&gt;
&lt;P&gt;- make subsequent calls with ?limit=100&amp;amp;offset=[list value]&lt;/P&gt;
&lt;P&gt;- combine all results as needed.&lt;/P&gt;</description>
      <pubDate>Sun, 28 Feb 2021 02:28:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Developer/Passing-a-parameter-to-an-API-for-retrieving-paginated-data/m-p/1694031#M28126</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2021-02-28T02:28:44Z</dc:date>
    </item>
  </channel>
</rss>

