Go to example tasks

Get New York Yankees Roster and Player Stats from MLB

Extract the current New York Yankees active roster directly from the MLB Stats API. This task returns detailed player bios and season performance metrics, including batting average, home runs, and RBIs. Ideal for fantasy baseball managers and sports developers, it provides fields like fullName, primaryPosition, and jerseyNumber. Change the teamIds to follow other clubs.

Try for free
Official MLB Team, Schedule & Stat Line Scraper
Official MLB Team, Schedule & Stat Line Scraperdataspryva/official-mlb-team-schedule-and-stat-line-scraper
Record type
Player name
Team name
Game pk
+8 fields
Text
Number
Boolean
List
Object

Input

Mode(required):getPlayers
Teams:Yankees
Seasons:2024
Roster type:active
Include season stats:true
Maximum records:40

Output fields

Record type
Player name
Team name
Game pk
Official date
Stat group
Leader category
Rank
Value
Home runs
Batting average
Era

How it works

Sign up on Apify or log in

The Official MLB Team, Schedule & Stat Line Scraper Actor is ready to run with the inputs already set for "Get New York Yankees Roster and Player Stats from MLB". Sign up or log in and you'll land in Apify Console with a copy of this exact task.

Start the "Get New York Yankees Roster and Player Stats from MLB" task

The Official MLB Team, Schedule & Stat Line Scraper Actor will start running based on the input automatically. You can also change all the input fields, like mode, teams, and more, to match your specific use case.

Receive the "Get New York Yankees Roster and Player Stats from MLB" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as record type, player name, team name, and more.

Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also run the "Get New York Yankees Roster and Player Stats from MLB" task via API.

Image

Integrate "Get New York Yankees Roster and Player Stats from MLB" into your workflow

Connect "Get New York Yankees Roster and Player Stats from MLB" with 100+ integrations, or run it via API or MCP.

Webhook

Webhook

n8n

n8n

Make

Make

Zapier

Zapier

Airbyte

Airbyte

Keboola

Keboola

IFTTT

IFTTT

Hubspot

Hubspot

GDrive

GDrive

Gmail

Gmail

Apify MCP

Apify MCP

GitHub

GitHub

Slack

Slack

LangChain

LangChain

LlamaIndex

LlamaIndex

Flowise

Flowise

Pinecone

Pinecone

OpenAI

OpenAI

Mastra

Mastra

Clay

Clay

Frequently asked questions

The MLB roster task returns Yankees player bios and roster details from MLB’s public Stats API. The supplied settings select the active roster; use “Try for free” to copy them into your account and run the task.

The MLB roster task can return player names, positions, jersey numbers, bios, and other roster details. With stats enabled, it attaches season stats for the selected stat group.

In the MLB roster task, change the team selection to an MLB team ID, name, abbreviation, or team URL. For example, the Yankees ID is 147 and their abbreviation is NYY.

After running the MLB roster task, download its dataset as CSV, Excel, JSON, XML, RSS, or an HTML table, or read the results through the Apify API.

You can run the MLB roster task on an Apify schedule, through the Apify API, or using integrations such as Zapier, Make, and n8n.