<?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 Re: HOW-TO READ HEADER IN API REST RESPONSE in Integration, Extension &amp; APIs</title>
    <link>https://community.qlik.com/t5/Integration-Extension-APIs/HOW-TO-READ-HEADER-IN-API-REST-RESPONSE/m-p/2531974#M22547</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess you setup is simile to the one I use to do&lt;/P&gt;&lt;P&gt;I would to to the table set up in the connection and look at the structure.&lt;/P&gt;&lt;P&gt;Then&lt;/P&gt;&lt;P&gt;1. Set up your REST connection with pagination type set to Custom.&lt;/P&gt;&lt;P&gt;The try to play with offset and loops&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;SET vOffset = 0;&lt;BR /&gt;SET vPageSize = 100;&lt;/P&gt;&lt;P&gt;Data:&lt;BR /&gt;LOAD *&lt;BR /&gt;FROM [Your Connection]&lt;BR /&gt;WITH CONNECTION (&lt;BR /&gt;URL "&lt;A href="https://your.api.endpoint?offset=$(vOffset)&amp;amp;limit=$(vPageSize" target="_blank"&gt;https://your.api.endpoint?offset=$(vOffset)&amp;amp;limit=$(vPageSize&lt;/A&gt;)"&lt;BR /&gt;);&lt;/P&gt;&lt;P&gt;LET vRowCount = NoOfRows('Data');&lt;/P&gt;&lt;P&gt;IF $(vRowCount) = 0 THEN&lt;BR /&gt;EXIT Do&lt;BR /&gt;ENDIF&lt;/P&gt;&lt;P&gt;Concatenate(MainTable)&lt;BR /&gt;LOAD * RESIDENT Data;&lt;/P&gt;&lt;P&gt;DROP TABLE Data;&lt;/P&gt;&lt;P&gt;LET vOffset = $(vOffset) + $(vPageSize);&lt;/P&gt;&lt;P&gt;Loop&lt;/P&gt;</description>
    <pubDate>Sat, 27 Sep 2025 11:11:37 GMT</pubDate>
    <dc:creator>robert_mika</dc:creator>
    <dc:date>2025-09-27T11:11:37Z</dc:date>
    <item>
      <title>HOW-TO READ HEADER IN API REST RESPONSE</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/HOW-TO-READ-HEADER-IN-API-REST-RESPONSE/m-p/2531969#M22543</link>
      <description>&lt;P&gt;Hello, i'm using an REST API call in my script with a standard SQL SELECT statement, but my API using response HEADER with totalcount and offset to manage pagination.&lt;/P&gt;
&lt;P&gt;How can i read those response header from my script ?&lt;/P&gt;
&lt;P&gt;Thanks T.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Sep 2025 08:28:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/HOW-TO-READ-HEADER-IN-API-REST-RESPONSE/m-p/2531969#M22543</guid>
      <dc:creator>THIB49</dc:creator>
      <dc:date>2025-09-27T08:28:45Z</dc:date>
    </item>
    <item>
      <title>Re: HOW-TO READ HEADER IN API REST RESPONSE</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/HOW-TO-READ-HEADER-IN-API-REST-RESPONSE/m-p/2531974#M22547</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I guess you setup is simile to the one I use to do&lt;/P&gt;&lt;P&gt;I would to to the table set up in the connection and look at the structure.&lt;/P&gt;&lt;P&gt;Then&lt;/P&gt;&lt;P&gt;1. Set up your REST connection with pagination type set to Custom.&lt;/P&gt;&lt;P&gt;The try to play with offset and loops&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;SET vOffset = 0;&lt;BR /&gt;SET vPageSize = 100;&lt;/P&gt;&lt;P&gt;Data:&lt;BR /&gt;LOAD *&lt;BR /&gt;FROM [Your Connection]&lt;BR /&gt;WITH CONNECTION (&lt;BR /&gt;URL "&lt;A href="https://your.api.endpoint?offset=$(vOffset)&amp;amp;limit=$(vPageSize" target="_blank"&gt;https://your.api.endpoint?offset=$(vOffset)&amp;amp;limit=$(vPageSize&lt;/A&gt;)"&lt;BR /&gt;);&lt;/P&gt;&lt;P&gt;LET vRowCount = NoOfRows('Data');&lt;/P&gt;&lt;P&gt;IF $(vRowCount) = 0 THEN&lt;BR /&gt;EXIT Do&lt;BR /&gt;ENDIF&lt;/P&gt;&lt;P&gt;Concatenate(MainTable)&lt;BR /&gt;LOAD * RESIDENT Data;&lt;/P&gt;&lt;P&gt;DROP TABLE Data;&lt;/P&gt;&lt;P&gt;LET vOffset = $(vOffset) + $(vPageSize);&lt;/P&gt;&lt;P&gt;Loop&lt;/P&gt;</description>
      <pubDate>Sat, 27 Sep 2025 11:11:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/HOW-TO-READ-HEADER-IN-API-REST-RESPONSE/m-p/2531974#M22547</guid>
      <dc:creator>robert_mika</dc:creator>
      <dc:date>2025-09-27T11:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: HOW-TO READ HEADER IN API REST RESPONSE</title>
      <link>https://community.qlik.com/t5/Integration-Extension-APIs/HOW-TO-READ-HEADER-IN-API-REST-RESPONSE/m-p/2531978#M22548</link>
      <description>&lt;P&gt;Thank for your answer, i had test this way but my api always return rows&amp;nbsp; by cycling over the data. So i can't use NoOfRows to determinate the end, I've to read an header in response call 'x-pagination-size' who content the total count of rows in data.&lt;/P&gt;
&lt;P&gt;Do you have an idea to read response header ?&lt;/P&gt;
&lt;P&gt;T.&lt;/P&gt;</description>
      <pubDate>Sat, 27 Sep 2025 17:53:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Integration-Extension-APIs/HOW-TO-READ-HEADER-IN-API-REST-RESPONSE/m-p/2531978#M22548</guid>
      <dc:creator>THIB49</dc:creator>
      <dc:date>2025-09-27T17:53:37Z</dc:date>
    </item>
  </channel>
</rss>

