XML Feed Customer Documentation

XML Baseball Play-by-Play Feed

This feed includes play-by-play data for pre-season, regular season, playoff and all-star games for MLB.

Feed Information

Detail

Info

Update Interval

As data is updated

Atom feed keyword

/baseball/play-by-play

HTTP MLB

http://xml.sportsdirectinc.com/sport/v2/baseball/MLB/play-by-play/(season-name)/play_by_play_MLB_(competition-id).xml

(warning) Note that the URLs listed above are not valid; keywords in parentheses must be replaced with real values.

League Data

Item

 

Notes

Sport Id

 

Sport Name

 

League Id

 

League Name

 

League Short Name

 

Season Data

Item

 

Notes

Id

 

Name

 

Start Date

 

End Date

 

Game Summary Data

(warning) Included for both teams.

Stat

Description

MLB

NCAABBL

Notes

hits

Total hits

 

runs

Total Runs scored

 

errors

Total errors made

 

Play-by-Play Data

Play-by-play data consists of a sequence of elements describing game events in order of when they occurred during the game.

Play

Item

 

Notes

Id

 

Period Number

Inning

Inning Half

Top or Bottom

Team

 

Play events

see Play Event description below

Play Event

Item

 

Notes

Type

see Play Event Type list below

Player

if the Play Event involves a player

Description

 

Player

Item

 

Notes

Id

 

First Name

 

Last Name

 

Throws

 
Bats

 

Play Event Types

Type
advance
advance_on_balk
advance_on_defense_indifference
advance_on_error
advance_on_fielders_choice
advance_on_interference
advance_on_passed_ball
advance_on_wild_pitch
caught_stealing
double
double_on_bunt
double_on_ground_rule
flies_into_sacrifice_double_play
fly_out
fly_out_into_double_play
fly_out_into_triple_play
foul_out
ground_into_double_play
ground_into_force_out
ground_into_triple_play
ground_out
ground_out_on_bunt
hit_by_pitch
home_run
home_steal
in_the_park_home_run
intentional_walk
line_out
line_out_into_double_play
line_out_into_triple_play
out
pick_off
picked_off_caught_stealing
pinch_hitter_entrance
pinch_runner_entrance
pitcher_entrance
pop_out
pop_out_on_bunt
pop_out_on_infield_fly_rule
sacrifice_bunt_out
sacrifice_fly_out
score
scores_on_balk
scores_on_defensive_interference
scores_on_error
scores_on_fielders_choice_out
scores_on_interference
scores_on_passed_ball
scores_on_wild_pitch
single
single_on_bunt
steal
strike_out
triple
triple_on_bunt
walk