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.

Filter by
Sorted by
Tagged with
605 votes
48 answers
858k views

wget/curl large file from google drive [closed]

I'm trying to download a file from google drive in a script, and I'm having a little trouble doing so. The files I'm trying to download are here. I've looked online extensively and I finally managed ...
Arjun's user avatar
  • 6,198
382 votes
26 answers
559k views

Displaying files (e.g. images) stored in Google Drive on a website

I was wondering if its possible to access/display files like images which are stored in Google Drive on a public website.
user1355487's user avatar
  • 3,829
298 votes
3 answers
123k views

Is there a Google Keep API? [closed]

Is there a API for Google Keep? I want to make a windows 8 app for Google Keep, so that it synchronizes with your phone. I looked into the Drive SDK because Google Keep is a extension of Google ...
maxdaniel98's user avatar
  • 6,853
170 votes
7 answers
146k views

How to number the headings in a Google Docs/Drive document?

Is it possible to number the headings in a Google Docs/Drive document?
ZehnVon12's user avatar
  • 4,106
160 votes
21 answers
368k views

How do I display images from Google Drive on a website?

A client of mine has uploaded some photos to their Google Drive and would like me to display their photos on their company website. I reviewed the documentation for displaying Google Drive content on ...
forrest's user avatar
  • 10.8k
116 votes
15 answers
232k views

Python: download files from google drive using url

I am trying to download files from google drive and all I have is the drive's URL. I have read about google API that talks about some drive_service and MedioIO, which also requires some credentials( ...
rkatkam's user avatar
  • 2,714
101 votes
2 answers
77k views

How do I authorise an app (web or installed) without user intervention?

Let's say that I have a web app ("mydriveapp") that needs to access Drive files in a background service. It will either own the files it is accessing, or be run in a Google Account with ...
pinoyyid's user avatar
  • 21.9k
91 votes
12 answers
54k views

How to shrink code - 65k method limit in dex

I have a rather large Android app that relies on many library projects. The Android compiler has a limitation of 65536 methods per .dex file and I am surpassing that number. There are basically two ...
Jared Rummler's user avatar
91 votes
12 answers
159k views

How to generate access token using refresh token through google drive API?

I have completed steps of authorization and obtained access token and refresh token. What should I do next to generate access token using refresh token that I have stored through google drive API? I ...
Niranja's user avatar
  • 1,483
85 votes
5 answers
89k views

How can I see hidden app data in Google Drive?

I have an Android app that stores my notes in hidden app data. I want to export my notes so the question is simple: How can I access the hidden app data in Google Drive for a specific app?
bizzz's user avatar
  • 1,825
83 votes
7 answers
59k views

Automating pydrive verification process

I am trying to automate the GoogleAuth process when using the pydrive library (https://pypi.python.org/pypi/PyDrive). I've set up the pydrive and the google API such that my secret_client.json works ...
alvas's user avatar
  • 119k
81 votes
10 answers
92k views

Getting Google Spreadsheet CSV into A Pandas Dataframe

I uploaded a file to Google spreadsheets (to make a publically accessible example IPython Notebook, with data) I was using the file in it's native form could be read into a Pandas Dataframe. So now I ...
dartdog's user avatar
  • 10.6k
80 votes
5 answers
12k views

Rstudio and Google Drive Syncing Problems: "The process cannot access the file because it is being used by another process"

So I'm using RStudio and storing my files on Google Drive (the version with folders on your system, acting like Dropbox). I'm using it because it provides a lot more space for free than Dropbox, and I ...
jpm_phd's user avatar
  • 915
79 votes
7 answers
147k views

Colaboratory: Can I access to my Google drive folder and file?

Google Colaboratory is really cool, but it would be more useful if I can access all my google drive files, without using standard google drive API. Is it possible and easy? and how?
Marco Scarselli's user avatar
70 votes
16 answers
366k views

Extract Google Drive zip from Google colab notebook

I already have a zip of (2K images) dataset on a google drive. I have to use it in a ML training algorithm. Below Code extracts the content in a string format: from pydrive.auth import GoogleAuth ...
Laxmikant's user avatar
  • 2,126
62 votes
12 answers
107k views

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 ...
Igor Gomez's user avatar
62 votes
7 answers
148k views

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 ...
Eugene Brown's user avatar
  • 4,192
62 votes
4 answers
100k views

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 ...
ArtOfWarfare's user avatar
61 votes
4 answers
206k views

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's user avatar
  • 8,704
61 votes
7 answers
81k views

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 ...
user1546842's user avatar
60 votes
9 answers
180k views

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, ...
Ane Hervías Caballero's user avatar
59 votes
4 answers
92k views

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 ...
Guillaume Perrot's user avatar
59 votes
7 answers
93k views

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's user avatar
  • 6,588
58 votes
1 answer
2k views

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 ...
Cheok Yan Cheng's user avatar
56 votes
3 answers
90k views

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 ...
user3199365's user avatar
54 votes
14 answers
100k views

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=...
David542's user avatar
  • 108k
54 votes
12 answers
95k views

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 ...
Renato's user avatar
  • 705
53 votes
15 answers
213k views

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 ...
Filipp Voronov's user avatar
53 votes
2 answers
40k views

Google Drive API, Oauth and service account

I've some issues with Google Drive API, service account and authentication. I read a lot, but I cannot figure out how to solve this. Context: I have some files on my Drive account (about 35GB) and a ...
user avatar
53 votes
6 answers
45k views

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 ...
Alex's user avatar
  • 1,447
52 votes
6 answers
81k views

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 ...
laggingreflex's user avatar
50 votes
2 answers
56k views

Is it possible to send HTTP request from inside Google docs?

I want to send an HTTP request to some REST service from Google drive spreadsheet. Is this possible?
Muhammad Hewedy's user avatar
47 votes
2 answers
59k views

Combine the split zip files downloading from Google Drive [closed]

I download 1 large folder 10 GB from Google Drive but it becomes several zipped files. I would like to combine the downloaded split zipped files from Google Drive with its original folder and sub-...
Nguyen's user avatar
  • 489
46 votes
2 answers
33k views

Error: invalid_client no registered origin

I have installed the Google Drive Realtime API sample files on my web server, following these instructions, including generating a client_id in the Cloud Console and inserting it into the index.html ...
ashatte's user avatar
  • 5,500
45 votes
11 answers
104k views

Script runtime execution time limit

My Google Apps Script is iterating through the user's Google Drive files and copying and sometimes moving files to other folders. The script is always stopped after certain minutes with no error ...
Martin V.'s user avatar
  • 3,620
45 votes
6 answers
51k views

Error: invalid_request device_id and device_name are required for private IP

I was doing my development with Google Drive API using [localhost:8080]. Suddenly I felt to test it in my local deployment sandbox and it has IP address as [192.168.1.1:8080]. And as per that I ...
phenomenon.aurora's user avatar
45 votes
4 answers
37k views

What are the Google Apps MIME Types in Google Docs and Google Drive?

What are the MIME types for each of the following file extensions: gdoc gslide gsheet gdraw
Edd's user avatar
  • 8,530
44 votes
2 answers
37k views

Authorization of Google Drive using JavaScript

I'm trying to authorize my application to integrate with Google Drive. Google documentation provides details for server based authorization and code samples for various server technologies. There's ...
Frodo Baggins's user avatar
43 votes
7 answers
152k views

How to get the file ID so I can perform a download of a file from Google Drive API on Android?

I am working on an Android project and I am trying to make use of the Google Drive API and I've got most of it working but I am having an issue in how I perform a download. I can't find anywhere how ...
Boardy's user avatar
  • 35.7k
43 votes
5 answers
92k views

How do I add/create/insert files to Google Drive through the API?

Need help regarding inserting a file to google drive through api. The api documentation for this purpose does not clearly explains how to send the actual body of the file through http post request.
Niranja's user avatar
  • 1,483
43 votes
5 answers
98k views

How do I read a Google Drive Spreadsheet in PHP?

All I'm trying to do is read a Google Spreadsheet from a web site. I've read and re-read the Google Drive API docs and everything Google Drive PHP on Stack Overflow and I still can't get to the end ...
Kiser's user avatar
  • 459
43 votes
1 answer
5k views

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 ...
Parker's user avatar
  • 558
42 votes
5 answers
27k views

How do I search sub-folders and sub-sub-folders in Google Drive?

This is a commonly asked question. The scenario is:- folderA____ folderA1____folderA1a \____folderA2____folderA2a \___folderA2b ... and the question is how do I list all ...
pinoyyid's user avatar
  • 21.9k
40 votes
4 answers
22k views

Add Image to GitHub Readme.md from Google Drive

I have the image in Drive, How could it be added to the Readme.md so as to display the image in readme. I had tried with the shared link, but it isn't working.
GokulDAS027's user avatar
40 votes
13 answers
68k views

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 ...
a paid nerd's user avatar
  • 31.2k
40 votes
7 answers
62k views

Google Colab - Google Drive can´t be mounted anymore - Browser Popup (Google Drive for Desktop) instead of Link in the code output for authorization

Since yesterday I have had the problem that I can no longer mount my Google account. Normally, when I run it, I get a link to authorize myself with. Now, when the code is executed, an extra browser ...
VICUBE Animation's user avatar
40 votes
5 answers
125k views

How to automatically import data from uploaded CSV or XLS file into Google Sheets

I have a legacy database system (not web accessible) on a server which generates CSV or XLS reports to a Google Drive folder. Currently, I am manually opening those files in Drive web interface and ...
youcantexplainthat's user avatar
39 votes
6 answers
115k views

SVN Repository on Google Drive or DropBox [closed]

Is it possible to setup SVN repo/server on google drive or dropbox etc? I want to put my PhD project under version control. The data has to stay private and only accessible to me and my supervisors. ...
Khurram Majeed's user avatar
39 votes
7 answers
73k views

Google Drive Offline Document File Location

Has anyone discovered where/how offline Google Documents are stored when using Google Drive in Chrome? They must be stored locally but where? Have tried the browser cache etc but can't see it unless ...
pjpeers's user avatar
  • 393

1
2 3 4 5
318