# Videos ## Storage use `stream.videos.storage_usage(VideoStorageUsageParams**kwargs) -> VideoStorageUsageResponse` **get** `/accounts/{account_id}/stream/storage-usage` Returns information about an account's storage use. ### Parameters - `account_id: str` The account identifier tag. - `creator: Optional[str]` A user-defined identifier for the media creator. ### Returns - `class VideoStorageUsageResponse: …` - `creator: Optional[str]` A user-defined identifier for the media creator. - `total_storage_minutes: Optional[int]` The total minutes of video content stored in the account. - `total_storage_minutes_limit: Optional[int]` The storage capacity alloted for the account. - `video_count: Optional[int]` The total count of videos associated with the account. ### Example ```python import os from cloudflare import Cloudflare client = Cloudflare( api_token=os.environ.get("CLOUDFLARE_API_TOKEN"), # This is the default and can be omitted ) response = client.stream.videos.storage_usage( account_id="023e105f4ecef8ad9ca31a8372d0c353", ) print(response.video_count) ``` #### Response ```json { "errors": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "messages": [ { "code": 1000, "message": "message", "documentation_url": "documentation_url", "source": { "pointer": "pointer" } } ], "success": true, "result": { "creator": "creator-id_abcde12345", "totalStorageMinutes": 0, "totalStorageMinutesLimit": 0, "videoCount": 0 } } ``` ## Domain Types ### Video Storage Usage Response - `class VideoStorageUsageResponse: …` - `creator: Optional[str]` A user-defined identifier for the media creator. - `total_storage_minutes: Optional[int]` The total minutes of video content stored in the account. - `total_storage_minutes_limit: Optional[int]` The storage capacity alloted for the account. - `video_count: Optional[int]` The total count of videos associated with the account.