Skip to content

Get JSON object with MLB Probable Pitchers for a given day

License

Notifications You must be signed in to change notification settings

richardpenner/mlbprobablepitchers

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mlbprobablepitchers

Get JSON object with MLB Probable Pitchers for a given day

Install

npm install mlbprobablepitchers

Usage

const Probables = require('mlbprobablepitchers');
const day = '2011/07/23';

Probables.get(day, (err, matchups) => {

  // do something
});

Example matchup

{
    "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"
        }
    }
}

About

Get JSON object with MLB Probable Pitchers for a given day

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%