Get JSON object with MLB Probable Pitchers for a given day
npm install mlbprobablepitchers
const Probables = require('mlbprobablepitchers');
const day = '2011/07/23';
Probables.get(day, (err, matchups) => {
// do something
});
{
"id": "2011/07/23/houmlb-chnmlb-1",
"startTime": "2011-07-23T12:05:00",
"easternTime": "2011-07-23T13:05:00",
"timezone": "CDT",
"teams": {
"away": "112",
"home": "117"
},
"pitchers": {
"away": {
"id": "434643",
"name": "Wandy Rodriguez",
"throws": "LHP"
},
"home": {
"id": "448694",
"name": "Randy Wells",
"throws": "RHP"
}
}
}