---
title: "Browse the container tree"
method: GET
path: "/container/tree"
tags: ["Raw Search"]
---

# Browse the container tree

`GET /container/tree`

List entries located under a given prefix within a container.

Pagination uses `page`/`page_size`.

Uniform response: { items, total, page, page_size }.

## Query parameters

- `container_id` integer, required — Container identifier.
- `prefix` string — folder prefix, ex: 'db/users' ('' = root of container)
- `page` integer — Page number (starts at 1).
- `page_size` integer — Items per page (1–1000, default 200).

## Response `200`

Entries listed successfully.

- ContainerTreeResponse
  - `items` TreeEntry[], required — Entries located under the requested prefix.
    - `entry_path` string, required — Entry path inside the container.
    - `entry_name` string, nullable — Base name of the entry, when present.
    - `ext` string, nullable — File extension for the entry.
    - `size_bytes` integer, nullable — Size of the entry in bytes, when known.
    - `mtime` string, nullable — Last modification timestamp.
  - `total` integer, required — Total entries under the prefix.
  - `page` integer, required — Requested page index (1-based).
  - `page_size` integer, required — Maximum number of entries returned in this response.
  - `container_id` string, required — Identifier of the container that was browsed.
  - `prefix` string, required — Folder prefix used for the listing.

## Other responses

- `401` — Authentication required, or invalid/expired API key.
- `403` — Account banned, or pending email verification.
- `422` — Validation Error
- `429` — Rate limit exceeded. See Retry-After / X-RateLimit-* headers.
- `500` — Search query failed.
- `503` — Raw search under maintenance, or public API temporarily disabled.

---

[API](https://skmtc.dev/leakradar/apis/leakradar-io-api.md) · [All operations](https://skmtc.dev/leakradar/apis/leakradar-io-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/leakradar/leakradar-io-api/revisions/82a99c608e1a/schema)
