---
# System prepended metadata

title: Baseball API

---

# Baseball API

## 초기 화면 API ([API_URL]/game/{gameId}/initialInfo)

```json=
{
  "gameId": 1,
  "homeTeam": {
    "id": 1,
    "name": "Backend",
    "pitcher": {
      "id": 1,
      "name": "Dion",
      "backNumber": 1
    },
    "batters": [
      {
        "id": 1,
        "name": "XP",
        "backNumber": 2,
        "atBat": 0,
        "hit": 0
      },
      {
        "id": 2,
        "name": "Jack",
        "backNumber": 3,
        "atBat": 0,
        "hit": 0
      },
      {
        "id": 3,
        "name": "Jay",
        "backNumber": 4,
        "atBat": 0,
        "hit": 0
      },
      {
        "id": 4,
        "name": "David",
        "backNumber": 5,
        "atBat": 0,
        "hit": 0
      },
      {
        "id": 5,
        "name": "Ever",
        "backNumber": 6,
        "atBat": 0,
        "hit": 0
      },
      {
        "id": 6,
        "name": "Sigrid",
        "backNumber": 7,
        "atBat": 0,
        "hit": 0
      },
      {
        "id": 7,
        "name": "Mocha",
        "backNumber": 8,
        "atBat": 0,
        "hit": 0
      },
      {
        "id": 8,
        "name": "Alex",
        "backNumber": 9,
        "atBat": 0,
        "hit": 0
      },
      {
        "id": 9,
        "name": "Han",
        "backNumber": 10,
        "atBat": 0,
        "hit": 0
      }
    ]
  },
  "awayTeam": {
    "id": 2,
    "name": "Frontend",
    "pitcher": {
      "id": 2,
      "name": "Won",
      "backNumber": 20
    },
    "batters": [
      {
        "id": 10,
        "name": "Baekco",
        "backNumber": 21,
        "atBat": 0,
        "hit": 0
      },
      {
        "id": 11,
        "name": "Reese",
        "backNumber": 22,
        "atBat": 0,
        "hit": 0
      },
      {
        "id": 12,
        "name": "Sally",
        "backNumber": 23,
        "atBat": 0,
        "hit": 0
      },
      {
        "id": 13,
        "name": "Joy",
        "backNumber": 24,
        "atBat": 0,
        "hit": 0
      },
      {
        "id": 14,
        "name": "Huey",
        "backNumber": 25,
        "atBat": 0,
        "hit": 0
      },
      {
        "id": 15,
        "name": "Ellin",
        "backNumber": 26,
        "atBat": 0,
        "hit": 0
      },
      {
        "id": 16,
        "name": "Lime",
        "backNumber": 27,
        "atBat": 0,
        "hit": 0
      },
      {
        "id": 17,
        "name": "Zello",
        "backNumber": 28,
        "atBat": 0,
        "hit": 0
      },
      {
        "id": 18,
        "name": "Hoo",
        "backNumber": 29,
        "atBat": 0,
        "hit": 0
      }
    ]
  }
}
```