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
583
votes
47 answers

wget/curl large file from google drive

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 to get one of them to download. I got the UIDs of…
Arjun
  • 5,978
  • 3
  • 12
  • 10
375
votes
25 answers

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
  • 3,759
  • 3
  • 14
  • 3
298
votes
3 answers

Is there a Google Keep API?

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 Drive, but I couldn't find it.
maxdaniel98
  • 6,623
  • 6
  • 19
  • 21
164
votes
7 answers

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
  • 4,026
  • 3
  • 19
  • 23
155
votes
21 answers

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 a web page, but it appears that this is simply…
forrest
  • 10,570
  • 25
  • 70
  • 132
107
votes
15 answers

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( mainly JSON file/OAuth). But I am unable to get…
rkatkam
  • 2,634
  • 3
  • 18
  • 29
101
votes
2 answers

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 which the owner has shared the documents. I understand that my…
pinoyyid
  • 21,499
  • 14
  • 64
  • 115
91
votes
12 answers

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 paths you can choose (at least that I know of)…
Jared Rummler
  • 37,824
  • 19
  • 133
  • 148
87
votes
10 answers

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 won't be able to use any sdk since I am working on…
Niranja
  • 1,451
  • 2
  • 18
  • 19
83
votes
6 answers

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 but it requires web authentication for gdrive…
alvas
  • 115,346
  • 109
  • 446
  • 738
82
votes
5 answers

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
  • 1,795
  • 2
  • 19
  • 21
80
votes
5 answers

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 need that space for the projects I'm working…
jpm_phd
  • 915
  • 1
  • 6
  • 8
77
votes
10 answers

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 use the following code to read the spreadsheet,…
dartdog
  • 10,432
  • 21
  • 72
  • 121
76
votes
7 answers

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?
63
votes
16 answers

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 from pydrive.drive import GoogleDrive from…
Laxmikant
  • 2,046
  • 3
  • 30
  • 44
1
2 3
99 100