[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [StockX brand and sort directory](https://spiral.ai/integrations/opencode/stockx-brand-and-sort-directory)

# How to Use StockX brand and sort directory in opencode

Returns StockX's named sorting methods and brand directories, including brand aliases. Use it to identify brands and interpret catalog rankings before building a product shortlist.

|  |  |
| --- | --- |
| Model | StockX brand and sort directory |
| 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 StockX brand and sort directory in opencode

- Use StockX brand and sort directory to read the US brand names, aliases, and ranking labels, then use StockX filtered product catalog to retrieve Jordan sneakers. Add a browsable product shortlist to this project's inventory view.
- Use StockX brand and sort directory to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from StockX brand and sort directory and tell me what changed since last week.
- Check StockX brand and sort directory and summarize what you find in three bullet points.
- Pull the newest data from StockX brand and sort directory and give me the result as a table.

## How to set up StockX brand and sort directory 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 StockX brand and sort directory**: 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": "stockx-com/products/browse_options",
    "input": {
      "country": "US"
    }
  }'
```

Then paste one of the prompts above: opencode finds StockX brand and sort directory on Spiral, shows the price and runs it.

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

## StockX brand and sort directory tools and prices

- [StockX · Browse options](https://spiral.ai/tools/alexandria/stockx-com/products/browse_options) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| country | US, GB | US | StockX market: US (prices in USD) or GB (prices in GBP). Other markets exist upstream but were not verified. |

## What can you do with StockX brand and sort directory in opencode?

Build a StockX research view that takes a catalog shortlist through to size-level sales and competing offers. A coding agent can add brand discovery, exact-release matching, and market comparisons to your project's inventory tools.

### Build a sneaker assortment shortlist

Identify brand aliases and ranking labels, browse candidate sneakers, and search exact releases. Compare size-level market details, recent sales, and offer depth before choosing products for a store's shortlist.

### Prepare a US and UK sourcing comparison

Use the brand directory and catalog browsing to choose comparable products, then resolve exact releases through search. Compare the same sizes across market details, recent sales, and bid/ask depth in each market.

### Research a weekly sneaker market brief

Review StockX's brand directories and catalog rankings for story candidates, then search the exact releases. Support each product discussion with size-level market statistics, recent transactions, and competing offers.

### Benchmark a store's inventory against alternatives

Match inventory to exact StockX releases through search. Use brand aliases and catalog browsing to find alternatives, then compare their size-level market state, recent sales, and offer quantities.

### Create a brand research queue

Read StockX's brand aliases and sorting labels, browse a selected brand, and search named models for closer review. Produce a queue of exact product links for a merchandiser.

## Overview

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

## StockX brand and sort directory in other agents

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

## More opencode guides

- [StockX bid and ask depth](https://spiral.ai/integrations/opencode/stockx-bid-and-ask-depth)
- [StockX filtered product catalog](https://spiral.ai/integrations/opencode/stockx-filtered-product-catalog)
- [Steel City Collectibles related products](https://spiral.ai/integrations/opencode/steel-city-collectibles-related-products)
- [StockX product market details](https://spiral.ai/integrations/opencode/stockx-product-market-details)
- [Steel City Collectibles product search](https://spiral.ai/integrations/opencode/steel-city-collectibles-product-search)
- [StockX product search](https://spiral.ai/integrations/opencode/stockx-product-search)

## Questions about StockX brand and sort directory in opencode

**Can opencode use StockX brand and sort directory?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run StockX brand and sort directory like any built-in tool.

**How much does StockX brand and sort directory 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 StockX brand and sort directory in opencode?**

No. Spiral runs StockX brand and sort directory on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up StockX brand and sort directory in opencode?**

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

**Does opencode wait while StockX brand and sort directory runs?**

StockX brand and sort directory runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

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

The provider reads StockX's own GraphQL gateway. Its documented coverage includes product search, category browsing, size-level market state, recent sales, and bid/ask depth.

**Does StockX distinguish individual shoe sizes?**

Yes. StockX separates sales history and active offers by product and size, and product market details include size-level lowest asks, highest bids, and last sales.

**Are bids and asks completed sales?**

StockX reports active bids and asks separately from sales history. Compare recent sale records with current offers when assessing a product's market.

**Why can displayed offers differ by location?**

StockX says its market-data bids and asks include applicable duties and taxes based on location. Keep the market consistent when comparing offers.

**Does a search result confirm that my size is available?**

The provider's product-search example contains empty size-related values. Use product market details to inspect the exact release's size-level market state.

