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

# List videos

> Returns active videos from one folder in reverse creation order.



## OpenAPI

````yaml /openapi.yaml get /v1/videos
openapi: 3.1.0
info:
  title: Videobase API
  version: 1.0.0
  description: >
    Manage Videobase accounts, uploads, folders, videos, thumbnails, and
    subtitles.


    All operations require a Videobase API key. Header authentication is
    recommended.
servers:
  - url: https://api.videobase.com
    description: Production
security:
  - ApiKeyHeader: []
  - ApiKeyQuery: []
tags:
  - name: Account
    description: Account details and reports.
  - name: Uploads
    description: Direct and remote upload workflows.
  - name: Folders
    description: Folder organization.
  - name: Videos
    description: Video metadata and presentation settings.
  - name: Subtitles
    description: Video subtitle tracks.
paths:
  /v1/videos:
    get:
      tags:
        - Videos
      summary: List videos
      description: Returns active videos from one folder in reverse creation order.
      operationId: listVideos
      parameters:
        - name: folder
          in: query
          description: Folder ID. Use `0` or omit it for the root.
          schema:
            type: integer
            minimum: 0
            default: 0
        - name: page
          in: query
          description: One-based page number.
          schema:
            type: integer
            minimum: 1
            default: 1
        - name: perPage
          in: query
          description: Records to return per page.
          schema:
            type: integer
            minimum: 1
            default: 20
        - name: search
          in: query
          description: >-
            Case-insensitive substring matched against the video title. The
            response `pagination.total` currently ignores this filter.
          schema:
            type: string
      responses:
        '200':
          description: Paginated videos.
          content:
            application/json:
              schema:
                allOf:
                  - $ref: '#/components/schemas/PaginatedResponse'
                  - type: object
                    required:
                      - folder
                      - list
                    properties:
                      folder:
                        type: integer
                      list:
                        type: array
                        items:
                          $ref: '#/components/schemas/Video'
        '500':
          $ref: '#/components/responses/Error'
components:
  schemas:
    PaginatedResponse:
      type: object
      required:
        - pagination
      properties:
        pagination:
          $ref: '#/components/schemas/Pagination'
    Video:
      type: object
      required:
        - id
        - createdAt
        - isPublic
        - views
        - name
        - size
        - skipIntro
        - links
        - images
      properties:
        id:
          $ref: '#/components/schemas/VideoId'
        createdAt:
          type: string
          description: Creation timestamp in `YYYY-MM-DD HH:mm:ss` server time.
        isPublic:
          type: boolean
        views:
          type: integer
          minimum: 0
        name:
          type: string
        size:
          type: integer
          minimum: 0
          description: Combined source and encoded file size in bytes.
        skipIntro:
          type: integer
          minimum: 0
          description: Seconds skipped at the start of playback.
        links:
          $ref: '#/components/schemas/Links'
        images:
          $ref: '#/components/schemas/Images'
    Pagination:
      type: object
      required:
        - page
        - perPage
        - total
      properties:
        page:
          type: integer
          minimum: 1
        perPage:
          type: integer
          minimum: 1
        total:
          type: integer
          minimum: 0
    VideoId:
      type: string
      pattern: ^\w{12}$
      minLength: 12
      maxLength: 12
      description: Twelve-character Videobase video or remote-upload identifier.
      example: a1b2c3d4e5f6
    Links:
      type: object
      required:
        - download
        - embed
      properties:
        download:
          type: string
          format: uri
        embed:
          type: string
          format: uri
    Images:
      type: object
      required:
        - single
        - thumbnail
        - splash
      properties:
        single:
          type: string
          format: uri
        thumbnail:
          type: string
          format: uri
        splash:
          type: string
          format: uri
    Error:
      type: object
      required:
        - message
        - status
      properties:
        message:
          type: string
          description: Human-readable failure reason. Do not treat it as a stable enum.
        status:
          type: integer
          const: 500
  responses:
    Error:
      description: >-
        Application error. The current API uses HTTP 500 for authentication,
        validation, missing-resource, rate-limit, and server failures.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            message: File not found
            status: 500
  securitySchemes:
    ApiKeyHeader:
      type: apiKey
      in: header
      name: X-Api-Key
      description: Recommended. Your 16-character Videobase API key.
    ApiKeyQuery:
      type: apiKey
      in: query
      name: key
      description: >-
        Legacy alternative. Prefer `X-Api-Key` because query strings are
        commonly logged.

````