GET
Compare baseball players for a season
Reference context: MLB. Overview · Response conventions

Authorizations

Authorization
string
header
required

Send a workspace API token in the Authorization: Bearer <token> header.

Path Parameters

league
enum<string>
default:mlb
required

League for this reference section: mlb.

Available options:
mlb

Query Parameters

ids
string
required

Two to six CSV player IDs. At least two required; additional IDs beyond six are ignored.

season
integer
Required range: 1920 <= x <= 2100
scope
string
provenance
boolean
default:false

Opt in to per-field provenance on supported single game, match, team, player, and venue reads. Lists and composites accept the flag but generally omit provenance. It is returned under _meta.provenance only when source metadata exists.

Response

Comparable season statistics for the requested players.

data
object
required
_meta
object