Skip to content
//MLB Stats Scraper example\\

Player box score lines for one game

Every batter's and pitcher's line from one game, by game id.

Updated October 21, 2026

Input

The input this example runs MLB Stats Scraper with. “Try this input” opens it in the console, where you can run it as-is or change any field first.

What to scrapemode
Box scores: per team or per player
Game ids or URLsgamePks
823431
Maximum resultsmaxItems
40
Box score detailboxScoreLevel
Every player's line
.json
{
  "mode": "gameDetails",
  "gamePks": [
    "823431"
  ],
  "boxScoreLevel": "players",
  "maxItems": 40
}

The internet is full of data.
Start owning yours.

Scrape.ly gives you the infrastructure, the tooling, and the team to extract, process, and operationalize web data at any scale. Setup takes minutes. The advantage lasts forever.

No credit card. No setup calls.