Hierarchy

  • DefaultSportradarMlbApiService

Implements

Constructors

Properties

basePath: string = 'https://api.sportradar.com/mlb/production/v7'
configuration: SportradarMlbApi.Configuration = ...
defaultHeaders: Record<string, string> = {}
httpClient: HttpService

Methods

  • Daily Boxscore Inning-by-inning scoring breakdown, top-level runs, hits and errors by team, as well as details on run-scoring events for all games on a given MLB defined day.

    Parameters

    • locale: string

      (Required) Locale used for translations

    • year: number

      (Required) Year in 4 digit format

    • month: number

      (Required) Locale used for translations

    • day: number

      (Required) Locale used for translations

    • format: string

    Returns Observable<AxiosResponse<any, any>>

  • Daily Change Log Provides IDs and timestamps for teams, players, game statistics, schedules, and standings that have been modified on a given date. To receive the data updates, use these unique IDs to pull relevant API feeds.

    Parameters

    • locale: string

      (Required) Locale used for translations

    • year: number

      (Required) Year in 4 digit format

    • month: number

      (Required) Month in 2 digit format

    • day: number

      (Required) Day in 2 digit format

    • format: string

    Returns Observable<AxiosResponse<any, any>>

  • Daily Schedule The date, time and location for all games on a given MLB defined day.

    Parameters

    • locale: string

      (Required) Locale used for translations

    • year: number

      (Required) Year in 4 digit format

    • month: number

      (Required) Month in 2 digit format

    • day: number

      (Required) Day in 2 digit format

    • format: string

    Returns Observable<AxiosResponse<any, any>>

  • Daily Summary Team lineups as well as team and player statistics for all games on a given MLB defined day.

    Parameters

    • locale: string

      (Required) Locale used for translations

    • year: number

      (Required) Year in 4 digit format

    • month: number

      (Required) Month in 2 digit format

    • day: number

      (Required) Day in 2 digit format

    • format: string

    Returns Observable<AxiosResponse<any, any>>

  • Daily Transactions Information concerning all transactions taking place on a given MLB defined day.

    Parameters

    • locale: string

      (Required) Locale used for translations

    • year: number

      (Required) Year in 4 digit format

    • month: number

      (Required) Month in 2 digit format

    • day: number

      (Required) Day in 2 digit format

    • format: string

    Returns Observable<AxiosResponse<any, any>>

  • Game Boxscore Inning-by-inning scoring breakdown, hits and errors by team, win/loss results, as well as details on run-scoring events for a given game.

    Parameters

    • locale: string

      (Required) Locale used for translations

    • game_id: string

      (Required) ID of a game

    • format: string

    Returns Observable<AxiosResponse<any, any>>

  • Game Extended Summary Inning-by-inning scoring, key game events, lineups, and team and player statistics for the given game and season-to-date.

    Parameters

    • locale: string

      (Required) Locale used for translations

    • game_id: string

      (Required) ID of a game

    • format: string

    Returns Observable<AxiosResponse<any, any>>

  • League Leaders AL, NL, and MLB leader information for various hitting and pitching statistics.

    Parameters

    • locale: string

      (Required) Locale used for translations

    • year: number

      (Required) Year in 4 digit format

    • season_type: string

      (Required) Season type as Regular (REG)

    • format: string

    Returns Observable<AxiosResponse<any, any>>

  • League Schedule Complete schedule information for a given season, including venue and broadcast info.

    Parameters

    • locale: string

      (Required) Locale used for translations

    • year: number

      (Required) Year in 4 digit format

    • season_type: string

      (Required) Season type as Preseason (PRE), Regular (REG), Postseason (PST), or All-Star Game (AST)

    • format: string

    Returns Observable<AxiosResponse<any, any>>

  • Player Profile Player biographical information, including current and historical seasonal statistics and splits.

    Parameters

    • locale: string

      (Required) Locale used for translations

    • player_id: string

      (Required) ID of a player

    • format: string

    Returns Observable<AxiosResponse<any, any>>

  • Rankings League and division rank for each team, including post season clinching status.

    Parameters

    • locale: string

      (Required) Locale used for translations

    • year: number

      (Required) Year in 4 digit format

    • season_type: string

      (Required) Season type as Regular (REG)

    • format: string

    Returns Observable<AxiosResponse<any, any>>

  • Seasonal Splits Detailed splits for a given team and all players on the roster.

    Parameters

    • locale: string

      (Required) Locale used for translations

    • year: number

      (Required) Year in 4 digit format

    • season_type: string

      (Required) Season type as Regular (REG) or Postseason (PST)

    • team_id: string

      (Required) ID of a team

    • format: string

    Returns Observable<AxiosResponse<any, any>>

  • Seasonal Statistics Detailed season-to-date stats for given team and all players on the roster.

    Parameters

    • locale: string

      (Required) Locale used for translations

    • year: number

      (Required) Year in 4 digit format

    • season_type: string

      (Required) Season type as Preseason (PRE), Regular (REG), or Postseason (PST)

    • team_id: string

      (Required) ID of a team

    • format: string

    Returns Observable<AxiosResponse<any, any>>

  • Series Schedule Postseason participant information as well as the date, time, location, and other event details for every match-up taking place for the entire postseason.

    Parameters

    • locale: string

      (Required) Locale used for translations

    • year: number

      (Required) Year in 4 digit format

    • season_type: string

      (Required) Season type as Postseason (PST)

    • format: string

    Returns Observable<AxiosResponse<any, any>>

  • Series Statistics Detailed series-to-date stats for a given team and all players on the roster.

    Parameters

    • locale: string

      (Required) Locale used for translations

    • series_id: string

      (Required) ID of a season

    • team_id: string

      (Required) ID of a team

    • format: string

    Returns Observable<AxiosResponse<any, any>>

  • Standings Detailed standings information for each MLB division.

    Parameters

    • locale: string

      (Required) Locale used for translations

    • year: number

      (Required) Year in 4 digit format

    • season_type: string

      (Required) Season type as Preseason (PRE) or Regular (REG)

    • format: string

    Returns Observable<AxiosResponse<any, any>>

  • Statcast Leaders Statcast leader information for various hitting and pitching statistics.

    Parameters

    • locale: string

      (Required) Locale used for translations

    • year: number

      (Required) Year in 4 digit format

    • season_type: string

      (Required) Season type as Regular (REG)

    • format: string

    Returns Observable<AxiosResponse<any, any>>

  • Team Profile Top-level team information including all players currently on the 25-man roster, 40-man roster, or expected to join the team.

    Parameters

    • locale: string

      (Required) Locale used for translations

    • team_id: string

      (Required) ID of a team

    • format: string

    Returns Observable<AxiosResponse<any, any>>

Generated using TypeDoc