> For the complete documentation index, see [llms.txt](https://docs.planetcrust.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.planetcrust.com/human-connections/google/google-tasks-individual/query-get-tasks-by-list.md).

# Query: Get Tasks by List

<p align="center"><a class="button primary" data-icon="circle-caret-right">Try @Human</a><a class="button primary" data-icon="check">Buy @Human Subscriptions</a><a class="button primary" data-icon="comments">Join @Human Community</a></p>

<figure><img src="/files/xtBRH49mqXsj1Nocn49x" alt="" width="188"><figcaption></figcaption></figure>

<p align="center">The Get Tasks by List query retrieves all tasks from a specified task list.</p>

{% embed url="<https://www.youtube.com/watch?v=CyuUuaBSZzA>" %}

#### Example User Story

I want to retrieve tasks from a specific task list in Google Tasks so that I can view and manage my tasks efficiently.

#### Fields

| Field Name    | Field Type | Required | Description                                                           |
| ------------- | ---------- | -------- | --------------------------------------------------------------------- |
| taskListId    | String     | Yes      | The ID of the task list to retrieve tasks from.                       |
| maxResults    | Integer    | No       | Maximum number of tasks to return in one page. Default is 100.        |
| showCompleted | Boolean    | No       | Whether to include completed tasks in the response. Default is false. |
| showHidden    | Boolean    | No       | Whether to include hidden tasks in the response. Default is false.    |

### Related Connections

[Google Tasks](/human-connections/google/google-tasks-individual.md)

### Related Automations

Example link

### Code (Apache v2.0): Operation

```
{
  "handle": "get-tasks-by-list",
  "state": "inDev",
  "meta": {
    "short": "Get Tasks by List",
    "description": "Retrieves tasks from a specified task list in Google Tasks."
  },
  "input": [
    {
      "name": "taskListId",
      "type": "String",
      "required": true,
      "meta": {
        "description": "The ID of the task list to retrieve tasks from."
      }
    },
    {
      "name": "maxResults",
      "type": "Integer",
      "required": false,
      "meta": {
        "description": "Maximum number of tasks to return in one page. Optional. Default is 100.",
        "default": "100"
      }
    },
    {
      "name": "showCompleted",
      "type": "Boolean",
      "required": false,
      "meta": {
        "description": "Whether to include completed tasks in the response. Optional. Default is false.",
        "default": "false"
      }
    },
    {
      "name": "showHidden",
      "type": "Boolean",
      "required": false,
      "meta": {
        "description": "Whether to include hidden tasks in the response. Optional. Default is false.",
        "default": "false"
      }
    }
  ],
  "output": [
    {
      "name": "tasks",
      "type": "Array",
      "selector": ["items"],
      "meta": {
        "description": "List of tasks retrieved from the specified task list."
      }
    }
  ],
  "steps": [
    {
      "type": "http",
      "http": {
        "method": "GET",
        "path": "/tasks/v1/lists/{{taskListId}}/tasks",
        "queryParams": {
          "maxResults": "{{maxResults}}",
          "showCompleted": "{{showCompleted}}",
          "showHidden": "{{showHidden}}"
        },
        "headers": {
          "Content-Type": "application/json"
        }
      }
    }
  ]
}

```

<p align="center"><a class="button primary" data-icon="square-caret-right">Try @Human</a><a class="button primary" data-icon="check">Buy @Human Subscription</a><a class="button primary" data-icon="comments">Join @Human Community</a></p>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.planetcrust.com/human-connections/google/google-tasks-individual/query-get-tasks-by-list.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
