> ## Documentation Index
> Fetch the complete documentation index at: https://bunnynet-cb9733c2-add-address-verification-note.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Get video storage size info



## OpenAPI

````yaml https://video.bunnycdn.com/openapi/bunnynet-video-api.public.json get /library/{libraryId}/videos/{videoId}/storage
openapi: 3.0.0
info:
  title: Stream API
  termsOfService: https://bunny.net/tos
  contact:
    name: bunny.net
    url: https://docs.bunny.net
    email: support@bunny.net
  version: 1.6.1
servers:
  - url: https://video.bunnycdn.com
security: []
tags:
  - name: Manage Collections
  - name: Manage Videos
paths:
  /library/{libraryId}/videos/{videoId}/storage:
    get:
      tags:
        - Manage Videos
      summary: Get video storage size info
      operationId: Video_GetVideoStorageSize
      parameters:
        - name: libraryId
          in: path
          required: true
          description: The ID of the video library.
          schema:
            type: integer
            format: int64
          x-position: 1
        - name: videoId
          in: path
          required: true
          description: The GUID of the video.
          schema:
            type: string
          x-position: 2
      responses:
        '200':
          description: The storage size information for the video.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StatusModelOfVideoStorageSizeModel'
        '401':
          description: The request authentication failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StatusModel'
        '404':
          description: The requested video was not found
        '408':
          description: Request timeout
        '429':
          description: Rate limit exceeded
        '500':
          description: Internal Server Error
      security:
        - AccessKey: []
components:
  schemas:
    StatusModelOfVideoStorageSizeModel:
      allOf:
        - $ref: '#/components/schemas/StatusModel'
        - type: object
          additionalProperties: false
          properties:
            data:
              description: >-
                The response payload. Some endpoints also populate this with
                error details when Success is false — see the endpoint's own
                response documentation.
              nullable: true
              oneOf:
                - $ref: '#/components/schemas/VideoStorageSizeModel'
    StatusModel:
      type: object
      additionalProperties: false
      properties:
        success:
          type: boolean
          description: Determines if the request was successful
        message:
          type: string
          description: >-
            Human-readable message describing the result, typically populated
            with error details when Success is false.
          nullable: true
        statusCode:
          type: integer
          description: The HTTP status code corresponding to the result of the request.
          format: int32
    VideoStorageSizeModel:
      type: object
      additionalProperties: false
      properties:
        encoded:
          type: object
          description: >-
            Size in bytes of each encoded rendition, keyed by
            "{resolution}-{codec}" (e.g. "720p-h264"). Videos encoded before the
            current storage layout can also report legacy "{width}x{height}"
            resolutions, e.g. "1920x1080-h264".
          nullable: true
          additionalProperties:
            $ref: '#/components/schemas/CodecRenditionSizeModel'
        thumbnails:
          type: integer
          description: Size in bytes of the video's JPEG thumbnails.
          format: int64
        previews:
          type: integer
          description: Size in bytes of the video's GIF and WEBP previews.
          format: int64
        originals:
          type: integer
          description: Size in bytes of the original uploaded video file.
          format: int64
        mp4Fallback:
          type: integer
          description: Size in bytes of the MP4 fallback rendition.
          format: int64
        miscellaneous:
          type: integer
          description: >-
            Size in bytes of everything else: playlists, manifests, captions,
            audio extracts, etc.
          format: int64
        calculatedAt:
          type: string
          description: Timestamp when this storage size was calculated (UTC).
          format: date-time
    CodecRenditionSizeModel:
      type: object
      additionalProperties: false
      properties:
        codec:
          type: string
          description: >-
            Output codec name as used by the storage layout (e.g. "h264",
            "hevc", "vp9", "av1"). Note that h264 is reported as "x264" in
            VideoModel.OutputCodecs.
          nullable: true
        resolution:
          type: string
          description: >-
            Resolution of this rendition (e.g. "720p", "1080p"), or a legacy
            "{width}x{height}" value for older videos.
          nullable: true
        size:
          type: integer
          description: Size of this rendition in bytes.
          format: int64
  securitySchemes:
    AccessKey:
      type: apiKey
      description: AccessKey based authentication
      name: AccessKey
      in: header

````