Questions tagged [google-docs-api]

The Google Docs API lets you create and modify documents. Use for questions regarding programmatic manipulation of Google documents through the REST-API. Do NOT use for direct manipulation through Google Apps Script or for access through Google Drive API.

This tag was previously used for the Google Documents List API, which was sunset in 2015. It has been replaced by the Google Drive API, which uses the tag .

1550 questions
58
votes
3 answers

Collapsing Elements in a Google Doc With Google Apps Script - Is This Possible?

I'd love to be able to collapse and expand sections in my Google Docs document, making large documents easier to navigate. I was wondering if this is possible with Google Apps Script, or if I'd be wasting my time trying to find a way.
Squis
  • 921
  • 2
  • 8
  • 14
49
votes
7 answers

Convert a Markdown text file into a Google Document using Appscript?

I am trying to migrate a load of documentation which was written in markdown into a Google Doc so it can be used by our marketing department. Is there a mechanism using appscript/ Google Docs Api that I can import a file and convert it to a Google…
UKDataGeek
  • 6,338
  • 9
  • 46
  • 63
42
votes
1 answer

Creating anchored comments programmatically in Google Docs

I have been unable to programmatically create a comment that is anchored to specific text in a Google Doc using an app script with the document. Google documentation about how to create an anchored comment using the Google Drive…
40
votes
13 answers

Download a spreadsheet from Google Drive / Workspace using Python

Can you produce a Python example of how to download a Google Sheets spreadsheet given its key and worksheet ID (gid)? I can't. I've scoured versions 1, 2 and 3 of the API. I'm having no luck, I can't figure out their compilcated ATOM-like feeds…
32
votes
0 answers

Blame for Google Drive documents

I am trying to write Google document add-on which will help me to check who wrote particular part of the document, in my work every day several people edit the same document and very often instead of putting the names they write sentences like: "I…
anieblas
  • 499
  • 3
  • 6
30
votes
3 answers

How to upload a file to Google Drive using a Python script?

I need to backup various file types to GDrive (not just those convertible to GDocs formats) from some linux server. What would be the simplest, most elegant way to do that with a python script? Would any of the solutions pertaining to GDocs be…
GJ.
  • 5,226
  • 13
  • 59
  • 82
29
votes
10 answers

Google Docs viewer returning 204 responses, no longer working, alternatives?

UPDATE 2016-11-16 9:53am EST It appears many people are still seeing 204 responses even though Google has claimed to have "fixed" the problem. When I myself tested the loading of a document 50 times, 3 of those times Google returned a 204 response.…
Art Geigel
  • 1,915
  • 3
  • 22
  • 24
28
votes
2 answers

Google Drive\Docs API for Android

I integrated Dropbox with my app in a matter of hours as the SDK was clearly described and had good examples of usage. Google Drive seems to only have a "one size fits all" Gdata SDK which is very heavy (with the many dependencies, it triples the…
user1358144
25
votes
6 answers

Download/Export Public Google Spreadsheet as TSV from Command Line?

I have a public (published) Google spreadsheet that I’m trying to download programmatically in TSV form. In my browser, with a Google login active, for some actual key $key,…
Aaron Davies
  • 1,190
  • 1
  • 11
  • 17
24
votes
2 answers

How do I export the revision history of a gdoc to git?

I have a spreadsheet in google docs that I'd want to integrate in a git workflow (and push to github). Are there any tools (or even libraries that are gdoc version aware) that do, or help me do, that? I have some old ruby hacks lying around based on…
ecmanaut
  • 5,030
  • 2
  • 44
  • 66
22
votes
4 answers

Google docs viewer url parameters

Is there any sort of documentation on exactly what parameters you can put in the url of Google viewer? Originally, I thought it was just url,embedded,chrome, but I've recently come accross other funny ones like a,pagenumber, and a few others for…
P O'Conbhui
  • 1,203
  • 1
  • 9
  • 16
20
votes
3 answers

Google Drive Links URL format and query parameters

I'm desperately trying to find where the google drive and google docs urls scheme and query parameters are documented. For example what is the usp= parameter which seems to have several possible values ? Also, why a link like this…
Cédric NICOLAS
  • 1,006
  • 2
  • 12
  • 24
20
votes
6 answers

Integrate Google Docs into web site for content creation

I am building a self-publishing web site. I want to integrate Google Docs into my website and allow every publisher/writer to write her/his book from my website and later update the content from either my website or directly from google docs, and to…
Dimitar
  • 1,830
  • 5
  • 32
  • 52
18
votes
5 answers

Script to automatically make a copy of a Google Document for editing

I feel like a total noob posting here. I know CSS, HTML, and XML pretty well but have always avoided JS. I know very little javascript and recently started a Lynda.com course to catch up. Sorry for my ignorance. As such, I am really struggling…
17
votes
1 answer

Documents List API Regression: Updating a document (with conversion) loses images

Something seems to have recently broken with the Google Docs conversion when using the documents list API. Updates made to existing document entries won't be converted into the Google Docs format correctly and images in the document will not…
KabukiAdam
  • 241
  • 2
  • 5
1
2 3
99 100