Data Studio Baseball: How to integrate data from the MLB Research Tool

Topic

How do I integrate data from the MLB Research Tool?

Environment

Product: Data Studio
Component: Data Studio
Control System: DMP-8000, Show Control System (SCS)

Steps

1. Ensure the public IP address of the machine running Data Studio has been whitelisted with Daktronics. Contact your Regional Applications Engineer for assistance with this.
2. Find the data you want to display using the MLB Research Tool and select the query button at the top right of the page.
image.png

3. Copy the entire URL provided for the query
image.png
4. Create a new web data source in Data Studio and paste the URL in the address location. Then replace the beginning of the URL all the way up to the ? with the following https://mlbstatsapi.azurewebsites.net/api/mlbstats

     Original URL: http://statsapi.mlb.com/api/v1/stats/search?gameTypes=R&group=hitting&hydrate=person(currentTeam),team&includeNullMetrics=true&limit=50&seasons=2021&sortOrder=desc&sortStat=exitVelocity&sportIds=1&statFields=standard,advanced,expected,tracking
 
  New URL:
https://mlbstatsapi.azurewebsites.net/api/mlbstats?gameTypes=R&group=hitting&hydrate=person(currentTeam),team&includeNullMetrics=true&limit=50&seasons=2021&sortOrder=desc&sortStat=exitVelocity&sportIds=1&statFields=standard,advanced,expected,tracking

5. Data Studio should now be able to read data from the MLB Research Tool and you can set up any data trimming or splitting that is desired.

KB ID: 000025563


DISCLAIMER: Use of this content may void the equipment warranty, please read the disclaimer prior to performing any service of the equipment.

DAKTRONICS DOES NOT PROMISE THAT THE CONTENT PROVIDED HEREIN IS ERROR-FREE OR THAT ANY DEFECTS WILL BE CORRECTED, OR THAT YOUR USE OF THE CONTENT WILL PROVIDE SPECIFIC RESULTS. THE CONTENT IS DELIVERED ON AN "AS-IS" AND "AS-AVAILABLE" BASIS. ALL INFORMATION PROVIDED IN THIS ARTICLE IS SUBJECT TO CHANGE WITHOUT NOTICE. DAKTRONICS DISCLAIMS ALL WARRANTIES, EXPRESS OR IMPLIED, INCLUDING ANY WARRANTIES OF ACCURACY, NON-INFRINGEMENT, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. DAKTRONICS DISCLAIMS ANY AND ALL LIABILITY FOR THE ACTS, OMISSIONS AND CONDUCT OF YOU OR ANY THIRD PARTIES IN CONNECTION WITH OR RELATED TO YOUR USE OF THE CONTENT. ADJUSTMENT, REPAIR, OR SERVICE OF THE EQUIPMENT BY ANYONE OTHER THAN DAKTRONICS OR ITS AUTHORIZED REPAIR AGENTS MAY VOID THE EQUIPMENT WARRANTY. YOU ASSUME TOTAL RESPONSIBILITY FOR YOUR USE OF THE CONTENT AND ANY LINKED CONTENT. YOUR SOLE REMEDY AGAINST DAKTRONICS FOR DISSATISFACTION WITH THE CONTENT IS TO STOP USING THE CONTENT. THIS LIMITATION OF RELIEF IS A PART OF THE BARGAIN BETWEEN THE PARTIES.

The above disclaimer applies to any property damage, equipment failure, liability, infringement, or personal injury claim arising out of or in any way related to your use or application of the content, whether such claim is for breach of contract, tort, negligence or any other cause of action.