Questions tagged [google-drive-api]

Questions related to integration with Google's cloud storage service or interacting with Google Drive files programmatically, via the Google Drive API, Google Drive SDK, or Google Apps Script. Usage questions about the web application should be posted at Web Applications Stack Exchange.

Google Drive is a cloud-based application and service for creating and managing cloud storage and files. The service supports an internal API for Google Apps Script as well as an External API.

Usage questions about the web application should be posted at Web Applications Stack Exchange instead of here.

Note: Google has used the brand "Google Drive" to encompass a suite of products, but since conforming to that would introduce ambiguity here, the tag is specifically for the cloud storage service while refers to the suite.

Note: Google Drive will soon be renamed to Google One.

Important URLs for the Google Drive SDK

Breaking changes:

Unofficial support channels

14746 questions
62
votes
4 answers

Android Open and Save files to/from Google Drive SDK

I've spent the last six hours pouring over documents from Google and I still don't know how to get started with this. All I want to do is make it so my existing Android app can read files from Google Drive, upload new files to Google Drive, and edit…
ArtOfWarfare
  • 20,617
  • 19
  • 137
  • 193
60
votes
7 answers

Using the google drive API to download a spreadsheet in csv format

I'm sorry if this is an obvious question, I'm still pretty new to the API. I'm using the python drive api library, and trying to download a google spreadsheet as a csv. When I used files.get, it spat out a file with no downloadUrl, and with no…
user1546842
  • 601
  • 1
  • 6
  • 3
59
votes
4 answers

How to embed a Google Drive folder in a web page

I have a folder in Google Drive that I'd like to embed in my web page. I can't find an embed code or anything documented in Google Drive Help articles.
Mori
  • 8,137
  • 19
  • 63
  • 91
59
votes
4 answers

Google Sheets: How to replace text in column header?

I have a query like this =QUERY(B2:C9; "select (C * 100 / B) - 100") in my Google Sheets. What is displayed as a column header is: difference(quotient(product(100.0()))100.0()). I want to put a human readable description there instead. How can I…
Guillaume Perrot
  • 4,278
  • 3
  • 27
  • 37
58
votes
1 answer

How to avoid from always loading cached app data from Google Drive

Currently, I'm using Google Drive Android API, to store my Android app data, to Google Drive App Folder. This is what I'm doing when saving my application data Generate a checksum for the current local zip file. Search in Google Drive App Folder,…
Cheok Yan Cheng
  • 47,586
  • 132
  • 466
  • 875
58
votes
7 answers

What is the limit on Google Drive API usage?

Because this product is new, I am looking forward to develop an app on it so is there any limit on the API usage such as: upload and download quota requests per app etc
Radi
  • 6,548
  • 18
  • 63
  • 91
55
votes
12 answers

How to insert an inline image in Google Colaboratory from Google Drive

I am trying to insert an image in Google Colaboratory (markdown) already saved in Google Drive using this expression ![Text](https://xxxx) but it doesn't work. For example, the Colaboratory markdown manual shows how to insert a photo inline with…
Igor Gomez
  • 581
  • 1
  • 4
  • 4
55
votes
7 answers

Download a file from google drive using wget

I want to download the file that is viewable at this address to a linux remote: https://drive.google.com/file/d/0Bz7KyqmuGsilT0J5dmRCM0ROVHc/view?usp=sharing I'm hoping I can do this with wget. I tried wget…
Eugene Brown
  • 4,032
  • 6
  • 33
  • 47
55
votes
9 answers

opening html from google drive

I have made a page in html5 with css3. It works fine on local (I dont use any server, just doubleclick in the index to open it). I want to put it in google drive. I have load all the documents needed, but when I try to open the html, I can only see…
53
votes
3 answers

How to get list of files by folder on Google Drive API

I am trying to build a web UI for users to navigate his/her Google Drive and select one or more documents to be referenced later on in a website from a DB. I am currently building a web interface using .NET. The problem I am facing is that I can not…
user3199365
  • 633
  • 1
  • 6
  • 8
53
votes
5 answers

Google Drive MD5 checksum for files

I'm not a programmer, just a regular user of Google Drive. I want to see if the files are uploaded correctly. I go through a whole process in the OAuth 2.0 Playground that lists all files, shows the MD5 checksums but also lots of information per…
Alex
  • 1,427
  • 2
  • 13
  • 24
52
votes
12 answers

Easiest way to get file ID from URL on Google Apps Script

Here is what I'm trying to do: given a Google document URL, I want to get the document ID to create a copy on Google Drive. I know I can achieve that by some regex or replacing on the URL, but as there are several different forms to represent the…
Renato
  • 685
  • 1
  • 6
  • 11
52
votes
6 answers

Can I push/pull directly from my google drive online?

There are methods to sync my local git repository over to my google drive via google drive sync windows application, but I was wondering whether I could bypass its need altogether. Fro eg. $ git remote add origin…
laggingreflex
  • 32,948
  • 35
  • 141
  • 196
51
votes
13 answers

How to download a Google Drive url via curl or wget

Is there a way to download a publicly-viewable Google Drive url via curl or wget? For example, being able to do something like: curl -O myfile.xls https://drive.google.com/uc?export=download&id=1Wb2NfKTQr_dLoFJH0GfM0cx-t4r07IVl Note, I'm looking to…
David542
  • 104,438
  • 178
  • 489
  • 842
51
votes
15 answers

Direct download from Google Drive using Google Drive API

My desktop application, written in java, tries to download public files from Google Drive. As i found out, it can be implemented by using file's webContentLink (it's for ability to download public files without user authorization). So, the code…
Filipp Voronov
  • 4,077
  • 5
  • 25
  • 32