One month down in 2025: How are your resolutions coming along? Check out how to get back on track here.
Forum Discussion
sayoko1
3 years agoExplorer | Level 3
Obtain preview_url from list_folder
Hello support,
The reference documentation states that the https://api.dropboxapi.com/2/files/list_folder call returns entries that are an array of "List of (Metadata)..."
Both the FileMetadata and the FolderMetadata are said to contain the parameter called "preview_url" (see screenshot) but it says that this field is optional.
How can we make it so that this field shows up in the API response? I've tested calling it a few times but so far have not been able to get the "preview_url" in the metadata response.
Thank you all!
- Greg-DB
Dropbox Staff
Some API objects/fields are re-used in the API specification, and are not returned in every case or from every endpoint. The 'preview_url' is available for shared items, and can be retrieved from the sharing endpoints such as /2/sharing/get_folder_metadata for shared folders and /2/sharing/get_file_metadata for individually shared files.
- Babaraba AbdabiExplorer | Level 4
It's not "optional", document should show as "depends on API". Really confuseful documentation.
- Greg-DB
Dropbox Staff
Babaraba Abdabi Thanks for the feedback!
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,949 PostsLatest Activity: 2 hours ago
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 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!