Skip to content

Google Drive

Access and manage Google Drive files.

This source provides a single flexible api_google-drive tool that accepts:

  • path: API endpoint (e.g., “/drive/v3/files”)
  • method: HTTP method (GET, POST, PATCH, DELETE)
  • params: Request body or query parameters
EndpointMethodDescription
/drive/v3/filesGETList files
/drive/v3/files/{id}GETGet file metadata
/drive/v3/files/{id}?alt=mediaGETDownload file content
/drive/v3/filesPOSTCreate file (metadata)
/drive/v3/files/{id}PATCHUpdate file metadata
/drive/v3/files/{id}DELETEDelete file

Use the q parameter:

  • name contains 'keyword' - Name contains keyword
  • mimeType = 'application/pdf' - File type filter
  • 'folderId' in parents - Files in folder
  • modifiedTime > '2024-01-01' - Modified after date
  • Privacy: This source accesses Google Drive files.
  • File content: Use alt=media query param to download actual file content.

Required config.json:

{
"name": "Google Drive",
"slug": "google-drive",
"enabled": true,
"provider": "google",
"type": "api",
"api": {
"baseUrl": "https://www.googleapis.com/drive/v3/",
"authType": "bearer",
"googleService": "drive",
"googleOAuthClientId": "your-client-id.apps.googleusercontent.com",
"googleOAuthClientSecret": "your-client-secret"
},
"iconUrl": "https://drive.google.com"
}

See Google OAuth Setup for instructions on creating OAuth credentials, then use source_google_oauth_trigger to start the OAuth flow.