> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mindcase.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Web Traffic API

> Traffic estimates for any website: monthly visits, global and category rank, engagement, where the traffic comes from, which countries and keywords drive it, and how much of it now arrives from AI assistants.

`POST /v1/data/similarweb/traffic/run`

**Pricing:** $0.002 per domain ($2.00 per 1,000).

One or more domains or website URLs.

## Request

Send the inputs under `params`. Only the keys below are accepted; any other key returns `422 invalid_params`.

**domains** `string[]` *required*

Domains or website URLs to look up. Hostnames are normalised, lowercased and deduplicated. Up to 200 per request.

**maxResults** `integer`

Stop after this many domains have been looked up. Each domain costs one row, so this caps the bill as well as the output. 0 or omitted means every domain you sent.

Max `200`.

## Example

```bash cURL theme={null}
curl -X POST "https://api.mindcase.co/v1/data/similarweb/traffic/run?wait=true" \
  -H "Authorization: Bearer $MINDCASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "params": {
    "domains": [
      "shopify.com",
      "stripe.com",
      "github.com"
    ]
  }
}'
```

```python Python theme={null}
import os, requests

r = requests.post(
    "https://api.mindcase.co/v1/data/similarweb/traffic/run",
    params={"wait": "true"},
    headers={"Authorization": f"Bearer {os.environ['MINDCASE_API_KEY']}"},
    json={"params": {
    "domains": [
        "shopify.com",
        "stripe.com",
        "github.com"
    ]
}},
)
job = r.json()
rows = job.get("data", [])  # if job["status"] == "running", poll /v1/jobs/{job_id}/results
```

```javascript Node.js theme={null}
const r = await fetch("https://api.mindcase.co/v1/data/similarweb/traffic/run?wait=true", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MINDCASE_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ params: {
  "domains": [
    "shopify.com",
    "stripe.com",
    "github.com"
  ]
} }),
});
const job = await r.json();
const rows = job.data ?? []; // if job.status === "running", poll /v1/jobs/{job_id}/results
```

## Response fields

Each row in `data` is one domain, keyed by these fields.

| Field | Name | Type |
| - | - | - |
| `domain` | Domain | text |
| `siteName` | Site Name | text |
| `title` | Title | text |
| `description` | Description | text |
| `category` | Category | text |
| `globalRank` | Global Rank | number |
| `categoryRank` | Category Rank | number |
| `countryRank` | Country Rank | number |
| `topCountry` | Top Country | text |
| `monthlyVisits` | Monthly Visits | number |
| `snapshotMonth` | Snapshot Month | text |
| `bounceRate` | Bounce Rate | number |
| `pagesPerVisit` | Pages Per Visit | number |
| `avgVisitDuration` | Avg Visit Duration | number |
| `trafficSources` | Traffic Sources | object |
| `visitsByMonth` | Visits By Month | object |
| `topCountries` | Top Countries | object\_array |
| `topKeywords` | Top Keywords | object\_array |
| `topAiSources` | Top AI Sources | object\_array |
| `aiVisits` | AI Visits | number |
| `aiTrafficShare` | AI Traffic Share | number |

## Example response

Abridged: long text and lists are shortened.

```json theme={null}
{
  "job_id": "7f3a1c2e-0b9d-4c55-9a51-3f2e8d1b6a40",
  "agent": "similarweb/traffic",
  "status": "completed",
  "row_count": 1,
  "truncated": false,
  "data": [
    {
      "bounceRate": 0.44159283636909674,
      "avgVisitDuration": 489.6871087530139,
      "globalRank": 98,
      "topKeywords": [
        {
          "cpc": 4.42,
          "volume": 4839410,
          "keyword": "shopify",
          "estimatedValue": 6472200
        },
        {
          "cpc": 0.53,
          "volume": 64977410,
          "keyword": "pinterest",
          "estimatedValue": 1449650
        }
      ],
      "pagesPerVisit": 7.5759004025180605,
      "aiTrafficShare": 0.0065614283951504005,
      "categoryRank": 1,
      "snapshotMonth": "2026-08-01",
      "domain": "shopify.com",
      "description": "Shopify’s list of terms and conditions that apply to all users that access or use the Shopify API or any associated information or other data.",
      "topCountries": [
        {
          "share": 0.351480902747507,
          "country": "United States",
          "countryCode": "US"
        },
        {
          "share": 0.07309236041081701,
          "country": "United Kingdom",
          "countryCode": "GB"
        }
      ],
      "category": "business_and_consumer_services/business_services",
      "siteName": "shopify.com",
      "trafficSources": {
        "mail": 0.058298472572604225,
        "genAi": 0.006730107122555046,
        "direct": 0.6387622358440509,
        "affiliate": 0.0201424457773387,
        "referrals": 0.1392716705089689,
        "displayAds": 0.01831324805721471,
        "searchPaid": 0.01941203192017965,
        "socialPaid": 0.0074387281998846335,
        "searchOrganic": 0.05546503593776495,
        "socialOrganic": 0.03616602405943819
      },
      "aiVisits": 1653347.378,
      "topCountry": "US",
      "topAiSources": [
        {
          "rank": 1,
          "source": "chatgpt.com"
        },
        {
          "rank": 2,
          "source": "claude.ai"
        }
      ],
      "visitsByMonth": {
        "2026-06-01": 238561548,
        "2026-07-01": 262875718,
        "2026-08-01": 268283859
      },
      "title": "Shopify Terms of Service",
      "monthlyVisits": 268283859,
      "countryRank": 70
    }
  ]
}
```

## Related APIs

For competitor discovery from a domain use [`similarweb/similar-sites`](https://docs.mindcase.co/apis/similarweb/similar-sites).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.