<?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: ListFolder limit? in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/ListFolder-limit/m-p/213846#M10892</link>
    <description>Thanks jwpegram! That's correct, the listFolderContinue response will be structured similarly to listFolder, and will only contain further/new entries, not the same entries already returned by listFolder.&lt;BR /&gt;&lt;BR /&gt;Also, each listFolder/Continue response generally won't be more than around 2,000 items, but that can vary, so don't rely on that number.</description>
    <pubDate>Wed, 29 Mar 2017 17:54:46 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2017-03-29T17:54:46Z</dc:date>
    <item>
      <title>ListFolder limit?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/ListFolder-limit/m-p/213809#M10886</link>
      <description>&lt;P&gt;What is the limit of retrieved items using listFolder?&lt;BR /&gt;&lt;BR /&gt;When using listFolderContinue, what will be response? All data, including files/folders from previous call to listfolder) or just additional missing files/folders?&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:24:18 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/ListFolder-limit/m-p/213809#M10886</guid>
      <dc:creator>AlexBrajkovic</dc:creator>
      <dc:date>2019-05-29T09:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: ListFolder limit?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/ListFolder-limit/m-p/213812#M10887</link>
      <description>&lt;P&gt;I don't see where there is an actual limit that you can set, it seems to be arbitrary. That said, basically when you make the initial post to list_folder that will return some number of entities along with a cursor value and a has_more value. Think of the cursor as a page value that already knows the user being queried and other information so all you have to post to list_folder/continue all you have to send it is the cursor value. That will return the next page of entities along with another cursor for the page after that, and so on until cursor is returned empty.&amp;nbsp; Not sure what language you are using but I'm doing it like this in PHP.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;$first_page = true;&lt;/P&gt;
&lt;P&gt;$api = $first_page ? '&lt;A href="https://api.dropboxapi.com/2/files/list_folder" target="_blank"&gt;https://api.dropboxapi.com/2/files/list_folder&lt;/A&gt;' : '&lt;A href="https://api.dropboxapi.com/2/files/list_folder/continue" target="_blank"&gt;https://api.dropboxapi.com/2/files/list_folder/continue&lt;/A&gt;';&lt;/P&gt;
&lt;P&gt;do {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if ($first_page) {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $data = json_encode(array(&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;"path" =&amp;gt; "",&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;"recursive" =&amp;gt; true,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;"include_media_info" =&amp;gt; false,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;"include_deleted" =&amp;gt; true,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;"include_has_explicit_shared_members" =&amp;gt; false,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;));&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; $first_page = false;&lt;/P&gt;
&lt;P&gt;} else {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $data = json_encode(array(&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;'cursor' =&amp;gt; $cursor&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;));&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;... Make the call out to the endpoint and get the response ($response);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;} while {$response-&amp;gt;has_more);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After the first call out $first_page is set to false so if $response-&amp;gt;has_more returns 1 the cursor is sent page requesting the next page.&amp;nbsp; Once you hit the end $response-&amp;gt;has_more will be empty.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2017 14:15:08 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/ListFolder-limit/m-p/213812#M10887</guid>
      <dc:creator>jwpegram</dc:creator>
      <dc:date>2017-03-29T14:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: ListFolder limit?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/ListFolder-limit/m-p/213846#M10892</link>
      <description>Thanks jwpegram! That's correct, the listFolderContinue response will be structured similarly to listFolder, and will only contain further/new entries, not the same entries already returned by listFolder.&lt;BR /&gt;&lt;BR /&gt;Also, each listFolder/Continue response generally won't be more than around 2,000 items, but that can vary, so don't rely on that number.</description>
      <pubDate>Wed, 29 Mar 2017 17:54:46 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/ListFolder-limit/m-p/213846#M10892</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2017-03-29T17:54:46Z</dc:date>
    </item>
  </channel>
</rss>

