You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
NS_takahiro
3 years agoNew member | Level 2
I want to get shared_folder_id.
Hi, developpers! I have some shared-folders which is created by GUI. I want to manipulate these folders via API. How do I get these folder’s shared_folder_id of these folders. If I can get those, I ...
Greg-DB
3 years agoDropbox Staff
You can get the shared folder IDs for shared folders using a number of different pieces of the Dropbox API. For instance, via the Dropbox Python SDK:
- files_get_metadata
- files_list_folder/files_list_folder_continue
- sharing_list_folders/sharing_list_folders_continue
The following guides may be helpful:
- eperic3 years agoNew member | Level 2
Is there an easy way to find a shared_folder_id? Maybe the solution could be posted right here where people searching can easily find it.
Eric
- Greg-DB3 years agoDropbox Staff
eperic The links in the first list in my previous message refer to different methods that can be used to retrieve shared folder IDs for shared folders. Exactly what approach one would take would depend on what the scenario is. For example, to get the shared folder ID of a shared folder at a given path, one would use files_get_metadata. Or to list all files/folders under a particular path, including shared folder IDs for shared folders, one would use files_list_folder/files_list_folder_continue. Or to list all shared folders for the connected account, one would use sharing_list_folders/sharing_list_folders_continue.
Those are links to the methods in the Python SDK, since the original poster here asked about using Python, but these methods are also available as HTTPS endpoints, in case you can't use one of the official SDKs, respectively:
- /2/files/get_metadata
- /2/files/list_folder / /2/files/list_folder/continue
- /2/sharing/list_folders / /2/sharing/list_folders/continue
The linked documentation includes examples of calling those using curl. The API Explorer is also a very useful tool for trying out calls.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,910 PostsLatest Activity: 4 days agoIf 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 or Facebook.
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!