Canonical: https://weaveos.com/reference/google-chat/list-spaces

1. [Software capabilities](https://weaveos.com/reference)
2. /[Google Chat](https://weaveos.com/reference/google-chat)
3. /How to list Google Chat spaces

[![](https://weaveos.com/reference/logos/google-chat.svg)Google Chat](https://weaveos.com/reference/google-chat)

# How to list Google Chat spaces

Call spaces.list for a page of spaces the caller belongs to. Use Google's Python client to iterate the same results in an application.

Documentation reviewed November 27, 2026 · 2 methods with sources

## Ways to do it

1. [1API: GET /v1/spaces](https://weaveos.com/reference/google-chat/list-spaces#method-1)
2. [2SDK: Python ChatServiceClient.list\_spaces](https://weaveos.com/reference/google-chat/list-spaces#method-2)

API

### GET /v1/spaces

List spaces the authenticated caller belongs to. Use filter to request named spaces and nextPageToken to retrieve more results.

[Read source: Google Chat spaces.list REST reference](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces/list)

- Requirements

  The Google Chat API enabled and a user OAuth token with https\://www\.googleapis.com/auth/chat.spaces.readonly for this read-only example.

- Limitations

  Pages default to at most 100 spaces and cap at 1,000. Keep the filter the same when using a page token.

Example shell

Copy

```
curl --fail --get -H "Authorization: Bearer $GOOGLE_CHAT_TOKEN" \
  --data-urlencode 'filter=spaceType = "SPACE"' --data-urlencode 'pageSize=100' \
  https://chat.googleapis.com/v1/spaces
```

SDK

### Python ChatServiceClient.list\_spaces

Send a ListSpacesRequest and iterate the returned pager to read matching spaces from successive pages.

[Read source: Google Chat list spaces guide and Python samples](https://developers.google.com/workspace/chat/list-spaces)

- Requirements

  The google-apps-chat package, the Google Chat API enabled, and authorized user credentials with https\://www\.googleapis.com/auth/chat.spaces.readonly.

- Limitations

  The pager only lists spaces visible to the authenticated user. Iterating across results can make multiple requests.

Example text

Copy

```
from google.apps import chat_v1

# credentials is an authorized user OAuth credential.
client = chat_v1.ChatServiceClient(credentials=credentials)
request = chat_v1.ListSpacesRequest(filter='space_type = "SPACE"', page_size=100)
for space in client.list_spaces(request=request):
    print(space.name)
```

## More from Google Chat

[View all 1 Google Chat tasks](https://weaveos.com/reference/google-chat)

## The same task in other apps

- [![](https://weaveos.com/reference/logos/google-cloud-storage.svg)Google Cloud Storage](https://weaveos.com/reference/google-cloud-storage)

  ### [List object generations in Google Cloud Storage](https://weaveos.com/reference/google-cloud-storage/list-object-generations)

  Use the JSON API or gcloud storage ls to inspect object versions and generations in a bucket. Keep the version flag explicit when reconciling historical objects.

  API, CLI

- [GAGoogle Artifact Registry](https://weaveos.com/reference/google-artifact-registry)

  ### [List Docker image metadata in Google Artifact Registry](https://weaveos.com/reference/google-artifact-registry/list-docker-images)

  List image digests, tags, and update metadata in one repository without downloading image content.

  API, CLI

- [GSGoogle Secret Manager](https://weaveos.com/reference/google-secret-manager)

  ### [List Google Secret Manager metadata without reading payloads](https://weaveos.com/reference/google-secret-manager/list-secret-metadata)

  Inventory secret resource names, labels, create times, and replication metadata while deliberately avoiding secret version access.

  API, CLI

- [![](https://weaveos.com/reference/logos/google-forms.svg)Google Forms](https://weaveos.com/reference/google-forms)

  ### [List Google Forms responses](https://weaveos.com/reference/google-forms/list-form-responses)

  Use the Forms API when a pipeline needs response data or a timestamp filter. Download a CSV from the Forms interface for a one-off handoff.

  API, Interface
