2025 sparked some incredible conversations across our community 👩💻. Discover the highlights and see what’s ahead in 2026.
Forum Discussion
Kuki
6 years agoExplorer | Level 4
Unable to fecth files and folders from Team folders
I am using the Dropbox Business API and trying to fetch Folders and Files present into my team folder (If you will see I have created a "General Information" folder) (The folder which is out side of ...
- 6 years ago
The exact number of entries you get back per /2/files/list_folder[/continue] page is not guaranteed. Sometimes the API may return more entries per page, and sometimes it may return fewer.
Regardless of how many entries were returned, your app needs to always check the 'has_more' value and call back for more entries if it's 'true'.
Kuki
6 years agoExplorer | Level 4
Hello Again,
I tried the solution you suggested , but it is not working fully.
[3] => Array
(
[.tag] => folder
[name] => General Information
[path_lower] => /general information
[path_display] => /General Information
[parent_shared_folder_id] => 6131728736
[id] => id:z3mu7FjeX1AAAAAAAAAAAQ
[shared_folder_id] => 6498180480
[sharing_info] => Array
(
[read_only] =>
[parent_shared_folder_id] => 6131728736
[shared_folder_id] => 6498180480
[traverse_only] =>
[no_access] =>
)
)
There is some issue,
I have created a "General Information" (6498180480 ) folder at team space,
Then I created a Folder "New_folder_123" inside it, and I shared this folder to one of my member.
I uploaded some file inside this folder, But when I am trying to retrive the files i uploaded into shared folder, showing nothing, While the files which is inside of ("Romi") folder parallel to the shared folder is coming into the list
Could you suggest me the reason
<?php
$data = array("path"=>"", "recursive"=> true);
$payload = json_encode($data);
$ch = curl_init('https://api.dropboxapi.com/2/files/list_folder');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLINFO_HEADER_OUT, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS,$payload);
$headers = array(
'Dropbox-API-Select-User:<MEMBER_ID>',
'Content-type: application/json',
'Dropbox-API-Path-Root: {".tag": "namespace_id", "namespace_id": "6498180480"}',
'Authorization: Bearer <REDACTED>',
);
curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
if(curl_exec($ch) === false)
{
echo 'Curl error: ' . curl_error($ch);
}
else
{
$result_file_names = curl_exec($ch);
echo 'Operation completed without any errors';
}
$array_result_file_names= json_decode($result_file_names,true);
print_r($array_result_file_names);
curl_close($ch);
exit;
?>
Greg-DB
Dropbox Community Moderator
6 years agoIn the /2/files/list_folder response, what is the value of 'has_more'? If it's 'true', you need to call back to /2/files/list_folder/continue to retrieve more entries.
A single call to /2/files/list_folder isn't guaranteed to return all of the results. You should always have your app check this value and call back as necessary. You can find more information in the documentation.
- Kuki6 years agoExplorer | Level 4
Hello Again,
A bit More:
Everything is working fine now, I am able to acess everything now,
The problem is : Records (Number of Folders and Files vary when I call the API).
When I call the API ( /2/files/list_folder and /2/files/list_folder/continue ) first time it shows exact no of files , but when I call it again it chages the no of files and folders, but when again I call the same, it shows exact no of records.
Means, to get exact no of Files , I will have to call then API around 3 to 4 times.
Actually , I called the API's at page load, when first time page loads it shows the records properly, when I again refresh/load the page records count not comes properm , when I load/refresh the page again, not comes the recods properly.
Somtime to get the exact no of records , I have to refesh tha page 4 to 5 times
Could you please tell me the reason behind it.
- Greg-DB6 years ago
Dropbox Community Moderator
The exact number of entries you get back per /2/files/list_folder[/continue] page is not guaranteed. Sometimes the API may return more entries per page, and sometimes it may return fewer.
Regardless of how many entries were returned, your app needs to always check the 'has_more' value and call back for more entries if it's 'true'.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!