2

is free or commercial Google Docs Viewer?

together

<iframe src="https://docs.google.com/viewer?url=https://dornsife.usc.edu/assets/sites/298/docs/ir211wk12sample.xls" title="preview my file on nav "></iframe>

Does it have documentation?

could like to use in my web app but I need documentation or price or limited use?

Carlos
  • 572
  • 1
  • 5
  • 13
  • As far as I know it's free, there is also an excel module. – Tirterra Nov 28 '21 at 21:53
  • Hey! Google does not have a Viewer API so would you mind stating what exactly do you mean by Google Viewer API? – ale13 Nov 29 '21 at 16:30
  • or what is this: https://docs.google.com/viewer ? it has limited use or is commercial, where can I see de documentation? – Carlos Nov 30 '21 at 18:11
  • The link you have shared returns a 400 bad request response; are you using an extension with this name perhaps? – ale13 Dec 03 '21 at 08:04
  • see my example: whe you add the file work! https://docs.google.com/viewer?url=https://dornsife.usc.edu/assets/sites/298/docs/ir211wk12sample.xls – Carlos Dec 03 '21 at 17:25
  • Dec 2022 - Example that works here - https://stackoverflow.com/a/74815732/984471 – Manohar Reddy Poreddy Dec 15 '22 at 18:01

1 Answers1

2

The only API from Google which interacts with a file in your Drive is Google Drive API and sadly, there is no such thing as Docs Viewer API.

In fact, the "Docs Viewer" is merely a URL which allows you to preview a document while passing the link of a file to it.

I have taken the opportunity to report this on Google's Issue Tracker here and I suggest you star it as any updates regarding this will be posted there.

ale13
  • 5,679
  • 3
  • 10
  • 25
  • 2
    see it https://gist.github.com/tzmartin/1cf85dc3d975f94cfddc04bc0dd399be#gistcomment-2310091 – Carlos Dec 10 '21 at 19:52