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

# Get a video

> One stock video by its `id`: its options (resolutions), author and previews.



## OpenAPI

````yaml openapi/magnific-api-v2-stock-openapi.yaml GET /v2/stock/videos/{video_id}
openapi: 3.1.0
info:
  title: Magnific API v2 — Stock
  version: 2.0.0
  description: >-
    Search, read and download stock under `/v2/stock`: images and templates,
    icons and videos (same items, licences and billing as API v1), and music and
    sound effects (free, as on the web).
servers:
  - url: https://api.magnific.com
    description: Production V2
security:
  - magnificApiKey: []
  - bearerAuth: []
tags:
  - name: Videos
    description: >-
      Generate and edit videos. Add `?dry_run=true` to get the price of a
      request first.
paths:
  /v2/stock/videos/{video_id}:
    get:
      tags:
        - Videos
      summary: Get a video
      description: |-
        The detail of one video.

        A personal token needs `api:read`.
      operationId: stock_videos_video_id
      parameters:
        - description: Video id
          example: 30955
          in: path
          name: video_id
          required: true
          schema:
            minimum: 1
            type: integer
        - description: >
            Specifies the search query language using the ISO 639-1 (2-letter

            language code) and the ISO 3166-1 (2-letter country code) for
            language variants.

            The API will use "en-US" as a default language for processing if a
            code is not

            provided, or does not exist.
          example: en-US
          in: header
          name: Accept-Language
          required: false
          schema:
            type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/Stockdetail_b2b'
                required:
                  - data
              examples:
                detail:
                  summary: Video detail
                  value:
                    data:
                      id: 70000
                      url: >-
                        https://www.magnific.com/free-video/white-t-shirts-copy-space-gray-background_15667335
                      name: Cute cat looking at the camera
                      aspect-ratio: '16:9'
                      created: '2019-01-01T00:00:00.000Z'
                      code: cute-cat-looking-camera
                      quality: 720p
                      premium: true
                      duration: '00:25'
                      author:
                        id: 23
                        name: Magnific
                        code: magnific
                        avatar: https://avatar.cdnpk.net/23.jpg
                        metas:
                          downloads: 555
                          assets: 2330000
                        slug: magnific
                      thumbnails:
                        - width: 468
                          height: 264
                          url: >-
                            https://v4.cdnpk.net/videvo_files/video/free/video0485/thumbnails/_import_61b436a9c16290.44924640_small.jpg
                          aspect-ratio: '16:9'
                        - width: 1280
                          height: 720
                          url: >-
                            https://v4.cdnpk.net/videvo_files/video/free/video0467/thumbnails/_import_615163540096e1.68968110_large.jpg
                          aspect-ratio: '16:9'
                      previews:
                        - width: 468
                          height: 264
                          url: >-
                            https://v4.cdnpk.net/videvo_files/video/free/video0485/thumbnails/_import_61b436a9c16290.44924640_small.jpg
                          aspect-ratio: '16:9'
                      active: true
                      is_ai_generated: false
                      item_subtype: footage
        '400':
          description: >-
            `validation_failed`: a parameter is not valid (`details.errors` by
            field, e.g. `query`, `cursor`, `filters.color`).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StockV2Error'
        '401':
          description: '`unauthenticated`: the token or API key is missing or not valid.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StockV2Error'
        '403':
          description: >-
            `forbidden`, `upgrade_required` (a premium asset on a plan without
            premium), `restricted_author_content`, `magnific_api_disabled`,
            `key_not_supported` or `api_key_wallet_unavailable`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StockV2Error'
        '404':
          description: '`not_found`: no such asset.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StockV2Error'
        '429':
          description: '`rate_limited`: too many requests or downloads.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StockV2Error'
        '500':
          description: '`internal_error`.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StockV2Error'
        '503':
          description: >-
            `service_unavailable`: the search engine or a dependency is down;
            retry later.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/StockV2Error'
      security:
        - magnificApiKey: []
        - bearerAuth: []
components:
  schemas:
    Stockdetail_b2b:
      example:
        aspect_ratio: '969'
        code: gorgeous-woman-stretching-neck
        created: '2000-01-23T04:56:07.000Z'
        author:
          metas:
            assets: 0
            downloads: 0
          code: merry-christmas
          name: John Doe
          id: 2147483647
          avatar: https://avatar.cdnpk.net/61668527-220726032514.jpg
          slug: merry-christmas
        fps: '25'
        active: 1
        url: >-
          https://www.magnific.com/free-video/white-t-shirts-copy-space-gray-background_15667327
        quality: 4k
        tags:
          - name: Merry Christmas
            slug: merry-christmas
          - name: Merry Christmas
            slug: merry-christmas
        duration: '00:00:28'
        explicit: 0
        premium: 0
        is_ai_generated: true
        item_subtype: footage
        name: gorgeous woman stretching neck
        previews:
          - url: >-
              https://v1.cdnpk.net/videvo_files/video/premium/video0289/watermarked/_Geometric80s30_FPpreview.mp4
            width: 100
            height: 100
            aspect_ratio: '16:9'
          - url: >-
              https://v1.cdnpk.net/videvo_files/video/premium/video0289/watermarked/_Geometric80s30_FPpreview.mp4
            width: 100
            height: 100
            aspect_ratio: '16:9'
        options:
          - id: 76989
            active: true
            width: 4096
            height: 2304
            quality: 4k
            container: mp4
            codec: AVC Coding
            bit_rate: 25.44
            size: 400
            aspect_ratio: '16:9'
            is_original: true
          - id: 76989
            active: true
            width: 4096
            height: 2304
            quality: 4k
            container: mp4
            codec: AVC Coding
            bit_rate: 25.44
            size: 400
            aspect_ratio: '16:9'
            is_original: true
        id: 99332243
        thumbnails:
          - url: https://img.b2bpic.net/free-photo/image_8353-7579.jpg
            width: 100
            height: 100
            aspect_ratio: '16:9'
          - url: https://img.b2bpic.net/free-photo/image_8353-7579.jpg
            width: 100
            height: 100
            aspect_ratio: '16:9'
      properties:
        id:
          description: schemas's id.
          example: 99332243
          minimum: 1
          type: integer
        url:
          description: Url to the video's detail page in magnific
          example: >-
            https://www.magnific.com/free-video/white-t-shirts-copy-space-gray-background_15667327
          format: uri
          type: string
        name:
          description: schemas's title.
          example: gorgeous woman stretching neck
          type: string
        created:
          description: The datetime when this video was created.
          format: date-time
          type: string
        code:
          example: gorgeous-woman-stretching-neck
          type: string
        quality:
          $ref: '#/components/schemas/Stockquality'
        premium:
          description: 1 if this video is premium. 0, otherwise.
          example: 0
          type: integer
        duration:
          example: '00:00:28'
          pattern: ^0[0-9]:[0-5][0-9]:[0-5][0-9]$
          type: string
        fps:
          description: The fps of this video
          enum:
            - '24'
            - '25'
            - '30'
            - '50'
            - '60'
            - gt60
          example: '25'
          type: string
        active:
          description: 1 if this video is active. 0, otherwise.
          example: 1
          type: integer
        explicit:
          enum:
            - 0
            - 1
          example: 0
          type: integer
        author:
          $ref: '#/components/schemas/Stockauthor-video'
        thumbnails:
          items:
            $ref: '#/components/schemas/Stockimage-with-aspect-ratio'
          minItems: 1
          type: array
        previews:
          items:
            $ref: '#/components/schemas/Stockpreview-with-aspect-ratio'
          minItems: 1
          type: array
        tags:
          items:
            $ref: '#/components/schemas/Stocktag_1'
          type: array
        options:
          items:
            $ref: '#/components/schemas/Stockoption'
          type: array
        aspect_ratio:
          $ref: '#/components/schemas/Stockaspect-ratio_2'
        is_ai_generated:
          description: True if the resource is generated by AI, false otherwise.
          example: true
          type: boolean
        item_subtype:
          $ref: '#/components/schemas/Stockitem_subtype'
      type: object
    StockV2Error:
      type: object
      required:
        - code
        - message
      properties:
        code:
          type: string
          description: >-
            Stable, for code: `validation_failed`, `unauthenticated`,
            `insufficient_credits`, `forbidden`, `upgrade_required`,
            `not_found`, `rate_limited`, `internal_error`,
            `service_unavailable`...
          example: validation_failed
        message:
          type: string
          description: For people. Never the cause of a server error.
        details:
          type: object
          description: Absent on a server error.
          properties:
            errors:
              type: object
              description: Validation messages by field.
              additionalProperties:
                type: array
                items:
                  type: string
        request_id:
          type: string
    Stockquality:
      description: The quality of this video
      enum:
        - 720p
        - 1080p
        - 2k
        - 4k
      example: 4k
      type: string
    Stockauthor-video:
      example:
        metas:
          assets: 0
          downloads: 0
        code: merry-christmas
        name: John Doe
        id: 2147483647
        avatar: https://avatar.cdnpk.net/61668527-220726032514.jpg
        slug: merry-christmas
      properties:
        id:
          maximum: 9223372036854776000
          minimum: 1
          type: integer
        name:
          example: John Doe
          minLength: 1
          type: string
        code:
          example: merry-christmas
          minLength: 1
          type: string
        avatar:
          example: https://avatar.cdnpk.net/61668527-220726032514.jpg
          format: uri
          type: string
        metas:
          $ref: '#/components/schemas/Stockauthor_video_metas'
        slug:
          example: merry-christmas
          minLength: 1
          type: string
      required:
        - avatar
        - id
        - metas
        - name
        - slug
      type: object
    Stockimage-with-aspect-ratio:
      allOf:
        - $ref: '#/components/schemas/Stockimage_1'
        - properties:
            aspect_ratio:
              $ref: '#/components/schemas/Stockaspect-ratio_2'
          required:
            - aspect_ratio
          type: object
      example:
        url: https://img.b2bpic.net/free-photo/image_8353-7579.jpg
        width: 100
        height: 100
        aspect_ratio: '16:9'
    Stockpreview-with-aspect-ratio:
      allOf:
        - $ref: '#/components/schemas/Stockpreview'
        - properties:
            aspect_ratio:
              $ref: '#/components/schemas/Stockaspect-ratio_2'
          required:
            - aspect_ratio
          type: object
      example:
        url: >-
          https://v1.cdnpk.net/videvo_files/video/premium/video0289/watermarked/_Geometric80s30_FPpreview.mp4
        width: 100
        height: 100
        aspect_ratio: '16:9'
    Stocktag_1:
      example:
        name: Merry Christmas
        slug: merry-christmas
      properties:
        slug:
          example: merry-christmas
          minLength: 1
          type: string
        name:
          description: The name of the tag.
          example: Merry Christmas
          minLength: 1
          type: string
      required:
        - name
        - slug
      type: object
    Stockoption:
      example:
        id: 76989
        active: true
        width: 4096
        height: 2304
        quality: 4k
        container: mp4
        codec: AVC Coding
        bit_rate: 25.44
        size: 400
        aspect_ratio: '16:9'
        is_original: true
      properties:
        id:
          example: 76989
          minimum: 1
          type: integer
        active:
          example: true
          type: boolean
        width:
          description: The width of the original video.
          example: 4096
          minimum: 1
          type: integer
        height:
          example: 2304
          minimum: 1
          type: integer
        quality:
          $ref: '#/components/schemas/Stockquality'
        container:
          example: mp4
          type: string
        codec:
          example: AVC Coding
          type: string
        bit_rate:
          example: 25.44
          maximum: 500000
          minimum: 1
          type: number
        size:
          example: 400
          maximum: 500000
          minimum: 1
          type: number
        aspect-ratio:
          $ref: '#/components/schemas/Stockaspect-ratio_2'
        is_original:
          description: >-
            if it is the original file uploaded by the author without any post
            processing
          example: true
          type: boolean
      required:
        - aspect_ratio
      type: object
    Stockaspect-ratio_2:
      description: The aspect ratio of this item
      enum:
        - '4:3'
        - '16:9'
        - '256:135'
        - '9:16'
        - '1:1'
      example: '969'
      type: string
    Stockitem_subtype:
      description: The subtype of the video.
      enum:
        - footage
        - motion_graphics
        - other
        - template
        - template_aep
        - template_prproj
      example: footage
      type: string
    Stockauthor_video_metas:
      example:
        assets: 0
        downloads: 0
      properties:
        downloads:
          description: The number of downloads of this author.
          minimum: 0
          type: integer
        assets:
          description: The number of assets of this author.
          minimum: 0
          type: integer
      required:
        - assets
        - downloads
      type: object
    Stockimage_1:
      properties:
        url:
          description: The url of the image.
          example: https://img.b2bpic.net/free-photo/image_8353-7579.jpg
          format: uri
          type: string
        width:
          description: The width of the image.
          example: 100
          maximum: 4096
          minimum: 100
          type: integer
        height:
          description: The height of the image.
          example: 100
          maximum: 4096
          minimum: 100
          type: integer
      required:
        - height
        - url
        - width
      type: object
    Stockpreview:
      description: Information needed to preview a resource.
      example:
        width: 300
        url: https://www.magnific.com/free-ai-image/surreal-landscape_41357833.htm
        height: 500
      properties:
        url:
          description: Resource's url.
          example: >-
            https://www.magnific.com/free-ai-image/surreal-landscape_41357833.htm
          format: uri
          type: string
        width:
          description: Resource image width.
          example: 300
          minimum: 0
          type: integer
        height:
          description: Resource image height.
          example: 500
          minimum: 0
          type: integer
      required:
        - height
        - url
        - width
      type: object
  securitySchemes:
    magnificApiKey:
      type: apiKey
      in: header
      name: x-magnific-api-key
      description: >-
        Your Magnific API key. [Learn how to obtain an API
        key](https://docs.magnific.com/quickstart)
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        A personal access token, sent as `Authorization: Bearer <token>`. [How
        to get one](/api-reference/v2/overview#get-a-personal-access-token)

````

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