cURL
curl --request GET \ --url https://api.gcore.com/streaming/directories/tree \ --header 'Authorization: <api-key>'
{ "tree": [ { "id": 100, "name": "New series", "parent_id": null, "items_count": 2, "created_at": "2024-07-01T18:00:00Z", "updated_at": "2024-07-01T18:00:00Z", "descendants": [ { "id": 101, "name": "New series, Season 1", "parent_id": 100, "items_count": 12, "created_at": "2024-07-01T18:10:00Z", "updated_at": "2024-07-01T18:10:00Z", "descendants": [] } ] } ] }
Tree structure of directories. This endpoint returns hierarchical data about directories in video hosting.
API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef
apikey
apikey 1234$abcdef
Successful
Show child attributes
Was this page helpful?