Showing results for 
Search instead for 
Did you mean: 

Known issues updated. Learn more

March contest: Post your Paper workflow to win a Dropbox t-shirt and tote bag!

How do I get the content from shared HTML file?

Level 6


I am working with shared links files on my Dropbox App in PHP and I need a hand.

Currently, I send a request file to the API and get back a HTML file:


array(1) {
  array(10) {
    string(4) "file"
    string(2smiling face with sunglasses "FiatoRetB_C_V02DesignB1.html"
    string(51) "/fiatoretb_c_v02design/fiatoretb_c_v02designb1.html"
    string(51) "/FiatoRetB_C_V02Design/FiatoRetB_C_V02DesignB1.html"
    string(25) "id:WEoRMx*****AAAAAAAAAXQ"
    string(20) "2019-03-12T08:46:42Z"
    string(20) "2019-03-12T08:46:43Z"
    string(10) "4755e2a02d"
    string(64) "203d964e139d8b15fdfe*****4835431e07f79fd7ac31ffb443717d5bcd6c3d7"

What I need to do now, is actually to get the file content from this HTML file (the HTML code). I have tried different ways such as get_headers and others functions but without successs. 


The question is, how does Dropbox API can provide the file content itself? Or is there any other way to get that content?

Thank you in advance!!

1 Reply

Re: How do I get the content from shared HTML file?


It looks like you're printing out the file metadata from an API call that returns information about the file. To get the file's actual content, you should instead use /2/files/download: 

API Support

Have a question? Our Dropbox Community is here to help you find an answer!
You won’t have to wait too long for a reply, but why not learn more about the Community while you’re here.

Not the right discussion for you? Find out what else our Community has to say about API Support.

Or, search our Help Center for even more.

Who's talking
Top contributors to this post