Web Applications Stack Exchange is a question and answer site for power users of web applications. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I can display a nice folder list for a Google Docs folder via a link like:


(where ID is replaced by the Google assigned id of the folder)

But when when I attempt to embed that on my web site in an iframe, I get a blank iframe. Is there a solution?

share|improve this question
I note that other URLs ending in /preview, such as for a Google Doc word processing file, display fine in a frame. So why not folder listings? – Victoria Dec 13 '12 at 21:05
That requires authentification. In Google Sites it would be do-able. – Jacob Jan Tuinstra Dec 14 '12 at 7:40
@Jacob Indeed. All the browsers that would want to do this for my application would already be logged in to Google, and have share permission on the folder. I can embed a Doc fine, why not a Folder? What is the security issues that permits one, but not the other? – Victoria Dec 14 '12 at 20:36
Perhaps this is of use: sites.google.com/site/appsscriptexperiments/home/…. See the item below this one as well. – Jacob Jan Tuinstra Jan 27 '13 at 11:29
Well, that might have possibility, if the App Script document (a spreadsheet I guess) can be embedded... A lot of overhead to do something that should be simple, though. – Victoria Jan 28 '13 at 5:33
up vote 2 down vote accepted

Somewhere along the line, I finally stumbled across some documentation or sample code that led me to this answer, which has been working a few months now:


(in the above example, replace the ...... with the id of the folder you wish to display)

Once you know the magic incantation, then you can find the documentation for it...

This isn't the official documentation for the feature, but it is a useful one: https://sites.google.com/site/mori79/html-gadgets/how-tos/google-drive#TOC-Folders

I don't know where the official documentation for the feature is, nor if there is any.

Searching now, I find this answer in a stackoverflow question, although it hasn't been uprated (until I did): http://stackoverflow.com/questions/21367610/showing-documents-from-google-drive-on-webpage And also this one: http://stackoverflow.com/questions/20681974/how-to-embed-a-google-drive-folder-in-a-website

share|improve this answer
Your first link doesn't work – Eight Days of Malaise Jun 26 '14 at 2:56
It isn't supposed to be an active link, but rather an example. Replace the ...... with the id of the folder you wish to display. – Victoria Jun 26 '14 at 5:07

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.