[Integrations](https://spiral.ai/integrations) › [Muse Code](https://spiral.ai/integrations/muse-code) › [ESPN scores and schedules](https://spiral.ai/integrations/muse-code/espn-scores-and-schedules)

# How to Use ESPN scores and schedules in Muse Code

Returns scheduled, live, and completed games with scores and explicit game status. Use it to find the day's matchups and identify games for a closer statistical review.

|  |  |
| --- | --- |
| Model | ESPN scores and schedules |
| 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 scores and schedules in Muse Code

- Use ESPN scores and schedules to fetch NBA games played on February 4, 2025, and add a table of matchups, scores, and game status to my research notebook.
- Use ESPN scores and schedules to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from ESPN scores and schedules and tell me what changed since last week.
- Check ESPN scores and schedules and summarize what you find in three bullet points.
- Pull the newest data from ESPN scores and schedules and give me the result as a table.

## How to set up ESPN scores and schedules in Muse Code

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

### Use Spiral's MCP server

1. **Install Muse Code**

```bash
curl -fsSL https://dev.meta.ai/install.sh | bash
```

2. **Ask Muse to add the server**: Start `muse` and ask:

```text
Add the Spiral MCP server at https://api.spiral.ai/mcp
```

3. **Sign in**: In your terminal, run:

```bash
muse mcp login spiral
```

### Use the Spiral skill

1. **Send Muse Code 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 scores and schedules**: 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/scoreboard",
    "input": {
      "sport": "<sport>",
      "league": "<league>"
    }
  }'
```

Then paste one of the prompts above: Muse Code finds ESPN scores and schedules on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/muse-code

## ESPN scores and schedules tools and prices

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

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| date |  | — | Day as YYYYMMDD. Mutually exclusive with `season`. Pattern: ^[0-9]{8}$. |
| week | 1 to 30 | — | week |
| limit | 1 to 1000 | — | limit |
| groups |  | — | ESPN group id filter (college football: 80 FBS, 81 FCS; conference ids). Pattern: ^[0-9]+$. |
| season | 1900 to 2100 | — | Season start year, for week-based lookups together with `seasontype` and `week`. |
| seasontype | 1 to 9 | — | 1 preseason, 2 regular season, 3 postseason (NFL / college football). |

## What can you do with ESPN scores and schedules in Muse Code?

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.

### Research a fantasy shortlist

Find NBA or NFL athletes, compare their season statistics, and check their teams, rosters, published injuries, and scheduled games before making a personal fantasy lineup decision.

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

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

### Compare availability with recent production

For selected NBA teams, combine published injury reports and rosters with player season statistics and recent game performances. Identify which athletes need a closer look before the next matchup.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All Muse Code guides](https://spiral.ai/integrations/muse-code)

## ESPN scores and schedules in other agents

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

## More Muse Code guides

- [ESPN player profile and stats](https://spiral.ai/integrations/muse-code/espn-player-profile-and-stats)
- [ESPN sports and leagues](https://spiral.ai/integrations/muse-code/espn-sports-and-leagues)
- [ESPN player box score](https://spiral.ai/integrations/muse-code/espn-player-box-score)
- [ESPN team and player search](https://spiral.ai/integrations/muse-code/espn-team-and-player-search)
- [ESPN league standings](https://spiral.ai/integrations/muse-code/espn-league-standings)
- [ESPN team details](https://spiral.ai/integrations/muse-code/espn-team-details)

## Questions about ESPN scores and schedules in Muse Code

**Can Muse Code use ESPN scores and schedules?**

Yes. Add Spiral to Muse Code as an MCP server, and Muse Code can find and run ESPN scores and schedules like any built-in tool.

**How much does ESPN scores and schedules cost in Muse Code?**

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

**Do I need an Alexandria account to use ESPN scores and schedules in Muse Code?**

No. Spiral runs ESPN scores and schedules 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 scores and schedules in Muse Code?**

About two minutes: install Muse Code, then ask Muse to add the server, then sign in.

**Does Muse Code wait while ESPN scores and schedules runs?**

ESPN scores and schedules runs in the background. Muse Code 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.

