> ## 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 game by ID

> Fetch a single game by its ID with market data from all platforms



## OpenAPI

````yaml openapi.json get /games/{id}
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:
  /games/{id}:
    get:
      tags:
        - Sports
      summary: Get game by ID
      description: Fetch a single game by its ID with market data from all platforms
      operationId: getGameById
      parameters:
        - schema:
            type: string
            description: 'Game ID (format: {Away}v{Home}{YYYYMMDD}@{LEAGUE})'
            example: KCvSF20250209@NFL
          required: true
          name: id
          in: path
        - schema:
            allOf:
              - $ref: '#/components/schemas/SportsPlatform'
              - description: Filter by platform
          required: false
          name: platform
          in: query
        - schema:
            $ref: '#/components/schemas/SportsMarketType'
          required: false
          name: market_type
          in: query
        - schema:
            $ref: '#/components/schemas/OddsFormat'
          required: false
          name: odds_format
          in: query
      responses:
        '200':
          description: Game details
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GameResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Game not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - apiKey: []
components:
  schemas:
    SportsPlatform:
      type: string
      enum:
        - polymarket
        - kalshi
        - prophetx
        - novig
        - sxbet
    SportsMarketType:
      type: string
      enum:
        - moneyline
        - spread
        - total
        - prop
      description: Filter by market type
    OddsFormat:
      type: string
      enum:
        - american
        - decimal
        - probability
      description: Odds format for market odds (american, decimal, fractional)
      example: american
    GameResponse:
      type: object
      properties:
        data:
          $ref: '#/components/schemas/SportsEvent'
        meta:
          $ref: '#/components/schemas/SportsMeta'
      required:
        - data
        - 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
    SportsEvent:
      type: object
      properties:
        id:
          type: string
          example: KCvSF20250209@NFL
        title:
          type: string
          example: Chiefs vs 49ers
        teams:
          type: array
          items:
            type: string
          example:
            - Kansas City Chiefs
            - San Francisco 49ers
        sport:
          type: string
          example: Football
        league:
          type: string
          example: NFL
        description:
          type: string
          example: Super Bowl LVIII
        scheduled_at:
          type: string
          example: '2025-02-09T23:30:00.000Z'
        status:
          type: string
          example: not_started
        image_url:
          type: string
        category:
          type: string
          example: sports
        tags:
          type: array
          items:
            type: string
          example:
            - nfl
            - super-bowl
            - championship
        markets:
          type: array
          items:
            $ref: '#/components/schemas/PlatformMarketList'
        metadata:
          type: object
          additionalProperties:
            nullable: true
      required:
        - id
        - title
        - teams
        - sport
        - league
        - description
        - scheduled_at
        - status
        - category
        - tags
        - markets
        - metadata
    SportsMeta:
      type: object
      properties:
        platforms_queried:
          type: array
          items:
            $ref: '#/components/schemas/SportsPlatform'
          example:
            - polymarket
            - kalshi
            - prophetx
        request_time:
          type: number
          example: 250
        platform_errors:
          type: object
          additionalProperties:
            type: string
        data_freshness:
          type: string
          example: '2025-01-01T00:00:00.000Z'
      required:
        - platforms_queried
        - request_time
        - data_freshness
    PlatformMarketList:
      type: object
      properties:
        platform:
          type: string
          example: polymarket
        event_id:
          type: string
          example: evt_123
        event_name:
          type: string
          example: Super Bowl LVIII
        event_slug:
          type: string
          example: super-bowl-lviii
        outcomes:
          type: array
          items:
            $ref: '#/components/schemas/PlatformMarket'
        metadata:
          type: object
          additionalProperties:
            nullable: true
      required:
        - platform
        - event_id
        - outcomes
        - metadata
    PlatformMarket:
      type: object
      properties:
        outcome_id:
          type: string
          example: outcome_123
        platform_id:
          type: string
          nullable: true
          example: pm_456
        name:
          type: string
          example: Kansas City Chiefs
        price:
          type: number
          example: 0.65
        volume:
          type: number
          example: 50000
        status:
          type: string
          example: active
        liquidity:
          type: number
          example: 25000
        order_book:
          type: object
          properties:
            'yes':
              type: array
              items:
                $ref: '#/components/schemas/SportsOrderbookEntry'
            'no':
              type: array
              items:
                $ref: '#/components/schemas/SportsOrderbookEntry'
          required:
            - 'yes'
            - 'no'
        metadata:
          type: object
          additionalProperties:
            nullable: true
      required:
        - outcome_id
        - platform_id
        - name
        - price
        - volume
        - status
        - liquidity
        - order_book
    SportsOrderbookEntry:
      type: object
      properties:
        price:
          type: number
          example: 0.65
        qty:
          type: number
          example: 100
        status:
          type: string
          example: active
        side:
          type: string
          enum:
            - 'yes'
            - 'no'
          example: 'yes'
        timestamp:
          type: string
          example: '2025-01-01T00:00:00.000Z'
      required:
        - price
        - qty
        - status
        - side
        - timestamp
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: X-API-Key
      description: API key for authentication

````