I built a Baseball Nightly Pick Alexa skill and API

For those of you participating in the r/baseballnightlypick, I've built a simple Amazon Alexa skill that can tell you the pick and some quick stats about the game (like the current score if the game has started). You can find that skill by searching "Baseball Nightly Pick" in the Alexa app, or by heading over to the Amazon page here.

You can't make your pick using this however, because that would involve using Reddit's API and logging in etc etc and I didn't want to do that. I made this skill because at the end of the day I'd often find myself forgetting who the pick for the day was, and now I can yell at one of my Amazon Echos to give me the answer instead of having to find the daily thread.

Also, if for whatever reason you wanted the API that I am using, that's publicly available. There are 2 endpoints, and they each return JSON.

Today's pick info:

https://pick.kylestest.space/api/pick  

Example Response:

{  
    "away": "Kansas City Royals",  
    "current_date": "08102017",  
    "game_date": "08102017",  
    "home": "St. Louis Cardinals"  
}  

Today's pick's game info:

https://pick.kylestest.space/api/game

Example Response:

{
    "Kansas City Royals": 0, 
    "St. Louis Cardinals": 0, 
    "start_time": "7:15PM", 
    "status": "PRE_GAME"
}  

Posted Aug 10, 2017, 2:58 PM UTC · edited

191
Loading comments…