# MLB Division Standings Export

**Use case:** 

Export MLB standings: wins, losses, win percentage, games back, streak, division and league rank, runs scored and allowed. All 30 clubs, any season.

## Input

```json
{
  "operation": "standings",
  "season": "2026",
  "startDate": "2026-08-01",
  "endDate": "2026-08-07",
  "teamId": 147,
  "gamePk": 822781,
  "leaderCategory": "homeRuns",
  "maxResults": 200
}
```

## Output

```json
{
  "rowType": {
    "label": "🏷️ Record type",
    "format": "string"
  },
  "season": {
    "label": "🗓️ Season",
    "format": "string"
  },
  "teamId": {
    "label": "🆔 Team ID",
    "format": "integer"
  },
  "teamName": {
    "label": "🧢 Team",
    "format": "string"
  },
  "teamAbbreviation": {
    "label": "🔤 Abbr",
    "format": "string"
  },
  "locationName": {
    "label": "📍 Location",
    "format": "string"
  },
  "leagueName": {
    "label": "🏅 League",
    "format": "string"
  },
  "divisionName": {
    "label": "🗂️ Division",
    "format": "string"
  },
  "venueName": {
    "label": "🏟️ Venue",
    "format": "string"
  },
  "firstYearOfPlay": {
    "label": "📜 First season",
    "format": "string"
  },
  "gamePk": {
    "label": "🆔 Game ID",
    "format": "integer"
  },
  "gameDate": {
    "label": "🕐 Game date",
    "format": "string"
  },
  "gameStatus": {
    "label": "🚦 Status",
    "format": "string"
  },
  "homeTeam": {
    "label": "🏠 Home",
    "format": "string"
  },
  "homeScore": {
    "label": "🔢 Home runs",
    "format": "integer"
  },
  "awayTeam": {
    "label": "✈️ Away",
    "format": "string"
  },
  "awayScore": {
    "label": "🔢 Away runs",
    "format": "integer"
  },
  "seriesGameNumber": {
    "label": "🔁 Series game",
    "format": "integer"
  },
  "officialDate": {
    "label": "📅 Official date",
    "format": "string"
  },
  "abstractState": {
    "label": "🏁 State",
    "format": "string"
  },
  "gameType": {
    "label": "🎫 Game type",
    "format": "string"
  },
  "seriesDescription": {
    "label": "📖 Series",
    "format": "string"
  },
  "dayNight": {
    "label": "🌗 Day or night",
    "format": "string"
  },
  "homeTeamId": {
    "label": "🆔 Home team ID",
    "format": "integer"
  },
  "homeWins": {
    "label": "✅ Home wins",
    "format": "integer"
  },
  "homeLosses": {
    "label": "❌ Home losses",
    "format": "integer"
  },
  "homeRecordPct": {
    "label": "📈 Home win pct",
    "format": "string"
  },
  "awayTeamId": {
    "label": "🆔 Away team ID",
    "format": "integer"
  },
  "awayWins": {
    "label": "✅ Away wins",
    "format": "integer"
  },
  "awayLosses": {
    "label": "❌ Away losses",
    "format": "integer"
  },
  "awayRecordPct": {
    "label": "📈 Away win pct",
    "format": "string"
  },
  "winningTeam": {
    "label": "🏅 Winner",
    "format": "string"
  },
  "isTie": {
    "label": "🤝 Tie",
    "format": "boolean"
  },
  "venueId": {
    "label": "🆔 Venue ID",
    "format": "integer"
  },
  "gameNumber": {
    "label": "#️⃣ Game number",
    "format": "integer"
  },
  "gamesInSeries": {
    "label": "📚 Games in series",
    "format": "integer"
  },
  "doubleHeader": {
    "label": "👥 Doubleheader",
    "format": "string"
  },
  "scheduledInnings": {
    "label": "🔢 Scheduled innings",
    "format": "integer"
  },
  "currentInning": {
    "label": "⚾ Inning reached",
    "format": "integer"
  },
  "gameUrl": {
    "label": "🔗 Gameday",
    "format": "string"
  },
  "wins": {
    "label": "✅ Wins",
    "format": "integer"
  },
  "losses": {
    "label": "❌ Losses",
    "format": "integer"
  },
  "winningPercentage": {
    "label": "📈 Win pct",
    "format": "string"
  },
  "gamesBack": {
    "label": "↔️ Games back",
    "format": "string"
  },
  "streakCode": {
    "label": "🔥 Streak",
    "format": "string"
  },
  "divisionRank": {
    "label": "🥇 Division rank",
    "format": "string"
  },
  "leagueRank": {
    "label": "🏅 League rank",
    "format": "string"
  },
  "runsScored": {
    "label": "🏃 Runs scored",
    "format": "integer"
  },
  "runsAllowed": {
    "label": "🛡️ Runs allowed",
    "format": "integer"
  },
  "playerId": {
    "label": "🆔 Player ID",
    "format": "integer"
  },
  "playerName": {
    "label": "🧑 Player",
    "format": "string"
  },
  "jerseyNumber": {
    "label": "👕 Jersey",
    "format": "string"
  },
  "positionAbbreviation": {
    "label": "🔤 Pos",
    "format": "string"
  },
  "positionName": {
    "label": "🧭 Position",
    "format": "string"
  },
  "playerStatus": {
    "label": "🚦 Player status",
    "format": "string"
  },
  "statCategory": {
    "label": "📊 Category",
    "format": "string"
  },
  "statValue": {
    "label": "🔢 Value",
    "format": "string"
  },
  "rank": {
    "label": "🥇 Rank",
    "format": "integer"
  },
  "battingHits": {
    "label": "🥎 Hits",
    "format": "integer"
  },
  "battingAtBats": {
    "label": "🏏 At bats",
    "format": "integer"
  },
  "battingRuns": {
    "label": "🏃 Runs",
    "format": "integer"
  },
  "battingRbi": {
    "label": "💥 RBI",
    "format": "integer"
  },
  "seasonAvg": {
    "label": "📉 Season avg",
    "format": "string"
  },
  "sourceUrl": {
    "label": "🔗 Source",
    "format": "string"
  },
  "scrapedAt": {
    "label": "🕐 Collected at",
    "format": "string"
  }
}
```

## About this Actor

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


## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
This Task's input is already configured above — use it as-is rather than inventing a new one.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/sian.agency/mlb-stats-scraper.md

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).
