---
title: "Get list of directories"
method: GET
path: "/streaming/directories/tree"
tags: ["Directories"]
---

# Get list of directories

`GET /streaming/directories/tree`

Tree structure of directories. 

This endpoint returns hierarchical data about directories in video hosting.

## Response `200`

Successful

- DirectoriesTree
  - `tree` DirectoryBase[]
    - `id` integer — ID of the directory
    - `name` string — Title of the directory
    - `parent_id` integer — ID of a parent directory. "null" if it's in the root.
    - `items_count` integer — Number of objects in this directory. Counting files and folders. The quantity is calculated only at one level (not recursively in all subfolders).
    - `created_at` string — Time of creation. Datetime in ISO 8601 format.
    - `updated_at` string — Time of last update of the directory entity. Datetime in ISO 8601 format.

---

[API](https://skmtc.dev/g-core/apis/gcore-openapi.md) · [All operations](https://skmtc.dev/g-core/apis/gcore-openapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/g-core/gcore-openapi/revisions/09e652815095/schema)
