[Integrations](https://spiral.ai/integrations) › [opencode](https://spiral.ai/integrations/opencode) › [Affiliate.com network directory](https://spiral.ai/integrations/opencode/affiliate-com-network-directory)

# How to Use Affiliate.com network directory in opencode

Fetch regional network records with merchant counts, product counts, countries, and parent brands. Use it to compare Affiliate.com's indexed networks and find records for a closer look.

|  |  |
| --- | --- |
| Model | Affiliate.com network directory |
| 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 network directory in opencode

- Use Affiliate.com network directory to find Impact records and build a table in the project showing each returned country's listed merchants, active merchants, and products.
- Use Affiliate.com network directory to retrieve Awin records and compare their returned IDs and names with our project's network reference file.
- Use Affiliate.com network directory to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from Affiliate.com network directory and tell me what changed since last week.
- Check Affiliate.com network directory and summarize what you find in three bullet points.

## How to set up Affiliate.com network 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 Affiliate.com network 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": "affiliate-com/networks/list",
    "input": {
      "page": 1
    }
  }'
```

Then paste one of the prompts above: opencode finds Affiliate.com network directory on Spiral, shows the price and runs it.

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

## Affiliate.com network directory tools and prices

- [Affiliate.com · List networks](https://spiral.ai/tools/alexandria/affiliate-com/networks/list) (Alexandria): $0.043648 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| page | 1 to … | — | Page number, starting at 1. |
| fields |  | — | Comma-separated field names to keep in each record, for example `id,name,logo_url`. Omit for every field. |
| search |  | — | Case-insensitive name fragment, for example `impact` or `awin`. |
| per_page | 1 to 100 | — | Networks per page, 1 to 100. Upstream default 100. |

## What can you do with Affiliate.com network directory in opencode?

Give a publisher app consistent network names and identifiers for Awin, Impact, and Rakuten. A coding agent can turn Affiliate.com's returned records into project reference data and network lookup views.

### Plan a publisher's regional coverage

Use brand names to organize the networks under review, compare their regional records, and inspect shortlisted entries by merchant and product counts.

### Build a network selection interface

Populate brand labels and regional network choices from returned names and IDs. Show merchant and product counts when a publisher opens a specific network.

### Clean up a publisher's network reference

Compare existing network labels with Affiliate.com's brand and regional records. Keep parent brand IDs separate from the IDs used to identify individual networks.

### Monitor changes in indexed coverage

Compare saved results with later responses to identify added, removed, or renamed brands and regional networks. For regional records, also compare merchant and product counts.

### Compare catalog size before choosing networks

Compare active merchant counts and product counts for shortlisted regional networks. Use both measures to distinguish merchant breadth from catalog volume.

### Prepare a network research brief

Create a reference of network brands, their regional records, and the counts returned for selected entries. Explain that directory inclusion does not establish publisher permission to promote a merchant.

## Overview

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

## Affiliate.com network directory in other agents

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

## More opencode guides

- [Affiliate.com network details](https://spiral.ai/integrations/opencode/affiliate-com-network-details)
- [Affiliate.com product URL to barcode](https://spiral.ai/integrations/opencode/affiliate-com-product-url-to-barcode)
- [Affiliate.com network brands](https://spiral.ai/integrations/opencode/affiliate-com-network-brands)
- [Affiliate.com product search](https://spiral.ai/integrations/opencode/affiliate-com-product-search)
- [Affiliate.com merchant search](https://spiral.ai/integrations/opencode/affiliate-com-merchant-search)
- [DataForSEO Google domain competitors](https://spiral.ai/integrations/opencode/dataforseo-google-domain-competitors)

## Questions about Affiliate.com network directory in opencode

**Can opencode use Affiliate.com network directory?**

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Affiliate.com network directory like any built-in tool.

**How much does Affiliate.com network directory cost in opencode?**

$0.043648 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 Affiliate.com network directory in opencode?**

No. Spiral runs Affiliate.com network 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 Affiliate.com network directory in opencode?**

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

**Does opencode wait while Affiliate.com network directory runs?**

Affiliate.com network directory runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

**Does Affiliate.com cover every merchant on a network?**

Its coverage is limited to merchants that have approved Affiliate.com as a publisher. A network record describes Affiliate.com's indexed coverage, so it should not be presented as a census of the network's entire business.

**What does an active merchant count mean?**

Active merchants are merchants that are not paused. Use the active count when assessing available merchant coverage, alongside the broader listed count.

**How are network brands different from regional networks?**

Affiliate.com connects related regional networks under one brand. Its documentation gives Impact Sweden, Impact UK, Impact US, and Impact France as examples.

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

Affiliate.com accesses merchant product feeds through affiliate networks, acting as an approved publisher. The network directory describes coverage of those indexed feeds.

**Does appearing in Affiliate.com mean a merchant can be promoted immediately?**

Affiliate.com states that publishers must already have a merchant's approval to monetize its products. Finding the merchant's network in the directory does not establish that permission.

