[Integrations](https://spiral.ai/integrations) › [Muse Code](https://spiral.ai/integrations/muse-code) › [Shopify product availability](https://spiral.ai/integrations/muse-code/shopify-product-availability)

# How to Use Shopify product availability in Muse Code

Returns one product’s full details, size and color choices, and availability for the effective selection. Use it to check a shopper’s exact choice before recommending it, since Shopify can relax an unavailable combination.

|  |  |
| --- | --- |
| Model | Shopify product availability |
| 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 Shopify product availability in Muse Code

- Find a TOG24 Craven jacket for Seattle, then use Shopify product availability to build a size chooser from its returned options.
- Find a black rain jacket for Seattle, then use Shopify product availability to make the project show whether the returned size medium and color match the requested combination.
- Use Shopify product availability to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from Shopify product availability and tell me what changed since last week.
- Check Shopify product availability and summarize what you find in three bullet points.

## How to set up Shopify product availability 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 Shopify product availability**: 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": "shopify/catalog/get_product",
    "input": {
      "product_id": "<product_id>"
    }
  }'
```

Then paste one of the prompts above: Muse Code finds Shopify product availability on Spiral, shows the price and runs it.

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

## Shopify product availability tools and prices

- [Shopify · Product details](https://spiral.ai/tools/alexandria/shopify/catalog/get_product) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| view |  | — | Advanced Shopify output view. Leave empty for the default representation. |
| intent |  | — | Optional shopping preferences or intended use. |
| region |  | — | Buyer's state, province or region, such as CA. |
| country |  | — | Buyer's two-letter country code, such as US, CA or GB, for localized results. |
| filters |  | — | Advanced filters, such as {"available":true,"price":{"max":15000}}. Price amounts use minor currency units: 15000 means USD 150. |
| currency |  | — | Three-letter currency code, such as USD, CAD or GBP. |

## What can you do with Shopify product availability in Muse Code?

Build a product chooser that shows Shopify descriptions, images, and available options beside a shopper’s shortlist. Check the returned selection before the interface labels a size and color as a match.

### Choose rainwear for a trip

Find rain jackets for a Seattle trip, revisit any product links the shopper already has, and inspect the final size and color choices.

### Build a gift shortlist

Find ceramic mugs for a gift, compare them with the buyer’s saved product links, and inspect the available options before presenting a shortlist.

### Check clothing choices

Discover crewneck sweaters, resolve a shopper’s existing links, and check whether the returned size and color match what they want.

### Replace an unavailable choice

Revisit a saved jacket, inspect its availability, and find alternatives when the shopper’s preferred combination cannot be matched.

### Resume a shopping decision

Resolve a shopper’s saved product URL and inspect its current options so they can continue choosing without starting another descriptive search.

### Turn a description into a concrete choice

Start with a request such as a black rain jacket, then inspect one matching product’s details and available combinations.

## Overview

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

## Shopify product availability in other agents

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

## More Muse Code guides

- [Search products](https://spiral.ai/integrations/muse-code/search-products)
- [Shopify product details](https://spiral.ai/integrations/muse-code/shopify-product-details)
- [Savings.com store coupons](https://spiral.ai/integrations/muse-code/savings-com-store-coupons)
- [Shopify product lookup](https://spiral.ai/integrations/muse-code/shopify-product-lookup)
- [Savings.com hot coupons](https://spiral.ai/integrations/muse-code/savings-com-hot-coupons)
- [Shopify product search](https://spiral.ai/integrations/muse-code/shopify-product-search)

## Questions about Shopify product availability in Muse Code

**Can Muse Code use Shopify product availability?**

Yes. Add Spiral to Muse Code as an MCP server, and Muse Code can find and run Shopify product availability like any built-in tool.

**How much does Shopify product availability 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 Shopify product availability in Muse Code?**

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

**How long does it take to set up Shopify product availability in Muse Code?**

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

**Does Muse Code wait while Shopify product availability runs?**

Shopify product availability runs in the background. Muse Code starts the run, checks on it and gives you the json when it's ready.

**Does Shopify Catalog include every Shopify product?**

No. Products with Unlisted status or hidden from search engines are excluded from Shopify Catalog.

**How fresh are the product details?**

Shopify says its merchants’ products carry current pricing and inventory from the store. Its display guidelines require pricing and availability retrieved within 10 minutes, and titles, descriptions, and options retrieved within 24 hours.

**Is every returned field written by the merchant?**

No. All three Catalog tools can include fields inferred or enriched by Shopify.

**Does a returned product guarantee my requested size and color?**

No. When the full selection has no match, Shopify can drop part of it, so the returned combination can differ from the shopper’s request.

