Skip to main content
GET
/
streaming
/
directories
/
tree
Python
import os
from gcore import Gcore

client = Gcore(
    api_key=os.environ.get("GCORE_API_KEY"),  # This is the default and can be omitted
)
directories_tree = client.streaming.directories.get_tree()
print(directories_tree.tree)
{
  "tree": [
    {
      "id": 123,
      "name": "<string>",
      "parent_id": 123,
      "items_count": 123,
      "created_at": "<string>",
      "updated_at": "<string>",
      "descendants": "<array>"
    }
  ]
}

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Response

200 - application/json

Successful

tree
object[]