From MLB Feeds to Tableau:

binary code matrix aesthetic in green light

Mining ABS Data with Claude and VSCode

How I turned game feeds into a dataset for exploring MLB’s ABS challenges—and why I checked the data before trusting the charts.

A challenged pitch is a small moment in a game—and a surprisingly complicated row in a dataset.

On March 26, 2026, Rays catcher Nick Fortes challenged a call on Cardinals batter Nolan Gorman. The original ball call was overturned to a strike. The play record shows that the at-bat later ended with a two-run single. For a dashboard, I wanted to connect that moment to its game, participants, pitch location, result, and video.

That became the data problem: how do you collect the same kinds of details across thousands of games, and make the result dependable enough to explore?

The following screenshot shows the finished Tableau dashboard. As you can see, we start off with overall KPIs and begin the granularity navigation as you proceed down the dashboard.

Finding the Data

I started by investigating the available game data. The MLB Stats API schedule gave me a list of finished games and their game IDs. But the schedule alone didn’t include the pitch-level information I needed.

An exploratory probe pointed me to Baseball Savant’s game feed. It included pitch records and an ‘abs challenge’ flag, along with challenge details. That suggested a way forward: use the schedule to find games, then use each game’s feed to collect pitch and challenge information.

The game_id identifies the game; the play_id identifies a particular pitch or play within it. Those identifiers give the data a way to connect the challenge record to its context—and, later, to a video link.

From a Game Feed to a Row

A python collector filters the schedule to finished games, then requests a feed for each game. A game feed can repeat pitches in different lists, so the collector uses the home and away pitch lists and de-duplicates pitches by play ID.

For a challenged pitch, it records information such as the game, inning, count, batter, pitcher, catcher, challenger, pitch location, umpire, and challenge result. That turns a challenge from a simple “overturned” flag into an event that can be compared with other games or investigated on its own.

The collector writes separate CSVs for challenges and games. There’s also an optional pitch-level file for every pitch, plus a player lookup file. That optional file is much larger, but it makes it possible to analyze challenges relative to called pitches instead of looking at challenge counts alone.

Making the Files Useful in Tableau

The collector’s CSVs preserve the event data.

A separate preparation script adds fields that make the data easier to use in the dashboard:

  • A readable result label
  • a Baseball Savant video URL (from the play_id)
  • Plotting coordinates for each challenged pitch (HUGE!)

Vertical location needs special care. Each batter has an individual strike zone, so the preparation step rescales pitch height relative to that batter’s zone to make pitches easier to compare on one chart. That’s a visualization transformation—not a new ABS ruling or a claim that every batter has the same physical strike zone.

For example, the challenge record for Fortes and Gorman can be labeled “Ball → Strike (overturned)” and linked to its play ID. The chart can show the pitch’s location; the video restores the game context around it.

From a Pitch to Video

A dot on a strike-zone chart can show where a pitch crossed the plate, but it can’t show the moment around the call. I created a small web page called a video wrapper. Tableau passes the selected pitch’s play ID to the wrapper, which uses it to open the corresponding Baseball Savant video page inside an embedded frame.

GitHub Pages hosts the wrapper; Baseball Savant supplies the page and video.

The wrapper does more than pass along a link. On desktop, it scales and crops the embedded Savant page to focus the dashboard space on the video. It also provides an “Open full Savant page” link for readers who want the original page. Before a pitch is selected, the wrapper displays a prompt; it also checks that a supplied play ID has the expected format.

This extra layer makes the video feel more connected to the chart: select a mark, see the pitch location, then watch the play in context.

Note: The wrapper depends on Savant’s page layout, though, so it may need adjustment if that layout changes.

The biggest thing I wanted to accomplish here is to not disrupt the user experience.

When you leverage Tableau’s URL dashboard actions, you have the ability to use an existing web object or navigate the URL to open in a new window. The latter option is something that I did not want; opening a new window will navigate the user to another location and more importantly, move their attention away from the dashboard. I wanted the video interaction to stay in the dashboard.

When running some tests I noticed that the Baseball Savant site renders the same way, you have supplemental information surrounding the game, teams involved, and the challenge in place. The video itself which is the context I want renders towards the middle bottom portion of the site; you have to scroll down to view the video highlight which requires the user to self scroll to that part of the page (leading to a fragmented experience). With Claude’s help, I was able to verbalize this peculiar use case and was guided toward building a video wrapper through my GitHub repository as the platform.

The below shows all challenges mapped on the strike zone and the end result when you select a challenge. A web object appears via Dynamic Zone Visibility to render the video highlight via Baseball Savant. The video wrapper renders the highlight to the web object eliminating the need to scroll down a full page.

Where AI fit in the Lineup

Claude helped me set the scope of the project. I provided the problem; in this case, I wanted to visualize all ABS challenges for the 2026 season. This was the first MLB regular season with the ABS challenge system. Not only did Claude provide paired programming assistance (extraction, video wrapper); it also helped me scope how the data build should take place.

The useful lesson for me was understanding your limitation but also being transparent with the data problem at hand. AI can help move from a question to code, but it can’t decide what a field means in the dataset or whether the output matches the visualization you want to build.

Those decisions still need to be made and checked.

Trust but confirm!

That’s usually the strategic approach I take when I lean on AI tools to support me in data collection and/or process flow builds. While most tend to ‘vibe code’ their projects; I believe following that methodology with a level of scrutiny is safe. Trust the process….and always confirm that the build supports your goal.

What this data output can say; and can’t say

The challenge rows describe challenged pitches, not every ball-and-strike call. They can support questions about how the challenge system was used; by themselves, they don’t measure every call or overall umpire performance. This is important to note; while the data reports performance of challenge outcomes; this is not a certain measure of umpire performance. Their involvement in the normalcy of a baseball game goes beyond challenges, there are plays at the plate and the management of games. I say this to stress that challenge performance is a significant KPI to an umpires performance but not the only one.

Creating a shared strike zone

Every batter has a strike zone with its own top and bottom. To compare challenged pitches on one chart, I created a shared outline using the plate’s 17-inch width and the average zone height across the challenge records.

Each pitch’s vertical location was then adjusted to match that shared outline. A pitch halfway between one batter’s zone bottom and top appears halfway up the chart, just like a pitch halfway through another batter’s zone. Pitches above or below the batter’s zone remain above or below the outline.

This puts all challenges on the same relative scale.

Two marks at the same height represent the same position within their batters’ zones, though not necessarily the same height above the ground. This creates a consistent relative comparison: pitches at the same height on the chart occupy the same position within their respective batters’ zones, even if they crossed the plate at different heights above the ground.

Next Steps

From finding the right game feeds to preparing pitch locations and connecting video highlights, this project showed me that a dashboard is only as useful as the data and decisions behind it.

Claude helped me accelerate the build, but checking the output and making sure it supported the story I wanted to tell remained essential.

In the next posts, I’ll take a closer look at how the dashboard came together:

  • Building the visuals:
    • Turning pitch coordinates into a readable strike-zone chart
  • Parameters & Actions:
    • Making the dashboard respond when a reader interacts with the dashboard
  • Final thoughts & Learnings:
    • What the challenges data dashboard revealed and a lookback on the entire process

Until then, I invite you to explore the dashboard and find a pitch worth another look:

CLICK HERE

Leave a Reply