Note:
- From your Web browser, go to the Google Drive File Stream home page. On the Google Drive Help page, click on Download for Windows. In the following pop-up window, click Save File. If you're prompted to enter a location in which to save the installer file, titled googledrivefilestream.exe, save.
- What is Google Drive File Stream? Drive File Stream is basically a kind of Sync tool for desktop or we can say it is a replacement or alternative for the Backup and Sync app. This tool is mainly developed for G Suite users which means all the new features & functionalities of G Suite are integrated with this new program.
Store, share, and access your files and folders from any mobile device, tablet, or computer—and your first 15GB of storage are free. Go to Google Drive Teams.
Authorization optional.Gets a file's metadata or content by ID.Try it now or see an example.
If you provide the URL parameter alt=media
, then the response includes the file contents in the response body. Downloading content with alt=media
only works if the file is stored in Drive. To download Google Docs, Sheets, and Slides use files.export
instead. For further information on downloading files, refer to Download files.
Request
HTTP request
Parameters
Parameter name | Value | Description |
---|---|---|
Path parameters | ||
fileId | string | The ID for the file in question. |
Optional query parameters | ||
acknowledgeAbuse | boolean | Whether the user is acknowledging the risk of downloading known malware or other abusive files. (Default: false ) |
includePermissionsForView | string | Specifies which additional view's permissions to include in the response. Only 'published' is supported. |
projection | string | Warning: This item is deprecated. This parameter is deprecated and has no function. Acceptable values are:
|
revisionId | string | Specifies the Revision ID that should be downloaded. Ignored unless alt=media is specified. |
supportsAllDrives | boolean | Whether the requesting application supports both My Drives and shared drives. (Default: false ) |
supportsTeamDrives | boolean | Warning: This item is deprecated. Deprecated use supportsAllDrives instead. (Default: false ) |
updateViewedDate | boolean | Warning: This item is deprecated. Deprecated: Use files.update with modifiedDateBehavior=noChange, updateViewedDate=true and an empty request body. (Default: false ) |
Authorization
This request allows authorization with at least one of the following scopes:
Scope |
---|
https://www.googleapis.com/auth/drive |
https://www.googleapis.com/auth/drive.file |
https://www.googleapis.com/auth/drive.readonly |
https://www.googleapis.com/auth/drive.metadata.readonly |
https://www.googleapis.com/auth/drive.appdata |
https://www.googleapis.com/auth/drive.metadata |
https://www.googleapis.com/auth/drive.photos.readonly |
Some scopes are restricted and require a security assessment for your app to use them. For more information, see the authentication and authorization page.
Request body
Do not supply a request body with this method.
Response
By default, this responds with a Files resource in the response body. If you provide the URL parameter alt=media
, then the response includes the file contents in the response body. Downloading content with alt=media
only works if the file is stored in Drive. To download Google Docs, Sheets, and Slides use files.export
instead. For further information on downloading files, refer to Download files.
Examples
Note: The code examples available for this method do not represent all supported programming languages (see the client libraries page for a list of supported languages).
Java
Uses the Java client library.
.NET
Uses the .NET client library.
PHP
Uses the PHP client library.
Python
Uses the Python client library.
![How to get google drive file stream How to get google drive file stream](http://blogs.hebronacademy.org/technology/wp-content/uploads/sites/3/2017/10/Screen_Shot_2017-10-06_at_08_59_04.png)
JavaScript
Uses the JavaScript client library.
Go
![Google drive download Google drive download](https://mavenwave.zendesk.com/hc/article_attachments/360000556846/mceclip0.png)
Gets a file's metadata or content by ID.Try it now or see an example.
If you provide the URL parameter alt=media
, then the response includes the file contents in the response body. Downloading content with alt=media
only works if the file is stored in Drive. To download Google Docs, Sheets, and Slides use files.export
instead. For further information on downloading files, refer to Download files.
Request
HTTP request
Parameters
Parameter name | Value | Description |
---|---|---|
Path parameters | ||
fileId | string | The ID for the file in question. |
Optional query parameters | ||
acknowledgeAbuse | boolean | Whether the user is acknowledging the risk of downloading known malware or other abusive files. (Default: false ) |
includePermissionsForView | string | Specifies which additional view's permissions to include in the response. Only 'published' is supported. |
projection | string | Warning: This item is deprecated. This parameter is deprecated and has no function. Acceptable values are:
|
revisionId | string | Specifies the Revision ID that should be downloaded. Ignored unless alt=media is specified. |
supportsAllDrives | boolean | Whether the requesting application supports both My Drives and shared drives. (Default: false ) |
supportsTeamDrives | boolean | Warning: This item is deprecated. Deprecated use supportsAllDrives instead. (Default: false ) |
updateViewedDate | boolean | Warning: This item is deprecated. Deprecated: Use files.update with modifiedDateBehavior=noChange, updateViewedDate=true and an empty request body. (Default: false ) |
Authorization
This request allows authorization with at least one of the following scopes:
Scope |
---|
https://www.googleapis.com/auth/drive |
https://www.googleapis.com/auth/drive.file |
https://www.googleapis.com/auth/drive.readonly |
https://www.googleapis.com/auth/drive.metadata.readonly |
https://www.googleapis.com/auth/drive.appdata |
https://www.googleapis.com/auth/drive.metadata |
https://www.googleapis.com/auth/drive.photos.readonly |
Some scopes are restricted and require a security assessment for your app to use them. For more information, see the authentication and authorization page.
Request body
Do not supply a request body with this method.
Response
By default, this responds with a Files resource in the response body. If you provide the URL parameter alt=media
, then the response includes the file contents in the response body. Downloading content with alt=media
only works if the file is stored in Drive. To download Google Docs, Sheets, and Slides use files.export
instead. For further information on downloading files, refer to Download files.
Examples
Note: The code examples available for this method do not represent all supported programming languages (see the client libraries page for a list of supported languages).
Java
Uses the Java client library.
.NET
Uses the .NET client library.
PHP
Uses the PHP client library.
Python
Uses the Python client library.
JavaScript
Uses the JavaScript client library.
Go
Install Google Drive File Stream Download
Uses the Go client library.
Objective-C
Uses the Objective-C client library.
Try it!
Google Drive File Stream Not Working Mac
Use the APIs Explorer below to call this method on live data and see the response.