[Integrations](https://spiral.ai/integrations) › [Codex](https://spiral.ai/integrations/codex) › [Baseball Savant trending players](https://spiral.ai/integrations/codex/baseball-savant-trending-players)

# How to Use Baseball Savant trending players in Codex

Returns Baseball Savant's trending-player list. Use it to choose players for further research, then examine their statistics before making a performance claim.

|  |  |
| --- | --- |
| Model | Baseball Savant trending players |
| Available through | Alexandria |
| Category | Sports |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Baseball Savant trending players in Codex

- Use Baseball Savant trending players to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from Baseball Savant trending players and tell me what changed since last week.
- Check Baseball Savant trending players and summarize what you find in three bullet points.
- Pull the newest data from Baseball Savant trending players and give me the result as a table.
- Check Baseball Savant trending players every morning and tell me only when something changed.

## How to set up Baseball Savant trending players in Codex

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Add the hosted server**

```bash
codex mcp add spiral --url https://api.spiral.ai/mcp
```

2. **Sign in**: Codex opens the browser: sign in to Spiral and click Authorize. No API key. `codex mcp list` then shows Spiral.

```bash
codex mcp login spiral
```

### Use the Spiral skill

1. **Send Codex this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run Baseball Savant trending players**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "baseballsavant-mlb-com/baseball-statcast/trending_players",
    "input": {}
  }'
```

Then paste one of the prompts above: Codex finds Baseball Savant trending players on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/codex

## Baseball Savant trending players tools and prices

- [MLB Baseball Savant · Trending players](https://spiral.ai/tools/alexandria/baseballsavant-mlb-com/baseball-statcast/trending_players) (Alexandria): $0.00873 per call.

## What can you do with Baseball Savant trending players in Codex?

Build a baseball research panel that connects player discovery and daily games with season rankings and individual plays. A coding agent can populate the project's views with Baseball Savant profiles, pitch summaries, plate appearances, and pitch records.

### Morning baseball research notes

Organize yesterday's games, identify trending players, resolve their names, and confirm their profiles. Add hitter plate appearances, pitch type summaries, individual pitches, and season rankings to explain the performances worth reviewing.

### Broadcast matchup preparation

Start with the day's games and trending players to research. Confirm player identities, compare season rankings, examine pitchers' arsenals and hitters' plate appearances, and select individual pitch examples for preparation notes.

### Weekly story shortlist

Use trending players as research leads, then resolve each player and check the biography. Test possible stories against season rankings, recent plate appearances, pitch summaries, individual pitch records, and the games in which they occurred.

### Baseball data literacy lesson

Choose a trending MLB player, resolve the name, and confirm the profile. Use the schedule, season leaderboard, pitch summary, plate appearances, and pitch records to teach the difference between a game, a season average, a completed plate appearance, and an individual pitch.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All Codex guides](https://spiral.ai/integrations/codex)

## Baseball Savant trending players in other agents

- [Amp](https://spiral.ai/integrations/amp/baseball-savant-trending-players)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/baseball-savant-trending-players)
- [Claude](https://spiral.ai/integrations/claude-desktop/baseball-savant-trending-players)
- [Claude Code](https://spiral.ai/integrations/claude-code/baseball-savant-trending-players)
- [Cline](https://spiral.ai/integrations/cline/baseball-savant-trending-players)
- [Cursor](https://spiral.ai/integrations/cursor/baseball-savant-trending-players)
- [Devin](https://spiral.ai/integrations/devin/baseball-savant-trending-players)
- [dots](https://spiral.ai/integrations/dots/baseball-savant-trending-players)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/baseball-savant-trending-players)
- [Gemini](https://spiral.ai/integrations/gemini/baseball-savant-trending-players)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/baseball-savant-trending-players)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/baseball-savant-trending-players)
- [goose](https://spiral.ai/integrations/goose/baseball-savant-trending-players)
- [Grok](https://spiral.ai/integrations/grok/baseball-savant-trending-players)
- [Grok Build](https://spiral.ai/integrations/grok-build/baseball-savant-trending-players)
- [Hermes](https://spiral.ai/integrations/hermes/baseball-savant-trending-players)
- [Instinct](https://spiral.ai/integrations/instinct/baseball-savant-trending-players)
- [Manus](https://spiral.ai/integrations/manus/baseball-savant-trending-players)
- [Muse](https://spiral.ai/integrations/muse/baseball-savant-trending-players)
- [Muse Code](https://spiral.ai/integrations/muse-code/baseball-savant-trending-players)
- [n8n](https://spiral.ai/integrations/n8n/baseball-savant-trending-players)
- [Notion](https://spiral.ai/integrations/notion/baseball-savant-trending-players)
- [OpenClaw](https://spiral.ai/integrations/openclaw/baseball-savant-trending-players)
- [opencode](https://spiral.ai/integrations/opencode/baseball-savant-trending-players)
- [Perplexity](https://spiral.ai/integrations/perplexity/baseball-savant-trending-players)
- [Raycast](https://spiral.ai/integrations/raycast/baseball-savant-trending-players)
- [VS Code](https://spiral.ai/integrations/vscode/baseball-savant-trending-players)
- [Windsurf](https://spiral.ai/integrations/windsurf/baseball-savant-trending-players)
- [Zapier](https://spiral.ai/integrations/zapier/baseball-savant-trending-players)

## More Codex guides

- [Baseball Savant player search](https://spiral.ai/integrations/codex/baseball-savant-player-search)
- [CBS Sports fantasy projections](https://spiral.ai/integrations/codex/cbs-sports-fantasy-projections)
- [Baseball Savant player profile](https://spiral.ai/integrations/codex/baseball-savant-player-profile)
- [CBS Sports fantasy rankings](https://spiral.ai/integrations/codex/cbs-sports-fantasy-rankings)
- [Baseball Savant player plate appearances](https://spiral.ai/integrations/codex/baseball-savant-player-plate-appearances)
- [CBS Sports fantasy stats](https://spiral.ai/integrations/codex/cbs-sports-fantasy-stats)

## Questions about Baseball Savant trending players in Codex

**Can Codex use Baseball Savant trending players?**

Yes. Add Spiral to Codex as an MCP server, and Codex can find and run Baseball Savant trending players like any built-in tool.

**How much does Baseball Savant trending players cost in Codex?**

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Codex plan is separate.

**Do I need an Alexandria account to use Baseball Savant trending players in Codex?**

No. Spiral runs Baseball Savant trending players on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Baseball Savant trending players in Codex?**

About two minutes: add the hosted server, then sign in.

**Does Codex wait while Baseball Savant trending players runs?**

Baseball Savant trending players runs in the background. Codex starts the run, checks on it and gives you the json when it's ready.

**When did Statcast reach every MLB ballpark?**

All 30 parks had Statcast by 2015.

**Are all batted-ball measurements tracked directly?**

No. Baseball Savant includes estimates for a limited subset of batted balls that were not tracked directly.

**Why can a player be missing from a qualified leaderboard?**

The expected-statistics board requires 2.1 plate appearances per team game for batters and 1.25 for pitchers. Players below those thresholds do not qualify for that view.

**Where do the older pitch velocities come from?**

Baseball Savant identifies Pitch F/X as the source of its 2008-2016 pitch velocities.

**Did pitch-location measurements change in 2026?**

Yes. Through 2025, horizontal and vertical plate locations referred to the front of home plate; from 2026, they refer to the middle to align with ABS.

