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

# Get player tournament history

> Get tournament history and performance statistics for a player



## OpenAPI

````yaml api-reference/openapi.json get /api/players/{userId}/tournaments
openapi: 3.1.0
info:
  title: Tournament Platform API
  description: >-
    Comprehensive API for managing real-time multiplayer tournaments with Game
    Platform integration. Includes both external Casino Integration APIs and
    internal Game Platform APIs.
  version: 1.0.0
  license:
    name: MIT
  contact:
    name: Tournament Platform Support
    url: https://ts.playservices.tech/
    email: support@playservices.tech
servers:
  - url: https://ts.playservices.tech/api
    description: Production server
security:
  - OperatorAPIKey: []
  - InternalAPIKey: []
paths:
  /api/players/{userId}/tournaments:
    get:
      tags:
        - Casino Integration - Results
      summary: Get player tournament history
      description: Get tournament history and performance statistics for a player
      parameters:
        - name: userId
          in: path
          required: true
          description: Player's external user ID
          schema:
            type: string
            example: USER_12345
      responses:
        '200':
          description: Player tournament history
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PlayerHistoryResponse'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
      security:
        - OperatorAPIKey: []
components:
  schemas:
    PlayerHistoryResponse:
      type: object
      properties:
        player_id:
          type: string
        external_id:
          type: string
        display_name:
          type: string
        tournament_history:
          type: object
          properties:
            data:
              type: array
              items:
                type: object
                properties:
                  tournament_id:
                    type: string
                  tournament_name:
                    type: string
                  tournament_type:
                    type: string
                  status:
                    type: string
                  started_at:
                    type: string
                    format: date-time
                  ended_at:
                    type: string
                    format: date-time
                  player_status:
                    type: string
                  points_earned:
                    type: string
                  final_position:
                    type: integer
                  total_players:
                    type: integer
        performance_statistics:
          type: object
          properties:
            total_tournaments:
              type: integer
            completed_tournaments:
              type: integer
            average_position:
              type: number
            best_position:
              type: integer
            total_points_earned:
              type: integer
    Error:
      type: object
      required:
        - error
        - message
      properties:
        error:
          type: string
        message:
          type: string
        details:
          type: object
  responses:
    Unauthorized:
      description: Authentication failed or insufficient permissions
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    OperatorAPIKey:
      type: http
      scheme: bearer
      description: >-
        Operator API key with role-based permissions (tournaments.read,
        players.write, etc.)
    InternalAPIKey:
      type: apiKey
      in: header
      name: X-Internal-Api-Key
      description: Internal API key for Game Platform integration

````