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

# Get Videos

> Returns all videos from the system that the user has access to



## OpenAPI

````yaml GET /video
openapi: 3.1.0
info:
  title: PN Player API documentation
  description: >-
    A sample API that uses a plant store as an example to demonstrate features
    in the OpenAPI specification
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.pnplayer.com/v1/api
security:
  - bearerAuth: []
paths:
  /video:
    get:
      description: Returns all videos from the system that the user has access to
      parameters:
        - name: page
          in: query
          description: The page number to retrieve (used for pagination).
          schema:
            type: integer
            format: int32
            minimum: 1
        - name: search
          in: query
          description: Keyword to filter videos by title.
          schema:
            type: string
      responses:
        '200':
          description: Videos response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Videos'
        '400':
          description: Unexpected error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Videos:
      required:
        - name
      type: object
      properties:
        totalItems:
          type: integer
          description: Total number of items
        currentPage:
          type: integer
          description: Current page number
        itemsPerPage:
          type: integer
          description: Number of items per page
        items:
          type: array
          description: List of videos
          items:
            $ref: '#/components/schemas/Video'
        totalVideos:
          type: integer
          description: Total number of videos
    Error:
      required:
        - error
        - message
      type: object
      properties:
        error:
          type: integer
          format: int32
        message:
          type: string
    Video:
      type: object
      properties:
        videoId:
          type: string
          description: Unique identifier of the video
        title:
          type: string
          description: Title of the video
        dateUploaded:
          type: string
          format: date-time
          description: Upload date of the video
        encodeProgress:
          type: number
          description: Encoding progress percentage
        status:
          type: number
          description: Current status code of the video
        length:
          type: number
          description: Length of the video (in seconds)
        storageSize:
          type: string
          description: Storage size of the video
        hlsUrl:
          type: string
          description: HLS streaming URL
        preview:
          type: string
          description: Preview thumbnail URL
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````