> ## 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 account reports

> Returns daily view, download, and profit totals.

The current backend converts the computed start date to the first day of its month. The `from` parameter is accepted but currently fails backend validation and falls back to that computed start date.




## OpenAPI

````yaml /openapi.yaml get /v1/account/reports
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/account/reports:
    get:
      tags:
        - Account
      summary: List account reports
      description: >
        Returns daily view, download, and profit totals.


        The current backend converts the computed start date to the first day of
        its month. The `from` parameter is accepted but currently fails backend
        validation and falls back to that computed start date.
      operationId: listAccountReports
      parameters:
        - name: last
          in: query
          description: >-
            Number of days used to choose the start month. The report starts on
            day one of that month. Defaults to 7.
          schema:
            type: integer
            minimum: 1
            default: 7
        - name: from
          in: query
          description: >-
            Intended start date in `YYYY-MM-DD` format. Currently ignored
            because of backend validation behavior.
          schema:
            type: string
            format: date
        - name: to
          in: query
          description: >-
            Inclusive end date in `YYYY-MM-DD` format. Defaults to the current
            server date.
          schema:
            type: string
            format: date
      responses:
        '200':
          description: Daily account reports.
          content:
            application/json:
              schema:
                type: object
                required:
                  - list
                properties:
                  list:
                    type: array
                    items:
                      $ref: '#/components/schemas/AccountReport'
        '500':
          $ref: '#/components/responses/Error'
components:
  schemas:
    AccountReport:
      type: object
      required:
        - day
        - views
        - downloads
        - profitViews
        - profitTotal
      properties:
        day:
          type: string
          format: date
        views:
          oneOf:
            - type: integer
            - type: string
        downloads:
          oneOf:
            - type: integer
            - type: string
        profitViews:
          oneOf:
            - type: number
            - type: string
        profitTotal:
          oneOf:
            - type: number
            - type: string
    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.

````