<?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: XSIAM API pagination in Cortex XSIAM Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xsiam-discussions/xsiam-api-pagination/m-p/1248884#M361</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/1419680765"&gt;@jon_thurston&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Greetings for the day.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-end="262" data-start="0"&gt;Based on the internal information and technical support cases, the specific API endpoint you are using for lookup datasets does have a hard-coded limitation, and standard pagination (like offset/limit) is not natively supported for that specific call.&lt;/P&gt;
&lt;H4 data-end="301" data-start="269"&gt;1. Hard-Coded Retrieval Limit:&lt;/H4&gt;
&lt;P data-end="642" data-start="303"&gt;The endpoint &lt;CODE data-end="354" data-start="316"&gt;/public_api/v1/xql/lookups/get_data/&lt;/CODE&gt; (often used via the command &lt;CODE data-end="409" data-start="383"&gt;!xdr-xql-lookup-get-data&lt;/CODE&gt;) has a built-in restriction that limits data retrieval to a maximum of &lt;STRONG data-end="496" data-start="481"&gt;10,000 rows&lt;/STRONG&gt;. This is a design constraint, and attempting to pull more data through this specific method will typically result in truncated results or errors.&lt;/P&gt;
&lt;P data-end="642" data-start="303"&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4 data-end="697" data-start="649"&gt;2. Alternative: Use XQL Query and Stream APIs:&lt;/H4&gt;
&lt;P data-end="929" data-start="699"&gt;To retrieve more than 10,000 rows or to implement pagination, you should use the standard XQL Query API instead of the specialized lookup retrieval endpoint. Lookup tables can be queried directly using Cortex Query Language (XQL).&lt;/P&gt;
&lt;P data-end="929" data-start="699"&gt;&amp;nbsp;&lt;/P&gt;
&lt;H5 data-end="963" data-start="931"&gt;Steps to Pull Large Datasets:&lt;/H5&gt;
&lt;H5 data-end="990" data-start="965"&gt;1. Start an XQL Query:&lt;/H5&gt;
&lt;P data-end="1106" data-start="992"&gt;Use the &lt;CODE data-end="1037" data-start="1000"&gt;/public_api/v1/xql/start_xql_query/&lt;/CODE&gt; endpoint. In your query string, target your lookup dataset directly:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="w-full my-4"&gt;
&lt;DIV class=""&gt;
&lt;DIV class="relative"&gt;
&lt;DIV class="h-full min-h-0 min-w-0"&gt;
&lt;DIV class="h-full min-h-0 min-w-0"&gt;
&lt;DIV class="border corner-superellipse/1.1 border-token-border-light bg-token-bg-elevated-secondary rounded-3xl"&gt;
&lt;DIV class="pointer-events-none absolute inset-x-4 top-12 bottom-4"&gt;
&lt;DIV class="pointer-events-none sticky z-40 shrink-0 z-1!"&gt;
&lt;DIV class="sticky bg-token-border-light"&gt;&lt;SPAN&gt;dataset &lt;/SPAN&gt;&lt;SPAN class="ͼ8"&gt;=&lt;/SPAN&gt; &lt;SPAN class="ͼ8"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;yourlookupdataset_name&lt;/SPAN&gt;&lt;SPAN class="ͼ8"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;&lt;STRONG style="font-family: inherit;" data-end="1164" data-start="1155"&gt;Note:&lt;/STRONG&gt;&lt;SPAN&gt; Ensure the dataset name is in lowercase, as the API can be case-sensitive for table names.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;H5 data-end="1300" data-start="1262"&gt;2. Retrieve Results with Stream ID:&lt;/H5&gt;
&lt;P data-end="1481" data-start="1302"&gt;The initial response from the XQL API is limited to &lt;STRONG data-end="1371" data-start="1354"&gt;1,000 results&lt;/STRONG&gt;. However, if the query generates more than 1,000 results, the API response will include a unique &lt;CODE data-end="1480" data-start="1469"&gt;stream_id&lt;/CODE&gt;.&lt;/P&gt;
&lt;P data-end="1481" data-start="1302"&gt;&amp;nbsp;&lt;/P&gt;
&lt;H5 data-end="1518" data-start="1488"&gt;3. Paginate via Stream API&lt;/H5&gt;
&lt;P data-end="1712" data-start="1520"&gt;Use the &lt;CODE data-end="1574" data-start="1528"&gt;/public_api/v1/xql/get_query_results_stream/&lt;/CODE&gt; endpoint with the provided &lt;CODE data-end="1613" data-start="1602"&gt;stream_id&lt;/CODE&gt; to fetch the remaining data in chunks. This method supports up to &lt;STRONG data-end="1711" data-start="1680"&gt;1,000,000 results per query&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P data-end="1712" data-start="1520"&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4 data-end="1747" data-start="1719"&gt;3. Summary of Limitations:&lt;/H4&gt;
&lt;UL data-end="1986" data-start="1749"&gt;
&lt;LI data-end="1814" data-start="1749"&gt;
&lt;P data-end="1814" data-start="1751"&gt;&lt;STRONG data-end="1774" data-start="1751"&gt;Lookup-specific API&lt;/STRONG&gt;: Limited to 10,000 rows; no pagination.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI data-end="1932" data-start="1815"&gt;
&lt;P data-end="1932" data-start="1817"&gt;&lt;STRONG data-end="1834" data-start="1817"&gt;XQL Query API&lt;/STRONG&gt;: Limited to 1,000 rows per call but supports pagination via &lt;CODE data-end="1906" data-start="1895"&gt;stream_id&lt;/CODE&gt; for up to 1,000,000 rows.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI data-end="1986" data-start="1933"&gt;
&lt;P data-end="1986" data-start="1935"&gt;&lt;STRONG data-end="1950" data-start="1935"&gt;Rate Limits&lt;/STRONG&gt;: 10 requests per second per tenant.&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P data-is-only-node="" data-is-last-node="" data-end="2266" data-start="1988"&gt;If your workflow requires increasing the hard-coded 10,000-row limit for the &lt;CODE data-end="2085" data-start="2065"&gt;/lookups/get_data/&lt;/CODE&gt; endpoint itself, you must contact your account team or open a support case to request an engineering override for your tenant, as this cannot be changed via standard configuration.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you feel this has answered your query, please let us know by clicking like and on&amp;nbsp;&lt;STRONG&gt;"mark this as a Solution".&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;S. Subashkar Sekar&lt;/P&gt;</description>
    <pubDate>Tue, 24 Feb 2026 13:21:39 GMT</pubDate>
    <dc:creator>susekar</dc:creator>
    <dc:date>2026-02-24T13:21:39Z</dc:date>
    <item>
      <title>XSIAM API pagination</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsiam-discussions/xsiam-api-pagination/m-p/1248790#M353</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm trying to use the API to pull a lookup dataset that is larger than 10,000 rows. I don't see any options for pagination and the filters listed in the documentation seem too rigid to easily pull the data.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs-cortex.paloaltonetworks.com/r/Cortex-XSIAM-REST-API/Get-data-from-a-lookup-dataset" target="_blank"&gt;https://docs-cortex.paloaltonetworks.com/r/Cortex-XSIAM-REST-API/Get-data-from-a-lookup-dataset&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Is there any way to paginate the data? Other REST APIs do this without a problem. Is there another way to pull the information other than that API endpoint?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Feb 2026 15:26:48 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsiam-discussions/xsiam-api-pagination/m-p/1248790#M353</guid>
      <dc:creator>jon_thurston</dc:creator>
      <dc:date>2026-02-23T15:26:48Z</dc:date>
    </item>
    <item>
      <title>Re: XSIAM API pagination</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xsiam-discussions/xsiam-api-pagination/m-p/1248884#M361</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/1419680765"&gt;@jon_thurston&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Greetings for the day.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P data-end="262" data-start="0"&gt;Based on the internal information and technical support cases, the specific API endpoint you are using for lookup datasets does have a hard-coded limitation, and standard pagination (like offset/limit) is not natively supported for that specific call.&lt;/P&gt;
&lt;H4 data-end="301" data-start="269"&gt;1. Hard-Coded Retrieval Limit:&lt;/H4&gt;
&lt;P data-end="642" data-start="303"&gt;The endpoint &lt;CODE data-end="354" data-start="316"&gt;/public_api/v1/xql/lookups/get_data/&lt;/CODE&gt; (often used via the command &lt;CODE data-end="409" data-start="383"&gt;!xdr-xql-lookup-get-data&lt;/CODE&gt;) has a built-in restriction that limits data retrieval to a maximum of &lt;STRONG data-end="496" data-start="481"&gt;10,000 rows&lt;/STRONG&gt;. This is a design constraint, and attempting to pull more data through this specific method will typically result in truncated results or errors.&lt;/P&gt;
&lt;P data-end="642" data-start="303"&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4 data-end="697" data-start="649"&gt;2. Alternative: Use XQL Query and Stream APIs:&lt;/H4&gt;
&lt;P data-end="929" data-start="699"&gt;To retrieve more than 10,000 rows or to implement pagination, you should use the standard XQL Query API instead of the specialized lookup retrieval endpoint. Lookup tables can be queried directly using Cortex Query Language (XQL).&lt;/P&gt;
&lt;P data-end="929" data-start="699"&gt;&amp;nbsp;&lt;/P&gt;
&lt;H5 data-end="963" data-start="931"&gt;Steps to Pull Large Datasets:&lt;/H5&gt;
&lt;H5 data-end="990" data-start="965"&gt;1. Start an XQL Query:&lt;/H5&gt;
&lt;P data-end="1106" data-start="992"&gt;Use the &lt;CODE data-end="1037" data-start="1000"&gt;/public_api/v1/xql/start_xql_query/&lt;/CODE&gt; endpoint. In your query string, target your lookup dataset directly:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="w-full my-4"&gt;
&lt;DIV class=""&gt;
&lt;DIV class="relative"&gt;
&lt;DIV class="h-full min-h-0 min-w-0"&gt;
&lt;DIV class="h-full min-h-0 min-w-0"&gt;
&lt;DIV class="border corner-superellipse/1.1 border-token-border-light bg-token-bg-elevated-secondary rounded-3xl"&gt;
&lt;DIV class="pointer-events-none absolute inset-x-4 top-12 bottom-4"&gt;
&lt;DIV class="pointer-events-none sticky z-40 shrink-0 z-1!"&gt;
&lt;DIV class="sticky bg-token-border-light"&gt;&lt;SPAN&gt;dataset &lt;/SPAN&gt;&lt;SPAN class="ͼ8"&gt;=&lt;/SPAN&gt; &lt;SPAN class="ͼ8"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN&gt;yourlookupdataset_name&lt;/SPAN&gt;&lt;SPAN class="ͼ8"&gt;&amp;gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class=""&gt;
&lt;DIV class=""&gt;&lt;STRONG style="font-family: inherit;" data-end="1164" data-start="1155"&gt;Note:&lt;/STRONG&gt;&lt;SPAN&gt; Ensure the dataset name is in lowercase, as the API can be case-sensitive for table names.&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;H5 data-end="1300" data-start="1262"&gt;2. Retrieve Results with Stream ID:&lt;/H5&gt;
&lt;P data-end="1481" data-start="1302"&gt;The initial response from the XQL API is limited to &lt;STRONG data-end="1371" data-start="1354"&gt;1,000 results&lt;/STRONG&gt;. However, if the query generates more than 1,000 results, the API response will include a unique &lt;CODE data-end="1480" data-start="1469"&gt;stream_id&lt;/CODE&gt;.&lt;/P&gt;
&lt;P data-end="1481" data-start="1302"&gt;&amp;nbsp;&lt;/P&gt;
&lt;H5 data-end="1518" data-start="1488"&gt;3. Paginate via Stream API&lt;/H5&gt;
&lt;P data-end="1712" data-start="1520"&gt;Use the &lt;CODE data-end="1574" data-start="1528"&gt;/public_api/v1/xql/get_query_results_stream/&lt;/CODE&gt; endpoint with the provided &lt;CODE data-end="1613" data-start="1602"&gt;stream_id&lt;/CODE&gt; to fetch the remaining data in chunks. This method supports up to &lt;STRONG data-end="1711" data-start="1680"&gt;1,000,000 results per query&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P data-end="1712" data-start="1520"&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4 data-end="1747" data-start="1719"&gt;3. Summary of Limitations:&lt;/H4&gt;
&lt;UL data-end="1986" data-start="1749"&gt;
&lt;LI data-end="1814" data-start="1749"&gt;
&lt;P data-end="1814" data-start="1751"&gt;&lt;STRONG data-end="1774" data-start="1751"&gt;Lookup-specific API&lt;/STRONG&gt;: Limited to 10,000 rows; no pagination.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI data-end="1932" data-start="1815"&gt;
&lt;P data-end="1932" data-start="1817"&gt;&lt;STRONG data-end="1834" data-start="1817"&gt;XQL Query API&lt;/STRONG&gt;: Limited to 1,000 rows per call but supports pagination via &lt;CODE data-end="1906" data-start="1895"&gt;stream_id&lt;/CODE&gt; for up to 1,000,000 rows.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI data-end="1986" data-start="1933"&gt;
&lt;P data-end="1986" data-start="1935"&gt;&lt;STRONG data-end="1950" data-start="1935"&gt;Rate Limits&lt;/STRONG&gt;: 10 requests per second per tenant.&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P data-is-only-node="" data-is-last-node="" data-end="2266" data-start="1988"&gt;If your workflow requires increasing the hard-coded 10,000-row limit for the &lt;CODE data-end="2085" data-start="2065"&gt;/lookups/get_data/&lt;/CODE&gt; endpoint itself, you must contact your account team or open a support case to request an engineering override for your tenant, as this cannot be changed via standard configuration.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you feel this has answered your query, please let us know by clicking like and on&amp;nbsp;&lt;STRONG&gt;"mark this as a Solution".&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;S. Subashkar Sekar&lt;/P&gt;</description>
      <pubDate>Tue, 24 Feb 2026 13:21:39 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xsiam-discussions/xsiam-api-pagination/m-p/1248884#M361</guid>
      <dc:creator>susekar</dc:creator>
      <dc:date>2026-02-24T13:21:39Z</dc:date>
    </item>
  </channel>
</rss>

