[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Amazon featured offer](https://spiral.ai/integrations/opencode/amazon-featured-offer)

# How to Use Amazon featured offer in opencode

Get one product's featured offer, including its displayed price, availability, seller, and delivery information. Use it when a buying decision needs more context than a price comparison.

|  |  |
| --- | --- |
| Model | Amazon featured offer |
| 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 Amazon featured offer in opencode

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

## How to set up Amazon featured offer 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 Amazon featured offer**: 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": "amazon-com/products/offer",
    "input": {
      "asin": "<asin>"
    }
  }'
```

Then paste one of the prompts above: opencode finds Amazon featured offer on Spiral, shows the price and runs it.

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

## Amazon featured offer tools and prices

- [Amazon US · Offer](https://spiral.ai/tools/alexandria/amazon-com/products/offer) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| url |  | — | HTTPS Amazon.com /dp/ASIN or /gp/product/ASIN URL. Supply this or asin. |
| zip |  | — | US 5-digit ZIP code to show the offer for, set the way an anonymous visitor sets it in Amazon's location popover. Delivery promise, stock and the featured seller can differ by ZIP. Omit for Amazon's default location for the session. Pattern: ^[0-9]{5}$. |
| asin |  | — | Ten-character Amazon Standard Identification Number, e.g. B09B8V1LZ3. Supply this or url. Pattern: ^[A-Za-z0-9]{10}$. |

## What can you do with Amazon featured offer in opencode?

Build an Amazon.com product comparison report from public listing data. A coding agent can organize category research, product attributes, offer observations, images, and customer feedback into the project's existing data format.

### Build a competitor listing audit

Use search phrases and category rankings to select competing coffee makers. Compare their listing details, specifications, galleries, featured offers, prices, rating totals, and sampled review themes in one research brief.

### Prepare a buying guide

Discover headphones through search suggestions, search results, and category rankings. Check product attributes, listing images, current offers, price comparisons, rating totals, and sampled reviews before drafting recommendations with product links.

### Find alternatives to an unavailable product

Search for replacements for a shortlisted USB-C dock and compare published ports, dimensions, and product details. Check prices across the shortlist, then inspect the featured offer for the strongest candidates.

### Follow a public product launch

Check how a new product appears in search and category lists alongside its displayed offer, comparative price, gallery, rating totals, and sampled reviews. Compare observations over time to prepare a launch report.

## Overview

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

## Amazon featured offer in other agents

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

## More opencode guides

- [Amazon creator storefront](https://spiral.ai/integrations/opencode/amazon-creator-storefront)
- [Amazon product details](https://spiral.ai/integrations/opencode/amazon-product-details)
- [Amazon category best sellers](https://spiral.ai/integrations/opencode/amazon-category-best-sellers)
- [Amazon product option attributes](https://spiral.ai/integrations/opencode/amazon-product-option-attributes)
- [Amazon Brazil product search](https://spiral.ai/integrations/opencode/amazon-brazil-product-search)
- [Amazon product options and availability](https://spiral.ai/integrations/opencode/amazon-product-options-and-availability)

## Questions about Amazon featured offer in opencode

**Can opencode use Amazon featured offer?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Amazon featured offer like any built-in tool.

**How much does Amazon featured offer 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 Amazon featured offer in opencode?**

No. Spiral runs Amazon featured offer on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Amazon featured offer in opencode?**

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

**Does opencode wait while Amazon featured offer runs?**

Amazon featured offer runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

**Does Amazon's sales rank measure only recent purchases?**

No. Amazon includes both recent sales and all-time sales in Best Sellers Rank.

**Is the displayed star rating a simple average?**

No. Amazon calculates ratings with models, and newer reviews carry more weight than older ones.

**Why can the rating count exceed the number of written reviews?**

Amazon lets customers submit a star rating without writing a review. Those ratings contribute to the displayed totals even though there is no corresponding review text.

**Does one product page represent just one seller?**

No. Multiple sellers can offer the same product through one Amazon detail page, so the listing's identity and its currently featured seller are different things.

