MLB-StatsAPI icon indicating copy to clipboard operation
MLB-StatsAPI copied to clipboard

The divisions endpoint allows 'season' as an optional endpoint.

Open BranchRickey opened this issue 1 year ago • 1 comments

Minor issue, but the divisions endpoint does allow 'season' as a valid optional parameter. The following URL produces the divisions for the 1984 season:

http://statsapi.mlb.com/api/v1/divisions?season=1984

This is useful if you are building a database with historical information.

BranchRickey avatar May 18 '24 23:05 BranchRickey

I will add the season param to the divisions endpoint, and in the meantime you can use the force param to make the wrapper include it in your get calls.

toddrob99 avatar Aug 14 '24 20:08 toddrob99