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

# V2: Get outliers by sport and date

> Compare one book’s open prices against matching prices at other eligible books.

## Endpoint details

Compare one book’s open prices against matching prices at other eligible books. Authenticate with X-TheRundown-Key (recommended) or key=. Returned books, player props, live periods and data delay respect the subscription. No extra product-tier gate applies beyond the subscription’s allowed data and date window. X-Datapoints is the number of returned result rows; repeated prices nested within a bulk best-line row are not counted again. This endpoint’s peer mean is raw implied probability; use the consensus endpoint for de-vigged fair values. If affiliate\_ids excludes affiliate\_id, the result is empty.

## Example response

Examples are shortened for readability; counts retain the source values.

```json 200 theme={null}
{
  "meta": {
    "source": "redis",
    "as_of": "2026-12-05T01:04:09.365122167Z",
    "count": 0,
    "sport_id": 4,
    "date": "2026-12-05",
    "date_from": "2026-12-05T00:00:00Z",
    "date_to": "2026-12-05T23:59:59.999999999Z"
  },
  "outliers": []
}
```

## Response fields

| Field | Type | Description |
| - | - | - |
| `meta` | object | Response source, freshness, result count and diagnostic metadata. |
| `meta.source` | string | Source used to serve the response. |
| `meta.as_of` | string | Latest included price-update time; the current UTC response time when no price rows contribute. This is not a guaranteed observation or delivery timestamp. |
| `meta.count` | integer | Number of rows returned. |
| `meta.sport_id` | integer | Sport scope for sport/date discovery endpoints. |
| `meta.date` | string | Event date scope. |
| `meta.date_from` | string | UTC lower bound used for the event date scope. |
| `meta.date_to` | string | UTC upper bound used for the event date scope. |
| `meta.window_minutes` | integer | Lookback window used for steamer detection. |
| `meta.stale` | boolean | True when the newest included price update is more than 15 minutes old; quiet books can still have valid unchanged prices. |
| `meta.warnings` | array | Diagnostic notices about fallback reads, unavailable data or the age of the returned prices. Empty results may be accompanied by a warning. |
| `outliers` | array | Target-book prices ranked by their distance from the matching peer-book mean implied probability. |
| `outliers[].id` | integer | Identifier of this price record. Keep it unchanged when linking to the corresponding history resource. |
| `outliers[].event_id` | string | TheRundown event identifier. |
| `outliers[].sport_id` | integer | TheRundown sport or league identifier; see the Sports reference. |
| `outliers[].affiliate_id` | integer | TheRundown sportsbook or exchange affiliate identifier. |
| `outliers[].affiliate_name` | string | Display name of the sportsbook or exchange. |
| `outliers[].market_id` | integer | TheRundown market-definition identifier. |
| `outliers[].market_participant_id` | integer | Identifier of the event-market participant row. |
| `outliers[].participant_id` | integer | Identifier of the team, player or other selection participant. |
| `outliers[].participant_type` | integer | Numeric participant-kind identifier, when supplied. |
| `outliers[].period_id` | integer | Market period identifier; 0 is full game. |
| `outliers[].line` | string | Stored line value or selection label. Exact-line filters compare this string after trimming surrounding whitespace. |
| `outliers[].price` | string | Current quoted odds, American by default; odds\_format can return decimal, fractional or probability representations. |
| `outliers[].previous_price` | string | Previous recorded price, when available; represented in the requested odds format. |
| `outliers[].implied_probability` | number | Raw implied win probability calculated from the price, as a fraction from 0 to 1. |
| `outliers[].move_bps` | integer | Absolute implied-probability movement in basis points. |
| `outliers[].is_main_line` | boolean | Whether this is the source book’s current main line for the selection. |
| `outliers[].updated_at` | string | UTC timestamp of the source price update. |
| `outliers[].closed_at` | string | Timestamp when closed. Omitted while open. |
| `outliers[].indexed_at` | string | UTC time the price document was indexed for odds discovery, when supplied. |
| `outliers[].liquidity_usd` | number | Approximate USD resting-order depth reported by the venue (exchange-style sources only: Kalshi, Polymarket). Omitted entirely — never explicit null — when the venue does not report liquidity, which is every traditional sportsbook today. |
| `outliers[].consensus_probability` | number | Mean raw implied probability of matching prices at other eligible books; this outlier peer measure is not the de-vigged consensus endpoint. |
| `outliers[].deviation_bps` | integer | Absolute difference from peer consensus, in probability basis points (100 bps = 1 percentage point). |
| `outliers[].peer_count` | integer | Number of matching peer prices used in the outlier calculation. |


## OpenAPI

````yaml openapi.yaml GET /api/v2/sports/{sportID}/odds/outliers/{date}
openapi: 3.1.0
info:
  title: TheRundown Sports API
  version: 2.0.0
  description: >
    **Resolve the event first.** Ambiguous date, team, player, or timezone? The
    agent asks instead of guessing.


    **Every price carries evidence.** Event, market, affiliate ID, line, and the
    price update time. A fetch time is not freshness.


    **Missing stays missing.** No remembered odds, no synthetic prices, no
    filled gaps.


    **IDs come from the API.** Sports, markets, and affiliates are discovered at
    runtime. Retired affiliates stay out.


    Real-time and historical sports data API: odds, lines, scores and statistics
    across major North American and international sports leagues.


    ## Authentication

    Operations marked keyless do not require an API key. All other operations
    accept the `X-TheRundown-Key` header or the legacy `key` query parameter.
    Prefer a private server-side environment variable and the header; avoid
    exposing credentials in URLs or browser assets.


    ## RapidAPI compatibility

    `/api/v1/v2/*` is an alias of `/api/v2/*` for RapidAPI integrations. These
    aliases use the same V2 handlers and response representations; the canonical
    V2 paths are documented once here.


    ## Off-the-Board Sentinel Value

    The value **0.0001** indicates a line is "off the board": the sportsbook has
    temporarily removed pricing (e.g., pending injury news). This is NOT an
    error. Display as "Off Board" or "N/A" in your UI.


    ## Rate Limiting

    Requests are rate-limited per API key tier. Check response headers for
    current limits.


    ## Data Updates

    - Live odds update in real-time during games

    - Use delta endpoints for efficient polling of changes

    - WebSocket connections available for streaming updates


    ## V1 vs V2

    V2 endpoints use market-based data structures (market_id, participants, line
    prices). V1 endpoints use legacy line-based structures (moneyline, spread,
    total objects). V2 is recommended for new integrations.
  contact:
    name: TheRundown API Support
    url: https://therundown.io
    email: support@therundown.io
  termsOfService: https://therundown.io/terms
servers:
  - url: https://therundown.io
    description: Production
security:
  - ApiKeyHeader: []
tags:
  - name: V2 Sports
    description: Sport listings, dates, and teams (V2)
  - name: V2 Events
    description: Events with market-based odds (V2)
  - name: V2 Markets
    description: Market definitions, odds, deltas, and history (V2)
  - name: V2 Futures
    description: >-
      Futures/outright competition events: championship and tournament-winner
      boards (V2, early access)
  - name: V2 Teams
    description: Team data, players, and stats (V2)
  - name: V2 Players
    description: Player data (V2)
  - name: V2 Stats
    description: Team and player statistics (V2)
  - name: V2 WebSocket
    description: Real-time streaming via WebSocket (V2)
  - name: V2 Reference
    description: 'Reference data: affiliates, sportsbooks, season types (V2)'
  - name: V1 Events
    description: Events with line-based odds (V1 legacy)
  - name: V1 Lines
    description: Moneyline, spread, total, best-line endpoints (V1 legacy)
  - name: V1 Sports
    description: Sport listings, dates, events, schedules (V1 legacy)
  - name: V1 Delta
    description: Delta/change feeds (V1 legacy)
  - name: V1 Reference
    description: Reference data (V1 legacy)
  - name: V1 WebSocket
    description: Real-time streaming via WebSocket (V1 legacy)
  - name: V2 Odds
    description: Best prices, line movement, consensus and same-book parlay calculations.
  - name: V2 Promotions
    description: Source-reported sportsbook odds boosts and promotions.
  - name: V2 Public
    description: Allowlisted keyless delayed and cached public data.
externalDocs:
  description: Build with AI guide
  url: https://therundown.io/build-with-ai
paths:
  /api/v2/sports/{sportID}/odds/outliers/{date}:
    get:
      tags:
        - V2 Odds
      summary: Get outliers by sport and date
      description: >-
        Compare one book’s open prices against matching prices at other eligible
        books. Authenticate with X-TheRundown-Key (recommended) or key=.
        Returned books, player props, live periods and data delay respect the
        subscription. No extra product-tier gate applies beyond the
        subscription’s allowed data and date window. X-Datapoints is the number
        of returned result rows; repeated prices nested within a bulk best-line
        row are not counted again. This endpoint’s peer mean is raw implied
        probability; use the consensus endpoint for de-vigged fair values. If
        affiliate_ids excludes affiliate_id, the result is empty.
      operationId: v2GetOutliersBySportAndDate
      parameters:
        - name: odds_format
          in: query
          required: false
          description: >-
            Odds representation for REST prices. Absent or american preserves
            the existing response. Fractional odds are reduced ratio strings;
            decimal and probability retain each source field's number/string
            type. Probability is a 0..1 fraction. Off-board placeholders
            (including 0 and 0.0001), nulls and nonnumeric sentinel strings stay
            unchanged. Numeric values with absolute value below 100 are not
            converted. Price-delta fields retain American-point difference
            units. Empty, repeated or unsupported values return 400. WebSockets
            are unchanged.
          schema:
            type: string
            default: american
            enum:
              - american
              - decimal
              - fractional
              - probability
          example: decimal
        - name: sportID
          in: path
          required: true
          description: Sport or league ID.
          schema:
            type: integer
            minimum: 1
        - name: date
          in: path
          required: true
          description: Event date as YYYY-MM-DD or Unix epoch timestamp.
          schema:
            type: string
        - name: affiliate_id
          in: query
          required: true
          description: >-
            Required positive affiliate ID of the target book to compare with
            its peers.
          schema:
            type: integer
            minimum: 1
        - name: offset
          in: query
          required: false
          description: >-
            Minutes from UTC used to interpret the requested date; defaults to
            0.
          schema:
            type: integer
            default: 0
        - name: market_id
          in: query
          required: false
          description: >-
            Optional positive market ID. When supplied,
            period/participant/line/side/include_alternates filters below apply.
          schema:
            type: integer
            minimum: 1
        - name: period_id
          in: query
          required: false
          description: >-
            Period ID; omitted or malformed uses 0 (full game). Applied only
            when market_id is supplied.
          schema:
            type: integer
            default: 0
        - name: participant_id
          in: query
          required: false
          description: >-
            Optional exact participant ID. 0 or omission does not restrict
            participant. Applied only when market_id is supplied.
          schema:
            type: integer
        - name: participant_type
          in: query
          required: false
          description: >-
            Optional numeric participant type. 0 or omission does not restrict
            type. Applied only when market_id is supplied.
          schema:
            type: integer
        - name: market_participant_id
          in: query
          required: false
          description: >-
            Optional exact market participant ID. Applied only when market_id is
            supplied.
          schema:
            type: integer
            format: int64
        - name: side
          in: query
          required: false
          description: >-
            Use over or under to rank total lines from the bettor’s perspective;
            omit for price-only selection. Applied only when market_id is
            supplied.
          schema:
            type: string
            enum:
              - over
              - under
        - name: line
          in: query
          required: false
          description: >-
            Exact stored line string to match, after whitespace trimming.
            Applied only when market_id is supplied.
          schema:
            type: string
        - name: include_alternates
          in: query
          required: false
          description: >-
            Consider alternate/extended lines when no exact line is specified;
            malformed values use false. Applied only when market_id is supplied.
          schema:
            type: boolean
            default: false
        - name: affiliate_ids
          in: query
          required: false
          description: >-
            Comma-separated positive affiliate IDs, intersected with the
            caller’s allowed books. Invalid or blank list entries are ignored.
          schema:
            type: string
        - name: min_peers
          in: query
          required: false
          description: Minimum eligible peer prices. Omitted, malformed or below 1 uses 2.
          schema:
            type: integer
            default: 2
            minimum: 1
        - name: sample_limit
          in: query
          required: false
          description: >-
            Maximum target-book candidates read before ranking. Omitted,
            malformed or below 1 uses 1000; capped at 5000.
          schema:
            type: integer
            default: 1000
            maximum: 5000
            minimum: 1
        - name: limit
          in: query
          required: false
          description: >-
            Maximum returned rows. Omitted, malformed or below 1 uses 25; values
            above 100 are capped at 100.
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 25
      responses:
        '200':
          description: >-
            Successful response. Arrays may be empty when no eligible records
            match.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestNewOutlierResponse'
              example:
                meta:
                  source: redis
                  as_of: '2026-12-05T01:04:09.365122167Z'
                  count: 0
                  sport_id: 4
                  date: '2026-12-05'
                  date_from: '2026-12-05T00:00:00Z'
                  date_to: '2026-12-05T23:59:59.999999999Z'
                outliers: []
          headers:
            X-Datapoints:
              description: Billable result count for this response, as described above.
              schema:
                type: integer
                minimum: 0
        '400':
          description: >-
            Invalid required parameter, malformed JSON or an unsupported
            odds_format.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestNewError'
              example:
                error: affiliate_id and sport_id are required
        '401':
          description: Missing, invalid or revoked API credential.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestNewUnauthorized'
              example:
                message: unauthorized
        '403':
          description: >-
            The plan does not include the requested feature/date, or account
            access is blocked.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestNewForbidden'
        '429':
          description: >-
            Request-rate or data-point allowance exceeded. Error metadata
            depends on the exhausted allowance; Retry-After is supplied when
            applicable.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestNewRateLimit'
              example:
                error: Rate limit exceeded
                limit: 10
          headers:
            Retry-After:
              description: Seconds until the request may be retried.
              schema:
                type: integer
        '500':
          description: Unexpected JSON encoding error or failed requested odds conversion.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestNewError'
              example:
                error: json encoding error
        '503':
          description: >-
            Enabled-book membership changed repeatedly during this response;
            retry.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RestNewError'
              example:
                error: >-
                  affiliate visibility changed while reading response; retry
                  request
      security:
        - ApiKeyHeader: []
        - ApiKeyQuery: []
components:
  schemas:
    RestNewOutlierResponse:
      type: object
      properties:
        meta:
          $ref: '#/components/schemas/RestNewOddsDiscoveryMeta'
          description: Response source, freshness, result count and diagnostic metadata.
        outliers:
          type: array
          items:
            $ref: '#/components/schemas/RestNewOutlierPrice'
          description: >-
            Target-book prices ranked by their distance from the matching
            peer-book mean implied probability.
      description: Outlier response.
    RestNewError:
      type: object
      properties:
        error:
          type: string
          description: Human-readable explanation of why the request failed.
      description: Error.
    RestNewUnauthorized:
      type: object
      properties:
        message:
          type: string
          description: Human-readable authentication or request failure message.
      description: Unauthorized.
    RestNewForbidden:
      type: object
      properties:
        error:
          type: string
          description: Human-readable explanation of why the request failed.
        upgrade_url:
          type: string
          description: Relative URL of the appropriate plan or account upgrade page.
      description: Forbidden.
    RestNewRateLimit:
      type: object
      properties:
        error:
          type: string
          description: Human-readable explanation of why the request failed.
        limit:
          type: integer
          description: >-
            Maximum number of result rows requested or the allowance that was
            exceeded, as described by the containing response.
        used:
          type: integer
          description: Data points already used in the applicable allowance period.
        period:
          type: string
          description: Billing or allowance period identifier.
        required_tier:
          type: string
          description: Minimum suggested tier for the rejected request.
        upgrade_url:
          type: string
          description: Relative URL of the appropriate plan or account upgrade page.
        upgrade_message:
          type: string
          description: >-
            Human-readable description of the allowance or feature available on
            an upgraded plan.
      description: RateLimit.
    RestNewOddsDiscoveryMeta:
      type: object
      properties:
        source:
          type: string
          description: Source used to serve the response.
          example: redis
        as_of:
          type: string
          format: date-time
          description: >-
            Latest included price-update time; the current UTC response time
            when no price rows contribute. This is not a guaranteed observation
            or delivery timestamp.
        count:
          type: integer
          description: Number of rows returned.
        sport_id:
          type: integer
          description: Sport scope for sport/date discovery endpoints.
        date:
          type: string
          format: date
          description: Event date scope.
        date_from:
          type: string
          format: date-time
          description: UTC lower bound used for the event date scope.
        date_to:
          type: string
          format: date-time
          description: UTC upper bound used for the event date scope.
        window_minutes:
          type: integer
          description: Lookback window used for steamer detection.
        stale:
          type: boolean
          description: >-
            True when the newest included price update is more than 15 minutes
            old; quiet books can still have valid unchanged prices.
        warnings:
          type: array
          items:
            type: string
          description: >-
            Diagnostic notices about fallback reads, unavailable data or the age
            of the returned prices. Empty results may be accompanied by a
            warning.
      description: Response source, freshness, result count and diagnostic metadata.
    RestNewOutlierPrice:
      allOf:
        - $ref: '#/components/schemas/RestNewOddsPrice'
        - type: object
          properties:
            consensus_probability:
              type: number
              format: double
              description: >-
                Mean raw implied probability of matching prices at other
                eligible books; this outlier peer measure is not the de-vigged
                consensus endpoint.
            deviation_bps:
              type: integer
              format: int64
              description: >-
                Absolute difference from peer consensus, in probability basis
                points (100 bps = 1 percentage point).
            peer_count:
              type: integer
              description: Number of matching peer prices used in the outlier calculation.
      description: OutlierPrice.
    RestNewOddsPrice:
      type: object
      properties:
        id:
          type: integer
          format: int64
          description: >-
            Identifier of this price record. Keep it unchanged when linking to
            the corresponding history resource.
        event_id:
          type: string
          description: TheRundown event identifier.
        sport_id:
          type: integer
          description: TheRundown sport or league identifier; see the Sports reference.
        affiliate_id:
          type: integer
          description: TheRundown sportsbook or exchange affiliate identifier.
        affiliate_name:
          type: string
          description: Display name of the sportsbook or exchange.
        market_id:
          type: integer
          description: TheRundown market-definition identifier.
        market_participant_id:
          type: integer
          format: int64
          description: Identifier of the event-market participant row.
        participant_id:
          type: integer
          description: Identifier of the team, player or other selection participant.
        participant_type:
          type: integer
          description: Numeric participant-kind identifier, when supplied.
        period_id:
          type: integer
          description: Market period identifier; 0 is full game.
        line:
          type: string
          description: >-
            Stored line value or selection label. Exact-line filters compare
            this string after trimming surrounding whitespace.
        price:
          type: string
          description: >-
            Current quoted odds, American by default; odds_format can return
            decimal, fractional or probability representations.
          example: '-110'
        previous_price:
          type: string
          description: >-
            Previous recorded price, when available; represented in the
            requested odds format.
        implied_probability:
          type: number
          format: double
          description: >-
            Raw implied win probability calculated from the price, as a fraction
            from 0 to 1.
        move_bps:
          type: integer
          format: int64
          description: Absolute implied-probability movement in basis points.
        is_main_line:
          type: boolean
          description: >-
            Whether this is the source book’s current main line for the
            selection.
        updated_at:
          type: string
          format: date-time
          description: UTC timestamp of the source price update.
        closed_at:
          type: string
          format: date-time
          description: Timestamp when closed. Omitted while open.
        indexed_at:
          type: string
          format: date-time
          description: >-
            UTC time the price document was indexed for odds discovery, when
            supplied.
        liquidity_usd:
          type: number
          description: >-
            Approximate USD resting-order depth reported by the venue
            (exchange-style sources only: Kalshi, Polymarket). Omitted entirely
            — never explicit null — when the venue does not report liquidity,
            which is every traditional sportsbook today.
          example: 4210.5
      description: >-
        One eligible sportsbook or exchange price with selection identity and
        timestamps.
  securitySchemes:
    ApiKeyHeader:
      type: apiKey
      in: header
      name: X-TheRundown-Key
      description: Recommended API key request header for new integrations
    ApiKeyQuery:
      type: apiKey
      in: query
      name: key
      description: >-
        API key as query parameter. Deprecated for new integrations; retained
        for existing integrations.
      x-deprecated: true

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.