Google Drive File icon

Google Drive File

Fetch Google Drive file metadata and content

Get Metadata

AI-generated

Summary

Retrieve complete metadata for a Google Drive file.

Inputs

  • inputType — Whether to provide a Google Drive file URL or file ID.
  • fileUrl (required) — The Google Drive file URL. Required when inputType is 'url'. Shown only when inputType=url.
  • fileId (required) — The Google Drive file ID. Required when inputType is 'id'. Shown only when inputType=id.

Output shape

object

Full Google Drive file metadata object returned by the Google Drive API v3 endpoint https://www.googleapis.com/drive/v3/files/${fileId}?fields=*&supportsAllDrives=true, authenticated via googleDriveOAuth2Api. The response includes id, name, mimeType, modifiedTime, and other file properties.

Examples

Example 1: Provide file URL

Set inputType to 'url' and fileUrl to 'https://drive.google.com/file/d/FILE_ID/view'. The node resolves the file ID and fetches metadata.

Example 2: Provide file ID

Set inputType to 'id' and fileId to '1a2b3c4d5e6f7g8h9i0j'. The node directly uses the ID to request metadata.

Discussion