MLB Teams, Player Search & Season Schedule Lookup avatar

MLB Teams, Player Search & Season Schedule Lookup

Pricing

from $0.49 / 1,000 results

Go to Apify Store
MLB Teams, Player Search & Season Schedule Lookup

MLB Teams, Player Search & Season Schedule Lookup

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.

Pricing

from $0.49 / 1,000 results

Rating

0.0

(0)

Developer

vexaloom-labs

vexaloom-labs

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

17 days ago

Last modified

Features

Limited permissions

Share

Pull 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.

What this actor does

  • Lists every current MLB team with city, stadium, founding year, and official website
  • Searches MLB players by name and returns position, physical stats, nationality, and a short bio
  • Pulls a full season's game schedule with home/away teams, scores, venue, and status
  • Tags every record with a recordType so mixed exports stay easy to filter
  • Only includes a field when the data source actually supplied it β€” no blank or placeholder values

Output per team (recordType: "mlb_team")

  • teamId β€” unique team identifier
  • teamName β€” full team name
  • shortName β€” abbreviated team name
  • city β€” team's home location
  • stadium β€” home stadium name
  • formedYear β€” year the franchise was founded
  • website β€” official team website
  • logoUrl β€” team logo image URL
  • teamUrl β€” reference page for the team
  • scrapedAt β€” ISO 8601 timestamp of when the record was collected

Output per player (recordType: "mlb_player")

  • playerId β€” unique player identifier
  • playerName β€” player's full name
  • team β€” current team name
  • nationality β€” player's nationality
  • position β€” playing position
  • height / weight β€” physical stats as published
  • birthDate β€” date of birth
  • description β€” short biography (truncated to 300 characters)
  • imageUrl β€” player photo or cutout image
  • profileUrl β€” reference page for the player
  • scrapedAt β€” ISO 8601 timestamp of when the record was collected

Output per game (recordType: "mlb_game")

  • eventId β€” unique game/event identifier
  • eventName β€” game title (typically "Away Team vs Home Team")
  • homeTeam / awayTeam β€” team names
  • homeScore / awayScore β€” final or current score (omitted for games that haven't been played yet)
  • season β€” season the game belongs to
  • matchDate β€” date the game was/is scheduled
  • venue β€” stadium where the game is played
  • status β€” game status as published
  • eventUrl β€” reference page for the game
  • scrapedAt β€” ISO 8601 timestamp of when the record was collected

Input

FieldTypeDefaultDescription
modestringteamsteams (all current MLB teams), players (search by name), or games (a season's schedule)
searchQuerystringShohei OhtaniPlayer name to search; used only in players mode
seasonstring2024Season year to pull games for (2022, 2023, or 2024); used only in games mode
maxItemsinteger20Maximum records to return (1–200)

Example: list all current MLB teams

{
"mode": "teams",
"maxItems": 30
}

Example: search for a player

{
"mode": "players",
"searchQuery": "Aaron Judge",
"maxItems": 10
}

Example: pull a season's schedule

{
"mode": "games",
"season": "2023",
"maxItems": 200
}

Use cases

  • Fantasy baseball tools pulling player bios and team reference data to enrich a roster app
  • Sports content sites keeping a simple, always-current list of MLB teams and stadiums
  • Analytics projects building a season-by-season game log without hand-collecting scores
  • Trivia and reference apps looking up a player's position, nationality, or physical stats by name
  • Data pipelines that need a lightweight MLB reference layer without a paid sports-data subscription

FAQ

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.

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.

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.

Which seasons can I pull with games mode? 2022, 2023, or 2024 β€” pick the one you need in the season input.

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.

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.