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
  • Node
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 quickstart 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.

Documents

Function nameDescriptionTypeSource code
upload-documentUploads a file to Google Drive. The file is uploaded to the root directory of the authenticated user’s Google Drive account. If a folder ID is provided, the file is uploaded to the specified folder.ActionπŸ”— Github
documentsSync the metadata of a specified file or folders from Google Drive, handling both individual files and nested folders. Metadata required to filter on a particular folder, or file(s). Metadata fields should be {"files": ["<some-id>"]} OR {"folders": ["<some-id>"]}. The ID should be able to be provided by using the Google Picker API (https://developers.google.com/drive/picker/guides/overview) and using the ID field provided by the response (https://developers.google.com/drive/picker/reference/results)SyncπŸ”— Github

Drives

Function nameDescriptionTypeSource code
list-drivesLists all shared drives the user has access to. Returns paginated results with up to 100 drives per page.ActionπŸ”— Github

Folders

Function nameDescriptionTypeSource code
folder-contentFetches the top-level content (files and folders) of a folder given its ID. If no folder ID is provided, it fetches content from the root folder.ActionπŸ”— Github
foldersSync the folders at the root level of a google drive.SyncπŸ”— Github