🚀 Quickstart
Connect to Google Drive with Nango and see data flow in 2 minutes.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.
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.
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:Or fetch credentials with the Node SDK or API.✅ You’re connected! Check the Logs tab in Nango to inspect requests.
- cURL
- Node
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.-
How to register your own Google Drive OAuth app
Register an OAuth app with Google Drive and obtain credentials to connect it to Nango -
Complete integration example with the Nango Sample App
See a production-ready Google Drive integration with file picker, webhooks, and file syncing. Includes a demo video walkthrough and GitHub repository.
🧩 Pre-built syncs & actions for Google Drive
Enable them in your dashboard. Extend and customize to fit your needs.Documents
| Function name | Description | Type | Source code |
|---|---|---|---|
upload-document | Uploads 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 |
documents | Sync 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 |