Skip to main content

πŸš€ Quickstart

Connect to Google Drive with Nango and see data flow in 2 minutes.
1

Create the integration

In Nango (free signup), go to Integrations -> Configure New Integration -> Google Drive.
Nango has credentials you can use for testing. Activate them in the dashboard.
2

Authorize Google Drive

Go to Connections -> Add Test Connection -> Authorize, then log in to Google Drive. Later, you’ll let your users do the same directly from your app.
3

Call the Google Drive API

Let’s make your first request to the Google Drive API (fetch a list of files). Replace the placeholders below with your secret key, integration ID, and connection ID:
curl "https://api.nango.dev/proxy/drive/v3/files?pageSize=10" \
  -H "Authorization: Bearer <NANGO-SECRET-KEY>" \
  -H "Provider-Config-Key: <INTEGRATION-ID>" \
  -H "Connection-Id: <CONNECTION-ID>"
Or fetch credentials with the Node SDK or API.βœ… You’re connected! Check the Logs tab in Nango to inspect requests.
4

Implement Nango in your app

Follow our Auth implementation guide to integrate Nango in your app.To obtain your own production credentials, follow the setup guide linked below.

πŸ“š Google Drive Integration Guides

Nango maintained guides for common use cases. Official docs: Google Drive API Documentation

🧩 Pre-built syncs & actions for Google Drive

Enable them in your dashboard. Extend and customize to fit your needs.

Changes

Function nameDescriptionTypeSource code
get-changes-start-page-tokenGet the starting token for listing future changesActionπŸ”— Github
list-changesList changes to files and shared drivesActionπŸ”— Github

Comments

Function nameDescriptionTypeSource code
create-commentAdd a comment to a fileActionπŸ”— Github
delete-commentDelete a comment from a fileActionπŸ”— Github
get-commentGet a comment by IDActionπŸ”— Github
list-commentsList comments on a fileActionπŸ”— Github
update-commentUpdate a comment on a fileActionπŸ”— Github

Drive

Function nameDescriptionTypeSource code
create-folderCreate a new folder in Google DriveActionπŸ”— Github
get-aboutGet the user’s drive info and storage quotaActionπŸ”— Github

Drives

Function nameDescriptionTypeSource code
create-shared-driveCreate a shared driveActionπŸ”— Github
delete-shared-driveDelete a shared driveActionπŸ”— Github
get-shared-driveGet a shared drive by IDActionπŸ”— Github
list-shared-drivesList shared drives the user can access, with cursor pagination and drive metadata like hidden, capabilities, and restrictions.ActionπŸ”— Github

Files

Function nameDescriptionTypeSource code
copy-fileCopy a file to a destinationActionπŸ”— Github
delete-fileDelete a file or folder from Google DriveActionπŸ”— Github
empty-trashPermanently delete all trashed filesActionπŸ”— Github
find-fileSearch for files by name or query in Google DriveActionπŸ”— Github
get-revisionGet a file revision by IDActionπŸ”— Github
list-files-non-unifiedList immediate files and folders for a folder ID, or root when omitted, with cursor pagination and shared-drive support.ActionπŸ”— Github
move-fileMove a file to a different folderActionπŸ”— Github
update-fileUpdate a file’s metadataActionπŸ”— Github
upload-documentUpload plain text or base64 file content up to 5 MB, optionally into a folder with a description; defaults to rootActionπŸ”— Github
sync-filesSync file metadata for IDs in connection metadata files, or recursively for all files under folder IDs in folders. Supports shared drives.SyncπŸ”— Github

Folders

Function nameDescriptionTypeSource code
find-folderSearch for a folder by name or queryActionπŸ”— Github
sync-foldersSync root-level Google Drive folders from My Drive and shared drivesSyncπŸ”— Github

Permissions

Function nameDescriptionTypeSource code
delete-permissionRemove a permission from a fileActionπŸ”— Github
get-permissionGet a permission by IDActionπŸ”— Github
list-permissionsList permissions on a fileActionπŸ”— Github
update-permissionUpdate a permission on a fileActionπŸ”— Github
sync-permissionsSync file permissions from Google DriveSyncπŸ”— Github

Shared Drives

Function nameDescriptionTypeSource code
hide-shared-driveHide a shared drive from the default viewActionπŸ”— Github
unhide-shared-driveRestore a hidden shared drive to default viewActionπŸ”— Github
update-shared-driveUpdate a shared drive’s metadataActionπŸ”— Github
sync-shared-drivesSync shared drives from Google DriveSyncπŸ”— Github