{
  "data": {
    "id": "b2Vethd3jXTHCddNy",
    "actId": "wVtKgpxucAbbIa9P3",
    "userId": "NL4ThgItAwaoBlffQ",
    "startedAt": "2026-11-11T04:11:20.139Z",
    "finishedAt": "2026-11-11T04:11:41.377Z",
    "status": "SUCCEEDED",
    "meta": {
      "origin": "CI"
    },
    "stats": {
      "durationMillis": 21155,
      "runTimeSecs": 21.155,
      "computeUnits": 0.023505555555555554,
      "imageSizeBytes": 374625280
    },
    "options": {
      "useCache": true,
      "betaPackages": false,
      "memoryMbytes": 4096,
      "diskMbytes": 8192
    },
    "createdByOrganizationMemberUserId": "zifX0mkAFMHe8CatY",
    "exitCode": 0,
    "inputSchema": "{\n  \"title\": \"MLB Stats Scraper Input\",\n  \"description\": \"Scrape MLB teams, players, and game results from TheSportsDB free API.\",\n  \"type\": \"object\",\n  \"schemaVersion\": 1,\n  \"properties\": {\n    \"mode\": {\n      \"title\": \"Mode\",\n      \"description\": \"What data to fetch.\",\n      \"type\": \"string\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"teams\",\n        \"players\",\n        \"games\"\n      ],\n      \"enumTitles\": [\n        \"MLB Teams\",\n        \"Player Search\",\n        \"Season Games\"\n      ],\n      \"default\": \"teams\",\n      \"prefill\": \"teams\"\n    },\n    \"searchQuery\": {\n      \"title\": \"Search query\",\n      \"description\": \"Player name for players mode.\",\n      \"type\": \"string\",\n      \"editor\": \"textfield\",\n      \"default\": \"Shohei Ohtani\",\n      \"prefill\": \"Shohei Ohtani\"\n    },\n    \"season\": {\n      \"title\": \"Season\",\n      \"description\": \"MLB season year.\",\n      \"type\": \"string\",\n      \"editor\": \"select\",\n      \"enum\": [\n        \"2022\",\n        \"2023\",\n        \"2024\"\n      ],\n      \"enumTitles\": [\n        \"2022\",\n        \"2023\",\n        \"2024\"\n      ],\n      \"default\": \"2024\",\n      \"prefill\": \"2024\"\n    },\n    \"maxItems\": {\n      \"title\": \"Max items\",\n      \"description\": \"Maximum records to return.\",\n      \"type\": \"integer\",\n      \"minimum\": 1,\n      \"maximum\": 200,\n      \"default\": 20,\n      \"prefill\": 20\n    }\n  },\n  \"required\": [\n    \"mode\"\n  ]\n}",
    "readme": "# MLB Teams, Player Search & Season Schedule Lookup\n\nPull Major League Baseball reference data in three shapes: the full list of current MLB teams with their stadium and founding details, a name search across MLB players with bio and position info, or a season's full schedule of games with final or in-progress scores.\n\n## What this actor does\n\n- Lists every current MLB team with city, stadium, founding year, and official website\n- Searches MLB players by name and returns position, physical stats, nationality, and a short bio\n- Pulls a full season's game schedule with home/away teams, scores, venue, and status\n- Tags every record with a `recordType` so mixed exports stay easy to filter\n- Only includes a field when the data source actually supplied it — no blank or placeholder values\n\n## Output per team (`recordType: \"mlb_team\"`)\n\n- `teamId` — unique team identifier\n- `teamName` — full team name\n- `shortName` — abbreviated team name\n- `city` — team's home location\n- `stadium` — home stadium name\n- `formedYear` — year the franchise was founded\n- `website` — official team website\n- `logoUrl` — team logo image URL\n- `teamUrl` — reference page for the team\n- `scrapedAt` — ISO 8601 timestamp of when the record was collected\n\n## Output per player (`recordType: \"mlb_player\"`)\n\n- `playerId` — unique player identifier\n- `playerName` — player's full name\n- `team` — current team name\n- `nationality` — player's nationality\n- `position` — playing position\n- `height` / `weight` — physical stats as published\n- `birthDate` — date of birth\n- `description` — short biography (truncated to 300 characters)\n- `imageUrl` — player photo or cutout image\n- `profileUrl` — reference page for the player\n- `scrapedAt` — ISO 8601 timestamp of when the record was collected\n\n## Output per game (`recordType: \"mlb_game\"`)\n\n- `eventId` — unique game/event identifier\n- `eventName` — game title (typically \"Away Team vs Home Team\")\n- `homeTeam` / `awayTeam` — team names\n- `homeScore` / `awayScore` — final or current score (omitted for games that haven't been played yet)\n- `season` — season the game belongs to\n- `matchDate` — date the game was/is scheduled\n- `venue` — stadium where the game is played\n- `status` — game status as published\n- `eventUrl` — reference page for the game\n- `scrapedAt` — ISO 8601 timestamp of when the record was collected\n\n## Input\n\n| Field | Type | Default | Description |\n|---|---|---|---|\n| `mode` | string | `teams` | `teams` (all current MLB teams), `players` (search by name), or `games` (a season's schedule) |\n| `searchQuery` | string | `Shohei Ohtani` | Player name to search; used only in `players` mode |\n| `season` | string | `2024` | Season year to pull games for (`2022`, `2023`, or `2024`); used only in `games` mode |\n| `maxItems` | integer | `20` | Maximum records to return (1–200) |\n\n### Example: list all current MLB teams\n\n```json\n{\n    \"mode\": \"teams\",\n    \"maxItems\": 30\n}\n```\n\n### Example: search for a player\n\n```json\n{\n    \"mode\": \"players\",\n    \"searchQuery\": \"Aaron Judge\",\n    \"maxItems\": 10\n}\n```\n\n### Example: pull a season's schedule\n\n```json\n{\n    \"mode\": \"games\",\n    \"season\": \"2023\",\n    \"maxItems\": 200\n}\n```\n\n## Use cases\n\n- **Fantasy baseball tools** pulling player bios and team reference data to enrich a roster app\n- **Sports content sites** keeping a simple, always-current list of MLB teams and stadiums\n- **Analytics projects** building a season-by-season game log without hand-collecting scores\n- **Trivia and reference apps** looking up a player's position, nationality, or physical stats by name\n- **Data pipelines** that need a lightweight MLB reference layer without a paid sports-data subscription\n\n## FAQ\n\n**Do I need an API key or MLB account?** No — all three modes read from a free, public sports-data source and require no authentication.\n\n**Why does `players` mode only return results for one name at a time?** Each run searches the single name given in `searchQuery`; run it again with a different name to look up another player.\n\n**Why are `homeScore`/`awayScore` sometimes missing from a game record?** Those fields are only included once a score has actually been published for that game; scheduled-but-not-yet-played games omit them rather than showing a zero.\n\n**Which seasons can I pull with `games` mode?** 2022, 2023, or 2024 — pick the one you need in the `season` input.\n\n**Why is `description` cut off at 300 characters?** Player biographies are truncated to keep records a consistent, manageable size; the full bio is not currently returned.\n\n**Is this affiliated with Major League Baseball?** No. This is an independent actor that reads publicly available MLB reference data; it is not endorsed by or affiliated with MLB or any team.\n",
    "actorDefinition": {
      "actorSpecification": 1,
      "name": "mlb-teams-player-search-and-season-schedule-lookup",
      "title": "MLB Teams, Player Search & Season Schedule Lookup",
      "description": "Look up every current MLB team, search for a player by name, or pull a full season's schedule and scores, with stadium, roster, and matchup details for each record.",
      "version": "1.0",
      "buildTag": "latest",
      "dockerfile": "../Dockerfile",
      "readme": "# MLB Teams, Player Search & Season Schedule Lookup\n\nPull Major League Baseball reference data in three shapes: the full list of current MLB teams with their stadium and founding details, a name search across MLB players with bio and position info, or a season's full schedule of games with final or in-progress scores.\n\n## What this actor does\n\n- Lists every current MLB team with city, stadium, founding year, and official website\n- Searches MLB players by name and returns position, physical stats, nationality, and a short bio\n- Pulls a full season's game schedule with home/away teams, scores, venue, and status\n- Tags every record with a `recordType` so mixed exports stay easy to filter\n- Only includes a field when the data source actually supplied it — no blank or placeholder values\n\n## Output per team (`recordType: \"mlb_team\"`)\n\n- `teamId` — unique team identifier\n- `teamName` — full team name\n- `shortName` — abbreviated team name\n- `city` — team's home location\n- `stadium` — home stadium name\n- `formedYear` — year the franchise was founded\n- `website` — official team website\n- `logoUrl` — team logo image URL\n- `teamUrl` — reference page for the team\n- `scrapedAt` — ISO 8601 timestamp of when the record was collected\n\n## Output per player (`recordType: \"mlb_player\"`)\n\n- `playerId` — unique player identifier\n- `playerName` — player's full name\n- `team` — current team name\n- `nationality` — player's nationality\n- `position` — playing position\n- `height` / `weight` — physical stats as published\n- `birthDate` — date of birth\n- `description` — short biography (truncated to 300 characters)\n- `imageUrl` — player photo or cutout image\n- `profileUrl` — reference page for the player\n- `scrapedAt` — ISO 8601 timestamp of when the record was collected\n\n## Output per game (`recordType: \"mlb_game\"`)\n\n- `eventId` — unique game/event identifier\n- `eventName` — game title (typically \"Away Team vs Home Team\")\n- `homeTeam` / `awayTeam` — team names\n- `homeScore` / `awayScore` — final or current score (omitted for games that haven't been played yet)\n- `season` — season the game belongs to\n- `matchDate` — date the game was/is scheduled\n- `venue` — stadium where the game is played\n- `status` — game status as published\n- `eventUrl` — reference page for the game\n- `scrapedAt` — ISO 8601 timestamp of when the record was collected\n\n## Input\n\n| Field | Type | Default | Description |\n|---|---|---|---|\n| `mode` | string | `teams` | `teams` (all current MLB teams), `players` (search by name), or `games` (a season's schedule) |\n| `searchQuery` | string | `Shohei Ohtani` | Player name to search; used only in `players` mode |\n| `season` | string | `2024` | Season year to pull games for (`2022`, `2023`, or `2024`); used only in `games` mode |\n| `maxItems` | integer | `20` | Maximum records to return (1–200) |\n\n### Example: list all current MLB teams\n\n```json\n{\n    \"mode\": \"teams\",\n    \"maxItems\": 30\n}\n```\n\n### Example: search for a player\n\n```json\n{\n    \"mode\": \"players\",\n    \"searchQuery\": \"Aaron Judge\",\n    \"maxItems\": 10\n}\n```\n\n### Example: pull a season's schedule\n\n```json\n{\n    \"mode\": \"games\",\n    \"season\": \"2023\",\n    \"maxItems\": 200\n}\n```\n\n## Use cases\n\n- **Fantasy baseball tools** pulling player bios and team reference data to enrich a roster app\n- **Sports content sites** keeping a simple, always-current list of MLB teams and stadiums\n- **Analytics projects** building a season-by-season game log without hand-collecting scores\n- **Trivia and reference apps** looking up a player's position, nationality, or physical stats by name\n- **Data pipelines** that need a lightweight MLB reference layer without a paid sports-data subscription\n\n## FAQ\n\n**Do I need an API key or MLB account?** No — all three modes read from a free, public sports-data source and require no authentication.\n\n**Why does `players` mode only return results for one name at a time?** Each run searches the single name given in `searchQuery`; run it again with a different name to look up another player.\n\n**Why are `homeScore`/`awayScore` sometimes missing from a game record?** Those fields are only included once a score has actually been published for that game; scheduled-but-not-yet-played games omit them rather than showing a zero.\n\n**Which seasons can I pull with `games` mode?** 2022, 2023, or 2024 — pick the one you need in the `season` input.\n\n**Why is `description` cut off at 300 characters?** Player biographies are truncated to keep records a consistent, manageable size; the full bio is not currently returned.\n\n**Is this affiliated with Major League Baseball?** No. This is an independent actor that reads publicly available MLB reference data; it is not endorsed by or affiliated with MLB or any team.\n",
      "input": {
        "title": "MLB Stats Scraper Input",
        "description": "Scrape MLB teams, players, and game results from TheSportsDB free API.",
        "type": "object",
        "schemaVersion": 1,
        "properties": {
          "mode": {
            "title": "Mode",
            "description": "What data to fetch.",
            "type": "string",
            "editor": "select",
            "enum": [
              "teams",
              "players",
              "games"
            ],
            "enumTitles": [
              "MLB Teams",
              "Player Search",
              "Season Games"
            ],
            "default": "teams",
            "prefill": "teams"
          },
          "searchQuery": {
            "title": "Search query",
            "description": "Player name for players mode.",
            "type": "string",
            "editor": "textfield",
            "default": "Shohei Ohtani",
            "prefill": "Shohei Ohtani"
          },
          "season": {
            "title": "Season",
            "description": "MLB season year.",
            "type": "string",
            "editor": "select",
            "enum": [
              "2022",
              "2023",
              "2024"
            ],
            "enumTitles": [
              "2022",
              "2023",
              "2024"
            ],
            "default": "2024",
            "prefill": "2024"
          },
          "maxItems": {
            "title": "Max items",
            "description": "Maximum records to return.",
            "type": "integer",
            "minimum": 1,
            "maximum": 200,
            "default": 20,
            "prefill": 20
          }
        },
        "required": [
          "mode"
        ]
      },
      "output": {
        "actorOutputSchemaVersion": 1,
        "title": "MLB Teams, Player Search & Season Schedule Lookup Output",
        "description": "One record per MLB team, matched player, or scheduled/completed game, depending on the selected mode.",
        "properties": {
          "results": {
            "type": "string",
            "title": "MLB Records",
            "description": "Dataset containing all scraped MLB team, player, or game records.",
            "template": "{{links.apiDefaultDatasetUrl}}/items"
          }
        }
      },
      "storages": {
        "dataset": {
          "actorSpecification": 1,
          "views": {
            "overview": {
              "title": "MLB Stats Scraper",
              "transformation": {
                "fields": [
                  "teamName",
                  "playerName",
                  "eventName",
                  "homeTeam",
                  "awayTeam",
                  "matchDate"
                ]
              },
              "display": {
                "component": "table",
                "properties": {}
              }
            }
          }
        }
      },
      "environmentVariables": {}
    },
    "buildNumber": "1.0.4",
    "imageDigest": "ecd96764cd919b7e8fbb64aace0e3af92158a06e3649a8bb56deebae4bfd21dc",
    "actVersion": {
      "sourceType": "SOURCE_FILES",
      "buildTag": "latest",
      "versionNumber": "1.0"
    },
    "usage": {
      "ACTOR_COMPUTE_UNITS": 0.023505555555555554
    }
  }
}