# Get 2024 MLB Team Rosters & Player IDs

**Use case:** 

Scrape current MLB team rosters for player analysis, fantasy sports research, or scouting insights. Obtain official player IDs and team assignments for data int

## Input

```json
{
  "mode": "players",
  "season": 2024,
  "teamId": 147,
  "leagueId": "both",
  "statGroup": "hitting",
  "gameType": "R",
  "maxItems": 100
}
```

## Output

```json
{
  "name": {
    "label": "Name"
  },
  "teamId": {
    "label": "Team id"
  },
  "divisionName": {
    "label": "Division name"
  },
  "leagueName": {
    "label": "League name"
  },
  "wins": {
    "label": "Wins"
  },
  "losses": {
    "label": "Losses"
  },
  "pct": {
    "label": "Pct"
  }
}
```

## About this Actor

This example demonstrates how to use [MLB Stats Scraper](https://apify.com/crawlerbros/mlb-stats-scraper) with a specific input configuration. Visit the [Actor detail page](https://apify.com/crawlerbros/mlb-stats-scraper) to learn more, explore other use cases, and run it yourself.