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

# Public events



## OpenAPI

````yaml https://statistics.1up.vision/openapi.json get /v1/events/public
openapi: 3.1.0
info:
  title: Vision Stats API
  version: 1.0.0
  description: >-
    REST API for accessing Twitch streamer analytics, stream summaries, partner
    data, and events. All endpoints are read-only and powered by Cloudflare
    Workers + Hyperdrive.
  contact:
    name: Vision Stats
    url: https://1up.vision
servers:
  - url: http://localhost:8787
    description: Local development
security:
  - BearerAuth: []
tags:
  - name: Meta
    description: Operational endpoints
  - name: Streamer
    description: Streamer level information
  - name: Streams
    description: Individual stream analytics
  - name: Leaderboard
    description: Aggregated leaderboards
  - name: Partners
    description: Sponsor and partner information
  - name: Events
    description: Public events
paths:
  /v1/events/public:
    get:
      tags:
        - Events
      summary: Public events
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/EventSummary'
        '401':
          description: Missing or invalid bearer token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Rate limited
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Failed to fetch events
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    EventSummary:
      type: object
      properties:
        id:
          type: string
        title:
          type: string
        avg_viewers:
          type: integer
          nullable: true
        peak_viewers:
          type: integer
          nullable: true
        started_at:
          type: string
          format: date-time
        ended_at:
          type: string
          format: date-time
          nullable: true
        channels:
          type: array
          items:
            type: string
          nullable: true
        logo_url:
          type: string
          format: uri
          nullable: true
        user_id:
          type: string
          nullable: true
        is_public:
          type: boolean
      additionalProperties: true
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
      required:
        - error
      additionalProperties: false
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: Token
      description: >-
        Optional bearer token enforced when the Worker is configured with an API
        token.

````