> ## Documentation Index
> Fetch the complete documentation index at: https://growi.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Get video analysis

> An analysis's status and stage progress, its estimated finish time while it's unfinished, and its result once it's ready: labels, transcript, measures, quality and frame images. Any full-access key of your organization can read it. Doesn't count toward your rate limits.

> [!NOTE]
>
> `result` is `null` until `status` is `ready`. Frame images are kept for 30 days
> (`frames_expire_at`). After that, `status` reads `expired`, `result.frames` is empty
> and `result.frames_expired` is `true`, but the rest of the result stays readable.

> [!NOTE]
>
> `result.measures` and `result.quality` hold their values directly, such as
> `result.measures.duration_s`. Every field of the result, with an example, is in
> [results](https://growi.mintlify.site/essentials/video-analysis.md#results).

> [!NOTE]
>
> `eta_seconds` and `eta_at` are an estimate, not a promise, and are only present
> while the analysis is `queued` or `processing`. Either can be `null` when there's
> no estimate.


## OpenAPI

````yaml GET /video_analyses/{id}
openapi: 3.0.1
info:
  title: Growi API
  description: >-
    API documentation for Growi platform, showcasing the public tracking event
    endpoint
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.growi.io/api/public/v1
security:
  - bearerAuth: []
paths:
  /video_analyses/{id}:
    get:
      summary: Get video analysis
      description: >-
        An analysis's status and stage progress, its estimated finish time while
        it's unfinished, and its result once it's ready: labels, transcript,
        measures, quality and frame images. Any full-access key of your
        organization can read it. Doesn't count toward your rate limits.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: analysis
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: object
                    properties:
                      id:
                        type: string
                        format: uuid
                      status:
                        type: string
                        enum:
                          - queued
                          - processing
                          - ready
                          - failed
                          - expired
                        description: >-
                          `expired`: ready, and its frame images are past their
                          30 days (the result stays)
                      external_id:
                        type: string
                        nullable: true
                        description: Your reference, as sent
                      video_length_s:
                        type: number
                        nullable: true
                      submitted_at:
                        type: string
                        format: date-time
                      completed_at:
                        type: string
                        format: date-time
                        nullable: true
                      frames_expire_at:
                        type: string
                        format: date-time
                        nullable: true
                      error_code:
                        type: string
                        nullable: true
                        description: Set when status is failed
                      eta_seconds:
                        type: integer
                        nullable: true
                        description: >-
                          Estimated seconds until the analysis is finished (an
                          estimate, not a promise). Only while queued or
                          processing; null when no estimate is available.
                      eta_at:
                        type: string
                        format: date-time
                        nullable: true
                        description: The same estimate as an instant (UTC).
                      stages:
                        type: array
                        items:
                          type: object
                          properties:
                            stage:
                              type: string
                            state:
                              type: string
                            started_at:
                              type: string
                              format: date-time
                              nullable: true
                            finished_at:
                              type: string
                              format: date-time
                              nullable: true
                      result:
                        type: object
                        nullable: true
                        description: Present when status is ready or expired
                        properties:
                          labels:
                            type: object
                            nullable: true
                            properties:
                              status:
                                type: string
                                description: >-
                                  ok, or partial when some labels could not be
                                  set
                              schema:
                                type: integer
                                description: Version of the label set
                              missing:
                                type: array
                                items:
                                  type: string
                                description: Labels that could not be set
                              attrs:
                                type: object
                                nullable: true
                                description: >-
                                  The labels: hook, format, niche, tone, style,
                                  tags, products, brands, moments, summary,
                                  description and the other attributes of the
                                  video
                          transcript:
                            type: object
                            nullable: true
                            properties:
                              status:
                                type: string
                              language:
                                type: string
                                nullable: true
                              text:
                                type: string
                                nullable: true
                              words:
                                type: integer
                                nullable: true
                              segments:
                                type: array
                                items:
                                  type: object
                                  properties:
                                    start_s:
                                      type: number
                                    end_s:
                                      type: number
                                    text:
                                      type: string
                          measures:
                            type: object
                            nullable: true
                            description: >-
                              Timing and pacing: duration_s, aspect, has_audio,
                              has_speech, word_count, words_per_min,
                              speech_ratio, silence_ratio, sound_bed_ratio,
                              first_word_s, first_cut_s, hook_scene_s,
                              scene_count, cuts_per_10s, loudness_lufs,
                              spoken_hook, status
                          quality:
                            type: object
                            nullable: true
                            description: >-
                              Picture and sound: the source size, fps and
                              bitrates, luma, contrast, saturation,
                              colorfulness, warmth, Lab, shadow and highlight
                              shares, sharpness, blur, noise, motion and
                              steadiness, the same for the hook, and audio peak,
                              noise floor, speech-to-noise and clipping, status
                          frames:
                            type: array
                            items:
                              type: object
                              properties:
                                'n':
                                  type: integer
                                kind:
                                  type: string
                                  enum:
                                    - scene
                                    - key
                                t_s:
                                  type: number
                                  description: Seconds into the video
                                width:
                                  type: integer
                                  nullable: true
                                height:
                                  type: integer
                                  nullable: true
                                url:
                                  type: string
                                  description: >-
                                    GET it with your API key
                                    (/video_analyses/{id}/frames/{n})
                            description: Empty once the images expired
                          frames_expired:
                            type: boolean
                    required:
                      - id
                      - status
                      - submitted_at
                      - stages
                required:
                  - data
        '401':
          description: Missing or invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiCodedError'
        '403':
          description: >-
            The key is read-only (viewer), wasn't created by a user, or its user
            was deleted. Use a full-access key created by a user
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiCodedError'
        '404':
          description: '`not_found`: no analysis with this id in your organization'
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
                required:
                  - error
components:
  schemas:
    ApiCodedError:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          description: What went wrong
        code:
          type: string
          description: >-
            Machine-readable error code. Missing on authentication and
            rate-limit errors
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.