---
title: "Betting Splits - by Game"
method: GET
path: "/v3/mlb/odds/{format}/BettingSplitsByGameId/{gameId}"
tags: ["MLB v3 Odds"]
---

# Betting Splits - by Game

`GET /v3/mlb/odds/{format}/BettingSplitsByGameId/{gameId}`

## Request

- Base URL: `https://api.sportsdata.io`
- URL: `https://api.sportsdata.io/v3/mlb/odds/{format}/BettingSplitsByGameId/{gameId}`
- Auth: one of:
  - API key in header `Ocp-Apim-Subscription-Key`
  - API key in query parameter `key`
- TypeScript: <https://skmtc.dev/sportsdata/apis/mlb-api/docs/v3/mlb/odds/:format/BettingSplitsByGameId/:gameId/get.ts> (a function with typed inputs; its response is checked against the schema)

List of Money and Bet Percentage splits for each market and their respective outcome types available in this game. This specific endpoint will return current splits for each available market and no line movement.

## Path parameters

- `format` 'JSON' | 'XML', required
- `gameId` string, required

## Response `200`

Success

- GameBettingSplit
  - `GameID` integer: The unique ID of the game tied to the BettingSplits
  - `SeasonType` integer: The type of season that this record corresponds to (1=Regular Season; 2=Preseason; 3=Postseason; 4=Offseason; 5=AllStar).
  - `Season` integer: The MLB season of the betting split
  - `Day` string, nullable: The day of the game
  - `AwayTeam` string, nullable: The abbreviation [Key] of the away team
  - `HomeTeam` string, nullable: The abbreviation [Key] of the Home Team
  - `BettingMarketSplits` BettingMarketSplit[]: Shows the BettingMarkets that have splits included for them in a given game
    - `BettingMarketID` integer: The unique ID associated with the betting market
    - `BettingEventID` integer: The unique id of the associated betting event
    - `BettingMarketTypeID` integer: The unique ID associated with the market type of the betting market
    - `BettingMarketType` string, nullable: The name of the market type within a market (e.g. Player Prop, Team Prop, Game Prop, etc.)
    - `BettingBetTypeID` integer: The ID associated with the name of the bet type within a market
    - `BettingBetType` string, nullable: The name of the bet type within a market (e.g. Total Runs, Moneyline, Run Line, etc.)
    - `BettingPeriodTypeID` integer: The BettingPeriodTypeID of this market
    - `BettingPeriodType` string, nullable: The BettingPeriodType of this market (e.g. Full Game; 1st-5th Inning; 2nd Inning; Regular Season)
    - `TeamID` integer, nullable: The team's unique TeamID as assigned by SportsDataIO tied this market (if applicable)
    - `TeamKey` string, nullable: The abbreviation [Key] of the team tied to this market (if applicable)
    - `PlayerID` integer, nullable: The player's unique PlayerID as assigned by SportsDataIO tied to this market (if applicable) Note: this ID will stay with the player throughout their MLB career
    - `PlayerName` string, nullable: The full name of the player associated with this market
    - `BettingSplits` BettingSplit[]: A list of betting splits for the BettingMarket
      - `BettingMarketSplitID` integer: The unique ID assciated with the betting split
      - `BettingMarketID` integer: The unique ID associated with the betting market
      - `BettingOutcomeTypeID` integer, nullable: The unique ID associated with this BettingOutcomeType
      - `BettingOutcomeType` string, nullable: The name of BettingOutcomeType (e.g. Home; Away; Under; Over)
      - `BetPercentage` integer, nullable: Percentage of bets placed on a specific outcome
      - `MoneyPercentage` integer, nullable: The percentage of the money placed in wagers on this market taken by this type of bet
      - `Created` string, nullable: The date and time this betting split was created in US Eastern Time
      - `LastSeen` string, nullable: The date and time this set of values was last seen

## Other responses

- `401`: Unauthorized

---

[API](https://skmtc.dev/sportsdata/apis/mlb-api.md) - [All operations](https://skmtc.dev/sportsdata/apis/mlb-api/llms.txt) - [OpenAPI document](https://skmtc.dev/sportsdata/apis/mlb-api/revisions/60fb38ac37e7?raw)
