get
https://api.rotowire.com/Baseball/MLB/DepthChart.php
Attributes
Top-Level Fields
| Field | Type | Description |
|---|---|---|
Teams | array | Array of team objects |
Teams Object
| Field | Type | Description |
|---|---|---|
Id | integer | Unique RotoWire identifier |
Code | string | Short team code or abbreviation (e.g. NYY, LAL, NE) |
Name | string | Full name |
Nickname | string | Team or player nickname |
Players | array | Array of player objects |
Players Object
| Field | Type | Description |
|---|---|---|
Id | integer | Unique RotoWire identifier |
FirstName | string | Player's first name |
LastName | string | Player's last name |
Position | string | Player's eligible position(s) (e.g. SP, RP, CP, C, 1B, 2B, 3B, SS, LF, CF, RF, OF, DH) |
Rank | integer | Depth chart ranking at this position. 1 is typically the regular starter. |
The API returns the full dataset for all teams. Use the fields below to filter the response on the client side — they are not query parameters.
Response Filters
| Field | Type | Description | Example |
|---|---|---|---|
Teams[].Code | string | Three-letter team code | "ANA", "NYY" |
Teams[].Name | string | Full team name | "Los Angeles Angels" |
Teams[].Id | integer | RotoWire team ID | 1 |
Teams[].Players[].Position | string | Positional filter | "1B", "SP", "RP" |
Teams[].Players[].Id | integer | RotoWire player ID | 12149 |
Teams[].Players[].Rank | integer | Depth chart rank at position | 1 (starter), 2 (backup) |
