[Integrations](https://spiral.ai/integrations) › [Codex](https://spiral.ai/integrations/codex) › [Affiliate.com barcode to Amazon ASIN](https://spiral.ai/integrations/codex/affiliate-com-barcode-to-amazon-asin)

# How to Use Affiliate.com barcode to Amazon ASIN in Codex

Returns Amazon ASIN matches for product barcodes. Use it when your catalog already has UPCs or EANs and you need to identify corresponding Amazon listings.

|  |  |
| --- | --- |
| Model | Affiliate.com barcode to Amazon ASIN |
| Available through | Alexandria |
| Category | SEO |
| Price | $0.043648 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Affiliate.com barcode to Amazon ASIN in Codex

- Use Affiliate.com barcode to Amazon ASIN for 196584045119. Create a JSON fixture containing every returned match and update our catalog import example to read it.
- Use Affiliate.com barcode to Amazon ASIN to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from Affiliate.com barcode to Amazon ASIN and tell me what changed since last week.
- Check Affiliate.com barcode to Amazon ASIN and summarize what you find in three bullet points.
- Pull the newest data from Affiliate.com barcode to Amazon ASIN and give me the result as a table.

## How to set up Affiliate.com barcode to Amazon ASIN 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 Affiliate.com barcode to Amazon ASIN**: 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": "affiliate-com/identifiers/barcode-to-asin",
    "input": {
      "barcodes": [
        "<barcodes>"
      ]
    }
  }'
```

Then paste one of the prompts above: Codex finds Affiliate.com barcode to Amazon ASIN on Spiral, shows the price and runs it.

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

## Affiliate.com barcode to Amazon ASIN tools and prices

- [Affiliate.com · Barcode to ASIN](https://spiral.ai/tools/alexandria/affiliate-com/identifiers/barcode-to-asin) (Alexandria): $0.043648 per call.

## What can you do with Affiliate.com barcode to Amazon ASIN in Codex?

Build a catalog reconciliation report that connects Amazon ASINs, retailer URLs, and product barcodes. A coding agent can join Affiliate.com matches to project records and produce a queue of unresolved products.

### Prepare a retailer comparison

Build an identifier table before researching offers. Resolve Amazon listings or retailer links to barcodes, or find Amazon ASINs for barcodes already in the catalog.

### Fill gaps in a product catalog

Add missing barcode or Amazon identifier matches to catalog records. Keep the original ASIN, barcode, or retailer URL beside each returned match for review.

### Review duplicate gift guide picks

Compare identifier matches for picks collected from Amazon, retailer pages, and barcode lists. Use those matches to flag products that may have been selected twice.

### Reconcile an incoming merchandise feed

Translate the identifiers supplied in a merchandise feed into the identifiers used by your existing catalog. Send unresolved records to a review queue before merging them.

### Prepare a product shortlist for Amazon research

Connect a shortlist of retailer links, barcodes, or Amazon listings to usable product identifiers. Use the resulting table as the starting point for a separate Amazon listing review.

### Measure catalog matching coverage

Run a representative sample of product records through the appropriate conversion. Count resolved and unresolved records to estimate how much manual matching your catalog needs.

## Overview

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

## Affiliate.com barcode to Amazon ASIN in other agents

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

## More Codex guides

- [Affiliate.com Amazon ASIN to barcode](https://spiral.ai/integrations/codex/affiliate-com-amazon-asin-to-barcode)
- [Affiliate.com merchant profile](https://spiral.ai/integrations/codex/affiliate-com-merchant-profile)
- [legislation.gov.uk table of contents](https://spiral.ai/integrations/codex/legislation-gov-uk-table-of-contents)
- [Affiliate.com merchant search](https://spiral.ai/integrations/codex/affiliate-com-merchant-search)
- [legislation.gov.uk provision text](https://spiral.ai/integrations/codex/legislation-gov-uk-provision-text)
- [Affiliate.com network brands](https://spiral.ai/integrations/codex/affiliate-com-network-brands)

## Questions about Affiliate.com barcode to Amazon ASIN in Codex

**Can Codex use Affiliate.com barcode to Amazon ASIN?**

Yes. Add Spiral to Codex as an MCP server, and Codex can find and run Affiliate.com barcode to Amazon ASIN like any built-in tool.

**How much does Affiliate.com barcode to Amazon ASIN cost in Codex?**

$0.043648 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 Affiliate.com barcode to Amazon ASIN in Codex?**

No. Spiral runs Affiliate.com barcode to Amazon ASIN on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Affiliate.com barcode to Amazon ASIN in Codex?**

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

**Does Codex wait while Affiliate.com barcode to Amazon ASIN runs?**

Affiliate.com barcode to Amazon ASIN runs in the background. Codex starts the run, checks on it and gives you the json when it's ready.

**Where does Affiliate.com's product data come from?**

Affiliate.com aggregates merchant feeds across hundreds of affiliate networks worldwide. Its catalog coverage defines the products available for matching.

**How fresh is the underlying catalog?**

Affiliate.com documents daily refreshes for its merchant-fed product records. That schedule describes the catalog, rather than a separate refresh guarantee for identifier conversions.

**How many identifiers can Affiliate.com convert at once?**

The documented limits are 10 ASINs when converting to barcodes, 20 barcodes when converting to ASINs, and 100 product URLs when extracting barcodes.

**Does an unsuccessful match always produce an error?**

No. Affiliate.com's conversion documentation says unresolved values can return null or an empty array instead of an error.

**Can one product page identify more than one product?**

Yes. Affiliate.com says a page offering several colors or sizes can return several barcodes. A link to a store outside its catalog returns an empty list.

