> ## Documentation Index
> Fetch the complete documentation index at: https://docs.r28.ai/charter/llms.txt
> Use this file to discover all available pages before exploring further.

# files_get

> Get a file's metadata by ID. Pass `alt=media` for the binary contents of a file stored in Drive; for Google Docs, Sheets and Slides use files_export instead.

<div className="tool-route"><span className="tool-row-method" data-method="GET">GET</span><code>{"https://www.googleapis.com/drive/v3/files/{fileId}"}</code></div>

```python gdrive_files_get.py theme={null}
from charter.packs import gdrive

result = await gdrive.files_get.ainvoke({"fileId": ...})
```

<Note>
  Requires `https://www.googleapis.com/auth/drive`. Costs 1 against the provider's own quota.
</Note>

## Path parameters

<div className="reference-table">
  | Field                                                          | Type     | Description         |
  | -------------------------------------------------------------- | -------- | ------------------- |
  | `fileId` <span className="required" title="required">\*</span> | `string` | The ID of the file. |
</div>

## Query parameters

<div className="reference-table">
  | Field                       | Type                                           | Description                                                                                                                                                                                                                                                             |
  | --------------------------- | ---------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | `acknowledgeAbuse`          | `boolean`                                      | Whether the user is acknowledging the risk of downloading known malware or other abusive files. This is only applicable when the `alt` parameter is set to `media` and the user is the owner of the file or an organizer of the shared drive in which the file resides. |
  | `includePermissionsForView` | `string`                                       | Specifies which additional view's permissions to include in the response. Only `published` is supported.                                                                                                                                                                |
  | `includeLabels`             | `string`                                       | A comma-separated list of IDs of labels to include in the `labelInfo` part of the response.                                                                                                                                                                             |
  | `supportsAllDrives`         | `boolean`                                      | Whether the requesting application supports both My Drives and shared drives.                                                                                                                                                                                           |
  | `alt`                       | [Alt](/charter/charter/packs/gdrive/files/objects#alt) | If you provide `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.                  |
</div>
