[Integrations](https://spiral.ai/integrations) › [Codex](https://spiral.ai/integrations/codex) › [Similarweb website channel visits](https://spiral.ai/integrations/codex/similarweb-website-channel-visits)

# How to Use Similarweb website channel visits in Codex

Returns estimated website visits broken down by marketing channel for a complete month. Use it to compare acquisition volume or measure changes in visits; choose channel shares to compare each channel's relative importance.

|  |  |
| --- | --- |
| Model | Similarweb website channel visits |
| Available through | Alexandria |
| Category | SEO |
| Price | Up to $96.0245 per run. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Similarweb website channel visits in Codex

- Use Similarweb website channel visits for booking.com in the United States for September and October 2026, one month at a time. Add a chart showing the change in estimated visits for each returned channel.
- Use Similarweb website channel visits to compare walmart.com and target.com in the United States for October 2026. Add the results to the project's competitor report with a shared channel order.
- Use Similarweb website channel visits to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from Similarweb website channel visits and tell me what changed since last week.
- Check Similarweb website channel visits and summarize what you find in three bullet points.

## How to set up Similarweb website channel visits 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 Similarweb website channel visits**: 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": "similarweb/channels/traffic",
    "input": {
      "domain": "<domain>",
      "end_date": "<end_date>",
      "start_date": "<start_date>"
    }
  }'
```

Then paste one of the prompts above: Codex finds Similarweb website channel visits on Spiral, shows the price and runs it.

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

## Similarweb website channel visits tools and prices

- [Similarweb · Marketing channel traffic](https://spiral.ai/tools/alexandria/similarweb/channels/traffic) (Alexandria): Up to $96.0245 per run.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| country |  | — | Two-letter lowercase country code or ww. |
| web_source | desktop, mobile_web, total | desktop | Device scope. |
| granularity | monthly | — | Monthly observations. |
| main_domain_only |  | — | Exclude subdomains when true. |

## What can you do with Similarweb website channel visits in Codex?

Build an internal competitor report that compares website acquisition by channel. A coding agent can turn Similarweb shares or visit counts into tables and charts in your project.

### Compare competitor acquisition

Compare nike.com and adidas.com for the same month and market. Use channel shares to compare their acquisition mix and channel visits to compare the scale behind it.

### Find dependence on one channel

Review how much of a website's acquisition comes from its leading channel. Use the result to frame questions about dependence on search, referrals, or direct traffic.

### Review monthly acquisition changes

Compare consecutive complete months for booking.com. Separate changes in channel share from changes in estimated visits before choosing which channels to investigate.

### Compare acquisition across markets

Compare a public business website's channels in the United States and United Kingdom for the same month. Identify where its acquisition mix or traffic volume differs.

### Prepare an SEO planning brief

Compare organic search with the other returned channels for competing retailers. Use the comparison to identify research priorities for an SEO plan.

### Review traffic around a campaign

Compare channel results before and after a campaign month. Describe the observed changes and list follow-up questions before attributing the movement to the campaign.

## Overview

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

## Similarweb website channel visits in other agents

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

## More Codex guides

- [Similarweb website channel shares](https://spiral.ai/integrations/codex/similarweb-website-channel-shares)
- [Similarweb website traffic and engagement](https://spiral.ai/integrations/codex/similarweb-website-traffic-and-engagement)
- [Similarweb referral traffic estimates](https://spiral.ai/integrations/codex/similarweb-referral-traffic-estimates)
- [Similarweb website traffic by country](https://spiral.ai/integrations/codex/similarweb-website-traffic-by-country)
- [Similarweb paid search spend estimates](https://spiral.ai/integrations/codex/similarweb-paid-search-spend-estimates)
- [TikTok company ads](https://spiral.ai/integrations/codex/tiktok-company-ads)

## Questions about Similarweb website channel visits in Codex

**Can Codex use Similarweb website channel visits?**

Yes. Add Spiral to Codex as an MCP server, and Codex can find and run Similarweb website channel visits like any built-in tool.

**How much does Similarweb website channel visits cost in Codex?**

Up to $96.0245 per run. 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 Similarweb website channel visits in Codex?**

No. Spiral runs Similarweb website channel visits on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Similarweb website channel visits in Codex?**

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

**Does Codex wait while Similarweb website channel visits runs?**

Similarweb website channel visits runs in the background. Codex starts the run, checks on it and gives you the json when it's ready.

**When is a complete month's data available?**

Similarweb releases monthly data by the 10th of the following month. For a monthly review, schedule the comparison after that release window.

**Does Marketing Channels include traffic inside mobile apps?**

No. Similarweb Marketing Channels covers web traffic and excludes app traffic, so it does not represent a business's combined website and app audience.

**Can Similarweb report channels for every website?**

No. Its algorithm requires enough traffic to create estimates, so a small or new website may have no available data.

**Why might email activity appear under Direct?**

Similarweb places email traffic from a separate application under Direct. The Email channel therefore does not capture every visit generated by email.

**What counts as a visit?**

Similarweb treats a visit as a session that expires after 30 minutes of inactivity. Channel visit counts measure visits, rather than distinct people.

