---
title: "Get an MLB player boxscore"
method: GET
path: "/mlb/game-boxscore"
tags: ["MLB"]
---

# Get an MLB player boxscore

`GET /mlb/game-boxscore`

## Request

- Base URL: `https://api.crawlora.net/api/v1`
- URL: `https://api.crawlora.net/api/v1/mlb/game-boxscore`
- Auth: API key in header `x-api-key`

Returns the player box score for an MLB game by numeric `id`. For the home and away teams it lists each player used with position, batting order and batting, pitching and fielding stats, plus team totals.

## Query parameters

- `id` string, required

## Headers

- `x-api-key` string, required

## Response `200`

OK

- MlbBoxscoreResponseDoc
  - `code` integer
  - `data` MlbBoxscoreResponse
    - `away` MlbBoxscoreTeam
      - `players` MlbBoxscorePlayer[]
        - `batting_order` string
        - `person` MlbNamedRef
          - `id` integer: MLB id of the player or league.
          - `name` string: Name of the player or league.
        - `position` string
        - `stats` object
      - `team` MlbTeamRef
        - `abbreviation` string: Short team abbreviation, for example `NYY`. Omitted when not available.
        - `id` integer: MLB team id.
        - `name` string: Full team name.
      - `team_stats` object
    - `fetched_at` string
    - `game_id` integer
    - `home` MlbBoxscoreTeam
      - `players` MlbBoxscorePlayer[]
        - `batting_order` string
        - `person` MlbNamedRef
          - `id` integer: MLB id of the player or league.
          - `name` string: Name of the player or league.
        - `position` string
        - `stats` object
      - `team` MlbTeamRef
        - `abbreviation` string: Short team abbreviation, for example `NYY`. Omitted when not available.
        - `id` integer: MLB team id.
        - `name` string: Full team name.
      - `team_stats` object
    - `source_url` string
  - `msg` string

## Other responses

- `400`: Bad Request
- `404`: Not Found
- `503`: Service Unavailable

---

[API](https://skmtc.dev/crawlora/apis/crawlora-api.md) · [All operations](https://skmtc.dev/crawlora/apis/crawlora-api/llms.txt) · [OpenAPI document](https://skmtc.dev/crawlora/apis/crawlora-api/revisions/0497899e2016?raw)
