I'm generating box scores on our own website using the Team Website API call to gamestats.php then getting the various values from the //INNINGS/INNING XML elements including homeRuns, homeHits, homeErrors, visitorRuns, visitorHits, and visitorErrors for each inning played. My understanding of this call is that the final scoring is returned in an INNING child element referenced by an 'F' in the inning attribute.
For all our games so far, I have not had an 'F' returned. If we played 7 innings, I get 7 INNING child elements with inning attributes 1-7 and nothing more. In cases where we don't play the bottom half of the last inning, the homeRuns attribute is -1 as expected so it knows the game is over and complete (I assume.) Because it doesn't return an 'F' inning I've had to compute the final scoring by summing the runs, hits, and errors from each inning. The runs sum up fine but the hits and errors are sometimes higher than they should be based on both the box scores and game stats on the Team Website.
What is the best way for me to get accurate data for box scores using the Team Website API? Our Team Website is http://www.iscorebaseball.com/maltbynomads. This is still pretty new to me so I'm sure I could have done something wrong, too.
Team Website API returns different values than Team Website
- FTMSupport
- Site Admin
- Posts: 13193
- Joined: Sat Mar 28, 2009 7:25 pm
Re: Team Website API returns different values than Team Website
If you can email us at support@iscoresports.com with a specific example of a game where something is not matching in the API call (please include the API call as well), we can take a look to see what is going on.
Check out the new iScore Baseball documentation page!
Includes videos and user manual.
http://iscoresports.com/baseball/training.php#docs
Includes videos and user manual.
http://iscoresports.com/baseball/training.php#docs