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

# Get Tournaments

> List tournaments.

Lookup mode: `sportId` OR `tournamentIds`.

Default: if neither is provided, the API uses `sportId=11`.



## OpenAPI

````yaml /api-reference/openapi.json get /tournaments
openapi: 3.1.0
info:
  title: Odds API v5
  version: 5.0.0
  description: High-performance odds API backed by Valkey + Supabase RPC discovery.
servers:
  - url: https://v5.oddspapi.io/en
security:
  - ApiKeyAuth: []
tags:
  - name: common
  - name: fixtures
  - name: fixtures/odds
  - name: futures
  - name: futures/odds
  - name: mapping
  - name: media
  - name: settlement
paths:
  /tournaments:
    get:
      tags:
        - common
      summary: Get Tournaments
      description: |-
        List tournaments.

        Lookup mode: `sportId` OR `tournamentIds`.

        Default: if neither is provided, the API uses `sportId=11`.
      operationId: get_tournaments__lang__tournaments_get
      parameters:
        - name: sportId
          in: query
          required: false
          schema:
            anyOf:
              - type: integer
              - type: 'null'
          description: Single sport ID.
        - name: tournamentIds
          in: query
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
          description: Comma- or space-separated tournament IDs.
      responses:
        '200':
          description: Returns Tournament[]
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TournamentList'
              examples:
                example:
                  summary: Tournament list
                  value:
                    - tournamentId: 132
                      sportId: 11
                      tournamentSlug: nba
                      categorySlug: usa
                      tournamentName: NBA
                      categoryName: USA
                    - tournamentId: 138
                      sportId: 11
                      tournamentSlug: euroleague
                      categorySlug: international
                      tournamentName: Euroleague
                      categoryName: international
        '400':
          $ref: '#/components/responses/ApiError'
        '401':
          $ref: '#/components/responses/ApiError'
        '403':
          $ref: '#/components/responses/ApiError'
        '422':
          $ref: '#/components/responses/ValidationError'
        '429':
          $ref: '#/components/responses/ApiError'
components:
  schemas:
    TournamentList:
      type: array
      items:
        $ref: '#/components/schemas/Tournament'
    Tournament:
      type: object
      properties:
        tournamentId:
          type: integer
          description: >-
            Numeric tournament identifier (embedded zero-padded to 6 digits
            inside fixture/future IDs).
        sportId:
          type: integer
          description: Sport the tournament belongs to.
        tournamentSlug:
          type:
            - string
            - 'null'
          description: URL-safe tournament slug.
        categorySlug:
          type:
            - string
            - 'null'
          description: >-
            URL-safe slug of the category (usually the country/region) the
            tournament belongs to.
        tournamentName:
          type: string
          description: Tournament display name, translated per the request language prefix.
        categoryName:
          type:
            - string
            - 'null'
          description: Category display name, translated per the request language prefix.
      required:
        - tournamentId
        - sportId
        - tournamentName
      additionalProperties: true
    Error:
      type: object
      description: Concrete error format returned by this API (no FastAPI detail wrapper).
      properties:
        error:
          type: integer
          description: HTTP status code
        message:
          type: string
          description: Human-readable error message
        details:
          description: Optional extra details (string/object/array depending on the error).
        reason:
          type: string
          description: Machine-readable reason code
      required:
        - error
        - message
      additionalProperties: true
    HTTPValidationError:
      title: HTTPValidationError
      type: object
      properties:
        detail:
          title: Detail
          type: array
          items:
            $ref: '#/components/schemas/ValidationError'
          description: List of validation errors.
    ValidationError:
      title: ValidationError
      type: object
      required:
        - loc
        - msg
        - type
      properties:
        loc:
          title: Location
          type: array
          items:
            anyOf:
              - type: string
              - type: integer
          description: Location of the invalid parameter (path segments).
        msg:
          title: Message
          type: string
          description: Human-readable validation message.
        type:
          title: Error Type
          type: string
          description: Machine-readable error type.
  responses:
    ApiError:
      description: API error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            invalid_filters:
              summary: Invalid filters
              value:
                error: 400
                message: Invalid filters.
                reason: invalid_filters
            invalid_api_key:
              summary: Invalid apiKey
              value:
                error: 401
                message: invalid apiKey
                reason: invalid_api_key
            rate_limited:
              summary: Rate limited
              value:
                error: 429
                message: rate limit exceeded
                reason: rate_limited
                retryAfterSec: 1
    ValidationError:
      description: Validation Error (framework-level)
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/HTTPValidationError'
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: query
      name: apiKey
      description: Your API key (query-based auth for v5).

````