[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [ESPN league standings](https://spiral.ai/integrations/opencode/espn-league-standings)

# How to Use ESPN league standings in opencode

Returns league tables and conference or division standings for a season. Use it to compare team records and put a game result in the context of the standings.

|  |  |
| --- | --- |
| Model | ESPN league standings |
| 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 ESPN league standings in opencode

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

## How to set up ESPN league standings in opencode

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

### Use Spiral's MCP server

1. **Add the server**: Leave out `--global` to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

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

2. **Sign in**: Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, `/mcps` starts the same sign-in.

```bash
opencode mcp auth spiral
```

3. **Check it**: Spiral shows as connected.

```bash
opencode mcp list
```

### Use the Spiral skill

1. **Send opencode 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 ESPN league standings**: 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": "espn-com/sports-data/standings",
    "input": {
      "sport": "<sport>",
      "league": "<league>"
    }
  }'
```

Then paste one of the prompts above: opencode finds ESPN league standings on Spiral, shows the price and runs it.

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

## ESPN league standings tools and prices

- [ESPN · Standings](https://spiral.ai/tools/alexandria/espn-com/sports-data/standings) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| level | 1 to 5 | — | Group depth (NFL: 3 returns divisions instead of conferences). |
| stats |  | — | Keep only these standings columns, matched case- and punctuation-insensitively against ESPN's stat name, type, abbreviation, display names and description (e.g. wins, losses, points, pointDifferential, winPercent, streak, playoffSeed, home, road, vsDiv, clincher; NFL home/away records are the stats named `Home` and `Road`). Requested columns no row carries are listed in `missing_stats`. Default: every column ESPN sends; a full NFL table is ~90 KB, so filter when you only need a few. |
| season | 1900 to 2100 | — | Season start year. |

## What can you do with ESPN league standings in opencode?

Build a personal sports notebook that connects ESPN games, teams, and athlete records. A coding agent can turn those results into comparison tables and reports in your project.

### Prepare a daily sports briefing

Choose supported basketball and football competitions, resolve teams by name, and combine scores, game details, player performances, roster context, injuries, and standings into a personal morning briefing.

### Keep a personal season notebook

Follow selected clubs across ESPN competitions. Add current team records, roster and injury changes, game summaries, individual stat lines, and player season totals to explain how each club's season develops.

### Research weekend matchups

Select competitions and teams, then compare standings, recent game statistics, current rosters, published injuries, and player season records. Produce a matchup brief that separates measured performance from reported availability.

### Explain a completed game

Combine the final score, scoring plays, team statistics, and individual performances. Add player career context and team standings to explain what the result means.

### Compare football programs and players

Discover football competitions, identify teams and athletes, and compare team records, standings, roster composition, and player season statistics for a personal research report.

### Review postgame statistical changes

Revisit completed NFL games and compare their player stat lines, team statistics, scores, and standings with earlier results. Flag changed numbers for review.

## Overview

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

## ESPN league standings in other agents

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

## More opencode guides

- [ESPN injury reports](https://spiral.ai/integrations/opencode/espn-injury-reports)
- [ESPN player box score](https://spiral.ai/integrations/opencode/espn-player-box-score)
- [ESPN game details](https://spiral.ai/integrations/opencode/espn-game-details)
- [ESPN player profile and stats](https://spiral.ai/integrations/opencode/espn-player-profile-and-stats)
- [Draft Sharks weekly rankings](https://spiral.ai/integrations/opencode/draft-sharks-weekly-rankings)
- [ESPN scores and schedules](https://spiral.ai/integrations/opencode/espn-scores-and-schedules)

## Questions about ESPN league standings in opencode

**Can opencode use ESPN league standings?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run ESPN league standings like any built-in tool.

**How much does ESPN league standings cost in opencode?**

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

**Do I need an Alexandria account to use ESPN league standings in opencode?**

No. Spiral runs ESPN league standings on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up ESPN league standings in opencode?**

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

**Does opencode wait while ESPN league standings runs?**

ESPN league standings runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

**Where does the ESPN data come from?**

The source uses ESPN's public site and core JSON APIs. Its coverage is limited to the records ESPN exposes through those sources.

**Does ESPN cover international competitions?**

Yes. The provider documents US and international coverage, including the Premier League and approximately 219 soccer competitions.

**Are the same statistics available for every sport?**

The statistics depend on the sport. Documented examples include NFL passing, rushing, and receiving figures and NHL skater and goalie statistics.

**How fresh are ESPN's live NFL statistics?**

ESPN says it updates NFL live scores and statistics as they are received. Those figures can change as the league reports more accurate data.

**Can NFL statistics change after a game ends?**

Yes. ESPN documents postgame adjustments and corrections that can appear up to seven days after the game was played.

