---
title: "GET /b/{bucket}/folders"
method: GET
path: "/b/{bucket}/folders"
tags: ["folders"]
---

# GET /b/{bucket}/folders

`GET /b/{bucket}/folders`

Retrieves a list of folders matching the criteria. Only applicable to buckets with hierarchical namespace enabled.

## Path parameters

- `bucket` string, required

## Query parameters

- `delimiter` string
- `endOffset` string
- `pageSize` integer
- `pageToken` string
- `prefix` string
- `startOffset` string

## Response `200`

Successful response

---

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