# MLB API

> 3 public methods for MLB (mlb.com), each 1 credit per completed run.

Unofficial. Not affiliated with or endorsed by MLB.

- Page: https://fous.com/methods/mlb.com

## Methods

### [Get scores and schedule](https://fous.com/methods/mlb.com/get-scores.md)

`mlb.com/get_scores`, read. Lists MLB games and scores for a date or up to seven days, optionally for one team. Start times are shown in the requested time zone.

Returns: games with date, start time, teams, runs, status, inning, pitchers, TV channels, ballpark and game link

### [Get standings](https://fous.com/methods/mlb.com/get-standings.md)

`mlb.com/get_standings`, read. Returns MLB regular-season division standings for a season: records, win percentage, games back, streak, last 10 games and wild-card games back. Defaults to the current year.

Returns: league, division, rank, team, wins, losses, win percentage, games back, streak, last 10, wild-card games back, team page

### [Get player stats](https://fous.com/methods/mlb.com/get-player-stats.md)

`mlb.com/get_player_stats`, read. Gets an MLB player's profile and regular-season hitting and pitching statistics for one season and for his career. Without a season it uses the current season, or the player's latest MLB season if he has no stats this year.

Returns: name, team, position, bats, throws, age, season and career hitting/pitching stats
