[Integrations](https://spiral.ai/integrations) › [Grok](https://spiral.ai/integrations/grok) › [Baseball Savant pitch search](https://spiral.ai/integrations/grok/baseball-savant-pitch-search)

# How to Use Baseball Savant pitch search in Grok

Returns individual Statcast pitch records, including pitch type, velocity, and result. Use it to investigate a specific outing or date window when season averages hide the detail you need.

|  |  |
| --- | --- |
| Model | Baseball Savant pitch search |
| 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 pitch search in Grok

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

## How to set up Baseball Savant pitch search in Grok

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

### Use the Grok connector

1. **Add a custom connector**: In Grok open Settings › Connect Apps, then Add a custom connector. Name it Spiral, paste this URL, leave Headers empty and click Add MCP.

```text
https://api.spiral.ai/mcp
```

2. **Sign in to Spiral and approve**: Grok opens Spiral: sign in, pick the organization and click Authorize. Spiral gives the connection its own API key; Grok never sees it, and you can remove the connection under Settings › Connected apps.

3. **Check that it is connected**: Connect Apps › Custom shows Spiral as Connected. It works in every Grok chat and Grok bot.

### Use the Spiral skill

1. **Send Grok 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 pitch search**: 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/search_statcast",
    "input": {
      "end_date": "<end_date>",
      "start_date": "<start_date>"
    }
  }'
```

Then paste one of the prompts above: Grok finds Baseball Savant pitch search on Spiral, shows the price and runs it.

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

## Baseball Savant pitch search tools and prices

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

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| team |  | — | Team abbreviation as Savant uses it (e.g. `NYY`); filters the batting or fielding team per `player_type`. Pattern: ^[A-Z]{2,3}$. |
| limit | 1 to 1000 | 200 | Maximum rows per page (default 200, max 1000). |
| cursor |  | — | Continuation cursor from a previous response's `next_cursor`; send it with the same other inputs to get the next page. |
| game_type | R, F, D, L, W, S | R | `R` regular season (default), `F` wild card, `D` division series, `L` league championship, `W` World Series, `S` spring training. |
| player_id | 1 to … | — | MLBAM player id (the `player_id` returned by `search_players`, also used by MLB.com and statsapi.mlb.com). |
| pitch_types |  | — | Statcast pitch codes to keep (FF, SI, FC, SL, ST, SV, CU, KC, CH, FS, KN, ...). |

## What can you do with Baseball Savant pitch search in Grok?

Prepare a baseball briefing that connects a day's games and player research leads with evidence from actual performances. A chat app can explain Baseball Savant profiles, rankings, pitch summaries, and individual records in baseball terms.

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

### Pitcher arsenal review

Resolve a pitcher and confirm the profile, then compare recent pitch usage, velocity, spin, and whiff rate with the season baseline. Inspect individual pitches to locate the outings behind a change.

### Hitter results and contact review

Compare a hitter's actual and expected season statistics, then examine recent plate appearances and results against different pitch types. Use individual pitch records to investigate specific sequences.

### Game research index

Organize a day's MLB games and connect hitter plate appearances with their game identifiers. Add pitch records for the same date to create a navigable index for a baseball research project.

## Overview

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

## Baseball Savant pitch search in other agents

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

## More Grok guides

- [Baseball Savant leaderboards](https://spiral.ai/integrations/grok/baseball-savant-leaderboards)
- [Baseball Savant pitch type summary](https://spiral.ai/integrations/grok/baseball-savant-pitch-type-summary)
- [Baseball Savant MLB daily schedule](https://spiral.ai/integrations/grok/baseball-savant-mlb-daily-schedule)
- [Baseball Savant player plate appearances](https://spiral.ai/integrations/grok/baseball-savant-player-plate-appearances)
- [Spiral media tools](https://spiral.ai/integrations/grok/spiral)
- [Baseball Savant player profile](https://spiral.ai/integrations/grok/baseball-savant-player-profile)

## Questions about Baseball Savant pitch search in Grok

**Can Grok use Baseball Savant pitch search?**

Yes. Add Spiral to Grok as an MCP server, and Grok can find and run Baseball Savant pitch search like any built-in tool.

**How much does Baseball Savant pitch search cost in Grok?**

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

**Do I need an Alexandria account to use Baseball Savant pitch search in Grok?**

No. Spiral runs Baseball Savant pitch search 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 pitch search in Grok?**

About two minutes: add a custom connector, then sign in to Spiral and approve, then check that it is connected.

**Does Grok wait while Baseball Savant pitch search runs?**

Baseball Savant pitch search runs in the background. Grok 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.

