---
title: "GET /files"
method: GET
path: "/files"
tags: ["files"]
---

# GET /files

`GET /files`

Lists the user's files. For more information, see [Search for files and folders](https://developers.google.com/workspace/drive/api/guides/search-files). This method accepts the `q` parameter, which is a search query combining one or more search terms. This method returns *all* files by default, including trashed files. If you don't want trashed files to appear in the list, use the `trashed=false` query parameter to remove trashed files from the results.

## Query parameters

- `corpora` string
- `corpus` 'domain' | 'user'
- `driveId` string
- `includeItemsFromAllDrives` boolean
- `includeLabels` string
- `includePermissionsForView` string
- `includeTeamDriveItems` boolean
- `orderBy` string
- `pageSize` integer
- `pageToken` string
- `q` string
- `spaces` string
- `supportsAllDrives` boolean
- `supportsTeamDrives` boolean
- `teamDriveId` string

## Response `200`

Successful response

---

[API](https://skmtc.dev/google/apis/drive.md) · [All operations](https://skmtc.dev/google/apis/drive/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/google/drive/revisions/f3444ff3fae2/schema)
