[Integrations](https://spiral.ai/integrations) › [Codex](https://spiral.ai/integrations/codex) › [Fanatics product details](https://spiral.ai/integrations/codex/fanatics-product-details)

# How to Use Fanatics product details in Codex

Get one Fanatics product with size-level stock and product details. Use it to check a specific item after finding it in search or a team listing.

|  |  |
| --- | --- |
| Model | Fanatics product details |
| Available through | Alexandria |
| Category | E-commerce |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Fanatics product details in Codex

- Use Fanatics product details for product 204462244 and add its returned sizes and availability to this project's product view.
- Use Fanatics product details to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from Fanatics product details and tell me what changed since last week.
- Check Fanatics product details and summarize what you find in three bullet points.
- Pull the newest data from Fanatics product details and give me the result as a table.

## How to set up Fanatics product details 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 Fanatics product details**: 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": "fanatics-com/products/get_product",
    "input": {
      "product_id": "<product_id>"
    }
  }'
```

Then paste one of the prompts above: Codex finds Fanatics product details on Spiral, shows the price and runs it.

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

## Fanatics product details tools and prices

- [Fanatics US · Get product](https://spiral.ai/tools/alexandria/fanatics-com/products/get_product) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| url |  | — | A www.fanatics.com product page URL (…/o-…+t-…+p-…+z-…). Mutually exclusive with product_id. |
| product_id |  | — | The Fanatics product id (products[].product_id from a listing, or the _p-<id> part of an image file name). Pattern: ^[0-9]{1,12}$. |

## What can you do with Fanatics product details in Codex?

Build a personal Fanatics merchandise browser with team navigation and product inspection. Coding agents can use the storefront responses to implement browsing behavior in your project.

### Build a personal league shopping shortlist

Identify teams in the Fanatics directory, browse their merchandise, search for specific styles, and check sizes on the final candidates.

### Compare gear for rival teams

Find the Lakers and Celtics in the team directory, compare their merchandise sections, search for matching product styles, and inspect shortlisted items.

### Plan college sports gifts

Locate college teams, browse each school's merchandise, search for requested apparel, and check the available sizes before choosing gifts.

### Explore unfamiliar team shops

Use the league directory to choose teams beyond your usual favorites. Browse their sections, search for preferred merchandise styles, and inspect individual products.

### Check a specific item's sizes

Inspect a Fanatics product directly to see its size-level stock before adding it to a personal shopping shortlist.

### Find alternatives to an unavailable size

Search for the same team and apparel type, browse the relevant merchandise section, and check size-level stock on alternative products.

## Overview

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

## Fanatics product details in other agents

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

## More Codex guides

- [Facebook Marketplace location search](https://spiral.ai/integrations/codex/facebook-marketplace-location-search)
- [Fanatics product search](https://spiral.ai/integrations/codex/fanatics-product-search)
- [Facebook Marketplace listing search](https://spiral.ai/integrations/codex/facebook-marketplace-listing-search)
- [Fanatics team and league products](https://spiral.ai/integrations/codex/fanatics-team-and-league-products)
- [Facebook Marketplace item details](https://spiral.ai/integrations/codex/facebook-marketplace-item-details)
- [Fanatics team directory](https://spiral.ai/integrations/codex/fanatics-team-directory)

## Questions about Fanatics product details in Codex

**Can Codex use Fanatics product details?**

Yes. Add Spiral to Codex as an MCP server, and Codex can find and run Fanatics product details like any built-in tool.

**How much does Fanatics product details 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 Fanatics product details in Codex?**

No. Spiral runs Fanatics product details on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Fanatics product details in Codex?**

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

**Does Codex wait while Fanatics product details runs?**

Fanatics product details runs in the background. Codex starts the run, checks on it and gives you the json when it's ready.

**Which Fanatics store does this data cover?**

The documented source is the US storefront at fanatics.com. Its merchandise data comes from the storefront's server-rendered pages and Iris data API.

**How fresh is Fanatics merchandise information?**

Fanatics says its website updates daily but does not specify fixed update times. That statement does not establish a minute-by-minute freshness guarantee.

**Does Fanatics show a complete archive of unavailable merchandise?**

Fanatics says it displays items currently in stock. The storefront should therefore be used to explore its current assortment rather than as a complete archive of past merchandise.

**Can an item be listed while my size is unavailable?**

Yes. Fanatics marks unavailable sizes by graying them out on the product page, so finding a listing does not establish availability in your size.

**Do Fanatics' terms permit commercial extraction of storefront data?**

Fanatics lists automated extraction for commercial purposes, including screen scraping, among unauthorized uses. Public visibility should not be treated as permission for commercial extraction.

