sports

MLB games for a date (and optionally one team), via the...

MLB games for a date (and optionally one team), via the official MLB Stats API (free/keyless). Each game: gamePk, start time, detailed status (Scheduled/In Progress/Final), away and home team + score, and venue. Defaults to today when no date is given. Live scores + schedule for agents.

get/api/sports/mlb-schedule

Request

  • Base URL: https://2s.io
  • URL: https://2s.io/api/sports/mlb-schedule
  • Auth: API key in header PAYMENT-SIGNATURE

Query parameters

datestring

YYYY-MM-DD; defaults to today.

teamIdinteger

MLB team id to filter to one club.

trial1

Try before you buy. Set to 1 for one free real call per endpoint per hour — no wallet or payment needed — to verify the endpoint before paying. Equivalent to sending the "X-2s-Trial: 1" request header. Listed only on operations that offer a trial; the others always answer 402.

Response

(unresolved $ref)

Changes

No recorded changes to this operation across all 1 revision of this API.