MLB API Showcase
-
Any suggestions on how to create a custom iOS app that can authenticate and retrieve listings? Just looking for some sample swift code
-
I was wondering for the game log api if we can get the name of the league included not just league.
-
A buddy and I have created a "companion" website for MLB The Show.
Website: https://www.theshowbase.com/
Android app: https://play.google.com/store/apps/details?id=com.theshowbase
Platform: Web/App
Code: Nextjs/Python
Functions: Database, prices, team builder, mini games (bingo, pack opener, grand slam guess, etc) and much much more.We are proud of the work so far, and keep adding features, tools and similar - You are more than welcome to post any feedback or specific request.
As a side note I think our team builder is the best there is out there
-
I really like the APIs, and have used Excel/Power BI/Power Query to pull in data for analysis. The only one I can't get to work is the "Inventory" one. On the documentation, it states "User must be logged in to make this API call".
https://mlb25.theshow.com/apis/docs/inventory
I can't seem to pass my login information to "My Account". I'm guessing it might be because there are 4 different ways to log in (The Show, Xbox, PS or Switch). I've searched a bunch of places on the web, and it looks like others struggle with the same problem. I know that Showzone has figured it out, but I'd love to simply pull this data myself.
Anyway - let me know if anyone has figured this out. Thank you!
-
@MarioMendoza935_XBL said in MLB API Showcase:
I really like the APIs, and have used Excel/Power BI/Power Query to pull in data for analysis. The only one I can't get to work is the "Inventory" one. On the documentation, it states "User must be logged in to make this API call".
https://mlb25.theshow.com/apis/docs/inventory
I can't seem to pass my login information to "My Account". I'm guessing it might be because there are 4 different ways to log in (The Show, Xbox, PS or Switch). I've searched a bunch of places on the web, and it looks like others struggle with the same problem. I know that Showzone has figured it out, but I'd love to simply pull this data myself.
Anyway - let me know if anyone has figured this out. Thank you!
My son gave me some code to work off of a couple of months ago, but I haven’t taken the time to massage it. I put in a request for them to add parameters for username and password, but it never happened. I need to try the code my son gave me…but, I need an incentive too, and 25 isn’t giving me that…
-
Okay, I have been playing more with google ai studio to create a program using the API data instead of using a manually updated spreadsheet. Here is what I have so far. I may look into expanding it more and maybe implement some more reports if I come up with them.
There were definitely some false starts and bugs along the way.
Here is the main Screen
-
The ability to manually fetch data from the servers and then the ability to export and import that data so I don't need to pull the data every time
-
Imported player count
-
Reports - I currently have two implemented. My flashbacks and legends per team count and a list and count of a specific teams card series
-
Search and filters
-
A details link that displays more info on the card including the art, location and secondary positions.
-
-
@Dolenz_PSN said in MLB API Showcase:
Okay, I have been playing more with google ai studio to create a program using the API data
Is this something you can share? This looks great. Do you have a technical background?
-
@MarioMendoza935_XBL said in MLB API Showcase:
@Dolenz_PSN said in MLB API Showcase:
Okay, I have been playing more with google ai studio to create a program using the API data
Is this something you can share? This looks great. Do you have a technical background?
I have a modicum of technical knowledge but nothing that really helped me with this. What skills did help me with this is 30 years or so of working in IT support. I was able to help the program debug some errors it had because there were times it just was not working.
For example it kept pulling the same page over and over again and swearing that the data contained duplicates and I had to specifically ask it "Are you sure you are properly incrementing the page number and not just pulling page 1 over and over again?"
But I will try and share. I have never done this before so I am not sure how it works. I would highly suggest that you fetch fresh data one time then immediately export and then use the import function. There should be no need to fetch again until SDS has actually added cards, simply import the existing data as it is much faster. The initial fetch takes several minutes. I had to slow it down because the server was throttling the app for pulling too much too fast.
I did this on a PC in a chrome browser. I have no idea if it will work in other environments.
Let me know if it works for you
-
@Dolenz_PSN said in MLB API Showcase:
Let me know if it works for you
It works for me!
I "fetched" the data, which just took a few minutes. The "2686" unique players matches what I have done via Excel/Power Query. When you mention the "duplicates", I had the same issue in Power Query. I was basically loading page 1, 108 times. Once I got it to "loop", everything is fine.
I filtered immediately on "Pirates, Legends & Flashbacks", and it matches what I have in Excel. This is really great stuff.
P.S. I didn't have to do the "Export/Import" function to get this to work. I did do an Export just to see what was in it, and it's the same JSON file that I'm importing into Excel.
-
@MarioMendoza935_XBL said in MLB API Showcase:
@Dolenz_PSN said in MLB API Showcase:
Let me know if it works for you
It works for me!
I "fetched" the data, which just took a few minutes. The "2686" unique players matches what I have done via Excel/Power Query. When you mention the "duplicates", I had the same issue in Power Query. I was basically loading page 1, 108 times. Once I got it to "loop", everything is fine.
I filtered immediately on "Pirates, Legends & Flashbacks", and it matches what I have in Excel. This is really great stuff.
P.S. I didn't have to do the "Export/Import" function to get this to work. I did do an Export just to see what was in it, and it's the same JSON file that I'm importing into Excel.
I use the export and import to speed things up. There is no reason to refetch the data again until SDS releases a new batch of cards.
Maybe later I will try and add the buy now and sell now prices to the details page.