Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
ideveloper200
8 years agoExplorer | Level 3
How to get file content using rest api?
How to get file content using rest api ?
Greg-DB
Dropbox Community Moderator
7 years agoChhavi Downloading file content via the Dropbox API works the same way, regardless of file type. You can use the /2/files/download endpoint to download file data whether the file is a .xlsx or any other type. Exactly what you then do with the data is up to you. For example, you may wish to open the data in a document viewer.
If something isn't working as expected, feel free to open a thread with details.
Chhavi
7 years agoExplorer | Level 3
I am still not able to get data for .xslx file. This is preview here! how to get content from this?
- Greg-DB7 years ago
Dropbox Community Moderator
Chhavi That is the file data for the requested file returned by the Dropbox API. The /2/files/download endpoint is a "content-download" style endpoint, meaning it returns the requested content in the HTTPS response body. You can use or save the response body however you wish. Exactly how you do so will depend on what HTTPS client/library you're using.
We can't provide support for third party clients/libraries, but it looks like you're using Postman in your screenshot, which I believe has a "Save Response" button (not visible in your screenshot though).
- shivanitanwar3 years agoNew member | Level 2
Hi Chhavi,
I also stuck to the same issue.My file is in xlxs format .I wanted to read content using RestAPI. Are you able to solve this issue. Need urgent help. Please help if you are able to read file content
- Greg-DB3 years ago
Dropbox Community Moderator
shivanitanwar The /2/files/download endpoint is still the right way to download file content from the Dropbox API. (By the way, that's a link to the documentation for the HTTPS endpoints themselves, but we recommend using one of the official SDKs if possible. Those have corresponding native methods for the HTTPS endpoints.) Refer to my earlier messages in this thread for some more resources. You may also find the Getting Started and File Access guides helpful
About Discuss Dropbox Developer & API
Make connections with 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!