List players for MLB
Request
- Base URL: https://api.stat-api.com
- URL: https://api.stat-api.com/api/v1/mlb/players
- Auth: HTTP bearer
Query parameters
Filter to players whose current team_id matches. Null team_id rows (free agents, retired) are excluded when this filter is applied.
Filter by canonical roster status. The "on a team now" set is {active, injured_reserve, non_roster} (active 26-man, injured list, and 40-man-but-optioned); free_agent/retired/inactive are off-roster.
Page size; defaults to (and is capped at) 5000.
Return rows with id strictly greater than this value, in ascending id order. To walk every row, start at 0 and then pass the previous response's next_from_id. Without it, the first page uses the table's default sort and returns no cursor.
Response format: json (default) or csv — the same rows as CSV with raw values, a blank cell for null, and X-Next-From-Id when another page exists. With format=csv only, the API key may be passed as the key query param (for Google Sheets IMPORTDATA); use a separate, revocable key for that.
Response
players rows matching the declared filter set.
Changes
No recorded changes to this operation across all 3 revisions of this API.