Page 1 of 1
Earned Runs using gamedetails api
Posted: Tue May 07, 2013 1:03 pm
by dhardy123
Is there any way to determine earned and unearned runs using the gamedetails api without recreating the inning? Is there a field that stores this?
Re: Earned Runs using gamedetails api
Posted: Tue May 07, 2013 1:19 pm
by mprusak
FTM can better answer your question, but take a look at this link as an FYI...looks like it...
http://data.iscorecentral.com/legend.ph ... internal=1" onclick="window.open(this.href);return false;
Re: Earned Runs using gamedetails api
Posted: Tue May 07, 2013 1:21 pm
by FTMSupport
No, there is not a field that stores this in the gamedetails call. You can use the game stats to get the earned vs unearned runs for a game, but you are not going to get earned vs unearned for each run scored other than on the scorecard where we shade earned vs unearned differently.
Re: Earned Runs using gamedetails api
Posted: Tue May 07, 2013 2:03 pm
by mprusak
I knew I shouldnt have tried to answer a question on a subject I have no idea what I am talking about...

Re: Earned Runs using gamedetails api
Posted: Tue May 07, 2013 8:31 pm
by dhardy123
How do you know when to shade the scorecard differently?
Re: Earned Runs using gamedetails api
Posted: Tue May 07, 2013 8:39 pm
by FTMSupport
Our code that draws the scorecard evaluates the pitch by pitch data to determined earned or unearned run.
Re: Earned Runs using gamedetails api
Posted: Tue May 07, 2013 8:54 pm
by dhardy123
One other question on the gamedetails...how can i determine the number of pitches a pitcher has pitched? I see a pitchid for the game but it isnt reset when a new pitcher enters
Re: Earned Runs using gamedetails api
Posted: Tue May 07, 2013 9:25 pm
by FTMSupport
For each PITCH node, it has an attribute that identifies the pitcher, and the RESULT node has a pitcherballs and pitcherstrikes attribute that identify how many balls and strikes that pitcher has thrown.