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

# Get league information

> Fetch information about supported sports leagues, including available endpoints and team counts



## OpenAPI

````yaml openapi.json get /league-info
openapi: 3.1.0
info:
  title: Polyrouter API
  version: 2.0.0
  description: >-
    Unified API for prediction market platforms (Polymarket, Kalshi, Limitless,
    Manifold)
  contact:
    name: Polyrouter
    url: https://polyrouter.io
servers:
  - url: https://api-v2.polyrouter.io
    description: Production
security:
  - apiKey: []
tags:
  - name: Health
    description: Health check and API info
  - name: Markets
    description: Prediction market operations
  - name: Events
    description: Event operations
  - name: Series
    description: Series operations
  - name: Platforms
    description: Platform information
  - name: Search
    description: Search across platforms
  - name: Trades
    description: Historical trades data
  - name: Orderbook
    description: Orderbook data (real-time and historical)
  - name: Sports
    description: Sports betting markets - games, awards, futures, and league info
  - name: Profile
    description: User profiles, trading metrics, and trade history
paths:
  /league-info:
    get:
      tags:
        - Sports
      summary: Get league information
      description: >-
        Fetch information about supported sports leagues, including available
        endpoints and team counts
      operationId: getLeagueInfo
      parameters:
        - schema:
            allOf:
              - $ref: '#/components/schemas/League'
              - description: >-
                  Specific league to query (optional, returns all if not
                  specified)
          required: false
          name: league
          in: query
        - schema:
            type: string
            description: Include team information in response
            example: 'true'
          required: false
          name: include_teams
          in: query
      responses:
        '200':
          description: League information
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LeagueInfoResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: League not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - apiKey: []
components:
  schemas:
    League:
      type: string
      enum:
        - nfl
        - nba
        - nhl
        - mlb
      description: League to query (required)
    LeagueInfoResponse:
      anyOf:
        - type: object
          properties:
            data:
              $ref: '#/components/schemas/LeagueInfo'
            meta:
              type: object
              properties:
                request_time:
                  type: number
                  example: 50
              required:
                - request_time
          required:
            - data
            - meta
        - type: object
          properties:
            leagues:
              type: array
              items:
                $ref: '#/components/schemas/LeagueInfo'
            meta:
              type: object
              properties:
                request_time:
                  type: number
                  example: 50
              required:
                - request_time
          required:
            - leagues
            - meta
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              example: NOT_FOUND
            message:
              type: string
              example: Resource not found
            timestamp:
              type: string
              format: date-time
              example: '2025-01-01T00:00:00.000Z'
          required:
            - code
            - message
            - timestamp
      required:
        - error
    LeagueInfo:
      type: object
      properties:
        id:
          type: string
          example: nfl
        name:
          type: string
          example: National Football League
        abbreviation:
          type: string
          example: NFL
        sport:
          type: string
          example: Football
        season:
          type: object
          properties:
            year:
              type: number
              example: 2024
            start_date:
              type: string
              example: '2024-09-05'
            end_date:
              type: string
              example: '2025-02-09'
          required:
            - year
            - start_date
            - end_date
        endpoints:
          type: object
          properties:
            awards:
              type: boolean
            futures:
              type: boolean
            games:
              type: boolean
            list_games:
              type: boolean
            list_awards:
              type: boolean
            list_futures:
              type: boolean
          required:
            - awards
            - futures
            - games
            - list_games
            - list_awards
            - list_futures
        counts:
          type: object
          properties:
            teams:
              type: number
              example: 32
            awards:
              type: number
              example: 10
            futures:
              type: number
              example: 15
          required:
            - teams
            - awards
            - futures
        status:
          type: string
          enum:
            - operational
            - limited
          example: operational
        teams:
          type: array
          items:
            $ref: '#/components/schemas/TeamInfo'
      required:
        - id
        - name
        - abbreviation
        - sport
        - season
        - endpoints
        - counts
        - status
    TeamInfo:
      type: object
      properties:
        polyrouter_id:
          type: string
          example: nfl_kc
        name:
          type: string
          example: Kansas City Chiefs
        abbreviation:
          type: string
          example: KC
        city:
          type: string
          example: Kansas City
        state:
          type: string
          example: Missouri
        conference:
          type: string
          example: AFC
        division:
          type: string
          example: West
        platform_ids:
          $ref: '#/components/schemas/TeamPlatformIds'
        metadata:
          type: object
          properties:
            logo_url:
              type: string
            colors:
              type: array
              items:
                type: string
            founded:
              type: number
            stadium:
              type: string
          additionalProperties:
            nullable: true
      required:
        - polyrouter_id
        - name
        - abbreviation
        - city
        - platform_ids
        - metadata
    TeamPlatformIds:
      type: object
      properties:
        polymarket:
          type: string
        kalshi:
          type: string
        prophetx:
          type: string
        novig:
          type: string
        sxbet:
          type: string
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: X-API-Key
      description: API key for authentication

````