Fantasy Baseball Nerd

Fantasy Baseball API

Most of the data found on Fantasy Baseball Nerd can be retrieved via XML through our open fantasy baseball API.

You can use our data in both personal and commercial projects. We simply ask that you credit and provide a link to FantasyBaseballNerd.com.

MLB Players

Retrieve a list of MLB players.

Nodes:

  • playerId: The unique FBN player ID
  • playerName: The player name
  • team: Team code for the player's team. Associated to the Teams API call.
  • jersey: Jersey number (if known).
  • position: The player's primary position
  • bats: R: Right, L: Left
  • throws: R: Right, L: Left
  • height: The player's official height
  • weight: The player's official weight
  • dob: The player's date of birth (if known) YYYY-MM-DD
MLB Teams

Retrieve a list of MLB teams.

Nodes:

  • code: The unique MLB team code
  • name: The team name
  • league: The league that this team belongs to (American/National)
  • division: The division that this team belongs to (East, Central, West)
MLB Schedule

Retrieve the current season's MLB schedule. Pass along a team code to retrieve the schedule for just that team.

URL:

Notes

* Leave the team code empty to retrieve the complete MLB schedule

* To retrieve the schedule for the New York Yankees, the URL would be https://fantasybaseballnerd.com/service/schedule/NYY

Nodes:

  • gameId: The unique FBN game ID
  • gameDateET: The game date and start time (Eastern Time Zone)
  • away: The away team
  • awayScore: The away team's score
  • home: The home team
  • homeScore: The home team's score
  • winner: The winner
MLB Injury Report

Retrieve the current injury reports for all MLB teams.

Nodes:

  • playerId: The unique FBN player ID
  • playerName: The player name
  • team: Team code for the player's team. Associated to the Teams API call.
  • position: The player's primary position
  • reason: The reason for the player's injury.
  • notes: Notes about this player's injury
MLB Depth Charts

Retrieve the current depth chart for a particular team.

URL:

Notes

* To retrieve the depth chart for the Boston Red Sox, the URL would be https://fantasybaseballnerd.com/service/depth/BOS

Nodes:

  • playerId: The unique FBN player ID
  • playerName: The player name
  • rank: The player's depth on the depth chart
Fantasy Baseball Draft Rankings

Retrieve the weighted consensus draft rankings.

Nodes:

  • rank: The player's overall fantasy baseball re-draft rank
  • playerId: The unique FBN player ID
  • playerName: The player name
  • team: Team code for the player's team. Associated to the Teams API call.
  • position: The player's primary position
  • adp: The player's average draft position
  • league: The league that this team belongs to (American/National)
Fantasy baseball Draft Projections

Retrieve the weighted consensus draft projections.

Nodes HITTERS:

  • playerId: The unique FBN player ID
  • playerName: The player name
  • team: Team code for the player's team. Associated to the Teams API call.
  • position: The player's primary position
  • league: The league that this team belongs to (American/National)
  • ab: At bats
  • r: Runs
  • hr: Home Runs
  • rbi: Runs Batted In
  • sb: Stolen Bases
  • avg: Batting Average
  • ops: On-base plus slugging
  • h: Hits (singles)
  • dbl: Doubles
  • tpl: Triples

Nodes PITCHERS:

  • playerId: The unique FBN player ID
  • playerName: The player name
  • team: Team code for the player's team. Associated to the Teams API call.
  • position: The player's primary position
  • league: The league that this team belongs to (American/National)
  • ip: Innings Pitched
  • w: Wins
  • so: Strikeouts
  • bb: Base on balls (walks)
  • sv: Saves
  • era: Earned Run Average
  • whip: Walks plus hits per inning pitched
  • g: Games played
  • gs: Games Started