Renvoie toutes les tâches de la liste de tâches spécifiée. Par défaut, les tâches attribuées ne sont pas renvoyées (à partir de Docs et d'espaces Chat). Un utilisateur peut avoir jusqu'à 20 000 tâches non masquées par liste et jusqu'à 100 000 tâches au total à la fois.
Requête HTTP
GET https://tasks.googleapis.com/tasks/v1/lists/{tasklist}/tasks
Limite supérieure de la date de fin d'une tâche (au format code temporel RFC 3339) à utiliser pour filtrer. Facultatif. Par défaut, le filtre par date de fin n'est pas appliqué.
completedMin
string
Limite inférieure de la date de fin d'une tâche (au format code temporel RFC 3339) à utiliser pour filtrer. Facultatif. Par défaut, aucun filtre n'est appliqué à la date de fin.
dueMax
string
Limite supérieure de la date limite d'une tâche (au format code temporel RFC 3339) à utiliser pour filtrer. Facultatif. Par défaut, le filtre par date limite n'est pas activé.
dueMin
string
Limite inférieure de la date limite d'une tâche (au format code temporel RFC 3339) à utiliser pour filtrer. Facultatif. Par défaut, le filtre par date limite n'est pas appliqué.
maxResults
integer
Nombre maximal de tâches renvoyées sur une page. Facultatif. La valeur par défaut est 20 (valeur maximale autorisée: 100).
pageToken
string
Jeton spécifiant la page de résultats à renvoyer. Facultatif.
showCompleted
boolean
Indicateur indiquant si les tâches terminées sont renvoyées dans le résultat. Notez que showHidden doit également être défini sur "true" pour afficher les tâches terminées dans les clients propriétaires, tels que l'UI Web et les applications mobiles de Google. Facultatif. La valeur par défaut est "True".
showDeleted
boolean
Indicateur indiquant si les tâches supprimées sont renvoyées dans le résultat. Facultatif. La valeur par défaut est "False" (faux).
showHidden
boolean
Indicateur indiquant si les tâches masquées sont renvoyées dans le résultat. Facultatif. La valeur par défaut est "False" (faux).
updatedMin
string
Limite inférieure de l'heure de dernière modification d'une tâche (au format code temporel RFC 3339) à utiliser pour filtrer. Facultatif. Par défaut, le filtrage par heure de dernière modification n'est pas activé.
showAssigned
boolean
Facultatif. Indicateur indiquant si les tâches attribuées à l'utilisateur actuel sont renvoyées dans le résultat. Facultatif. La valeur par défaut est "False" (faux).
Corps de la requête
Le corps de la requête doit être vide.
Corps de la réponse
Si la requête aboutit, le corps de la réponse contient des données présentant la structure suivante :
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/07/25 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Il n'y a pas l'information dont j'ai besoin","missingTheInformationINeed","thumb-down"],["Trop compliqué/Trop d'étapes","tooComplicatedTooManySteps","thumb-down"],["Obsolète","outOfDate","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Mauvais exemple/Erreur de code","samplesCodeIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/07/25 (UTC)."],[],[],null,["# Method: tasks.list\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Query parameters](#body.QUERY_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n - [JSON representation](#body.Tasks.SCHEMA_REPRESENTATION)\n- [Authorization scopes](#body.aspect)\n- [Tasks](#Tasks)\n - [JSON representation](#Tasks.SCHEMA_REPRESENTATION)\n- [Try it!](#try-it)\n\nReturns all tasks in the specified task list. Doesn't return assigned tasks by default (from Docs, Chat Spaces). A user can have up to 20,000 non-hidden tasks per list and up to 100,000 tasks in total at a time.\n\n### HTTP request\n\n`GET https://tasks.googleapis.com/tasks/v1/lists/{tasklist}/tasks`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n| Parameters ||\n|------------|--------------------------------|\n| `tasklist` | `string` Task list identifier. |\n\n### Query parameters\n\n| Parameters ||\n|-----------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `completedMax` | `string` Upper bound for a task's completion date (as a RFC 3339 timestamp) to filter by. Optional. The default is not to filter by completion date. |\n| `completedMin` | `string` Lower bound for a task's completion date (as a RFC 3339 timestamp) to filter by. Optional. The default is not to filter by completion date. |\n| `dueMax` | `string` Upper bound for a task's due date (as a RFC 3339 timestamp) to filter by. Optional. The default is not to filter by due date. |\n| `dueMin` | `string` Lower bound for a task's due date (as a RFC 3339 timestamp) to filter by. Optional. The default is not to filter by due date. |\n| `maxResults` | `integer` Maximum number of tasks returned on one page. Optional. The default is 20 (max allowed: 100). |\n| `pageToken` | `string` Token specifying the result page to return. Optional. |\n| `showCompleted` | `boolean` Flag indicating whether completed tasks are returned in the result. Note that showHidden must also be True to show tasks completed in first party clients, such as the web UI and Google's mobile apps. Optional. The default is True. |\n| `showDeleted` | `boolean` Flag indicating whether deleted tasks are returned in the result. Optional. The default is False. |\n| `showHidden` | `boolean` Flag indicating whether hidden tasks are returned in the result. Optional. The default is False. |\n| `updatedMin` | `string` Lower bound for a task's last modification time (as a RFC 3339 timestamp) to filter by. Optional. The default is not to filter by last modification time. |\n| `showAssigned` | `boolean` Optional. Flag indicating whether tasks assigned to the current user are returned in the result. Optional. The default is False. |\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body contains data with the following structure:\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"kind\": string, \"etag\": string, \"nextPageToken\": string, \"items\": [ { object (/workspace/tasks/reference/rest/v1/tasks#Task) } ] } ``` |\n\n| Fields ||\n|-----------------|-----------------------------------------------------------------------------------------|\n| `kind` | `string` Type of the resource. This is always \"tasks#tasks\". |\n| `etag` | `string` ETag of the resource. |\n| `nextPageToken` | `string` Token used to access the next page of this result. |\n| `items[]` | `object (`[Task](/workspace/tasks/reference/rest/v1/tasks#Task)`)` Collection of tasks. |\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/tasks`\n- `https://www.googleapis.com/auth/tasks.readonly`\n\nFor more information, see the [Authorization guide](/workspace/guides/configure-oauth-consent).\n\nTasks\n-----\n\n| JSON representation |\n|----------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"kind\": string, \"etag\": string, \"nextPageToken\": string, \"items\": [ { object (/workspace/tasks/reference/rest/v1/tasks#Task) } ] } ``` |\n\n| Fields ||\n|-----------------|-----------------------------------------------------------------------------------------|\n| `kind` | `string` Type of the resource. This is always \"tasks#tasks\". |\n| `etag` | `string` ETag of the resource. |\n| `nextPageToken` | `string` Token used to access the next page of this result. |\n| `items[]` | `object (`[Task](/workspace/tasks/reference/rest/v1/tasks#Task)`)` Collection of tasks. |"]]