# Similarweb Scraper : Traffic, Rankings & Competitors (`just_scrape/similarweb-advanced-scraper`) Actor

Extract traffic estimates, global rankings, engagement metrics, and competitor data from any domain, fast, reliable, and block-resistant.

- **URL**: https://apify.com/just\_scrape/similarweb-advanced-scraper.md
- **Developed by:** [Just Scrape](https://apify.com/just_scrape) (community)
- **Categories:** SEO tools, E-commerce, Developer tools
- **Stats:** 7 total users, 5 monthly users, 66.7% runs succeeded, NaN bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $7.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## SimilarWeb Scraper — Traffic, Rankings & Competitors

Extract traffic estimates, global rankings, engagement metrics, and competitor data from any domain — fast, reliable, and block-resistant.

---

### What you get

Get SimilarWeb data for any domain without a SimilarWeb subscription. This actor returns clean structured JSON ready for your pipeline or spreadsheet.

**Per domain output includes:**

- **Monthly Traffic & Growth**: Visits and month-over-month growth trends.
- **Engagement**: Bounce rate, pages per visit, and avg session duration.
- **Traffic Sources**: Direct, Search (Organic/Paid), Social, Referrals, and Mail.
- **Search Insights**: Top organic keywords driving traffic.
- **AI Intelligence**: Visibility into referrals from ChatGPT, Gemini, and Perplexity.
- **Historical Trends**: 3-month historical traffic timeline.
- **Competitors**: Top 5 competitor domains by similarity score.
- **Geography**: Top 5 countries by traffic share.

---

### Example output

```json
{
  "status": "success",
  "domain": "cairo24.com",
  "source": "network",
  "data": {
    "globalRank": 21962,
    "categoryRank": 19,
    "category": "News_and_Media",
    "engagements": {
      "totalVisits": 3391678,
      "bounceRate": 0.31,
      "pagesPerVisit": 1.98,
      "avgTimeOnSite": 67
    },
    "trafficSources": {
      "search": 0.5862,
      "direct": 0.3012,
      "social": 0.0729,
      "referrals": 0.0333
    },
    "topKeywords": [
      { "name": "القاهرة 24", "volume": 10760 }
    ],
    "aiTraffic": {
      "totalVisits": 1406,
      "topChatbots": [
        { "name": "chatgpt.com", "rank": 1 }
      ]
    },
    "historicalVisits": [
      { "date": "2026-01-01", "visits": 4770521 }
    ],
    "analysis": {
      "growthMoM": -9.96,
      "trafficTrend": "declining"
    }
  }
}
````

***

### Why it stays working

**Block resistance.** Uses a fast HTTP tier with JA4+ fingerprinting. If blocked, automatically falls back to a stealth browser layer to pass Cloudflare and Akamai detection.

**Self-healing parser.** Automatically recalibrates if SimilarWeb changes its internal JSON structure—no manual maintenance needed.

**SWR caching.** Serving stale data instantly while refreshing in the background to cut proxy costs.

***

### Inputs

| Field | Type | Default | Description |
|---|---|---|---|
| `domains` | string\[] | — | Domains to query, e.g. `["france24.com"]` |
| `simplifiedOutput` | boolean | true | Returns the enriched marketing report |
| `includeRaw` | boolean | false | Attach the original 1:1 API response to every result |
| `maxAgeDays` | integer | 14 | Max cache age before forcing a fresh scrape |
| `swrGraceDays` | integer | 7 | Days to serve stale data while refreshing |
| `stealthMode` | boolean | true | Enable browser fallback on block |

***

### Pricing

Estimated cost per 1,000 domains: **~$1.05** (proxy + compute). SimilarWeb's own API costs $400–1,000/month for equivalent access.

***

### Notes

- Data reflects SimilarWeb's estimated figures.
- Results for very small or new domains may return limited data.

# Actor input Schema

## `domains` (type: `array`):

List of domains to query (e.g., france24.com).

## `maxResults` (type: `integer`):

Maximum number of domains to process (useful for controlling costs).

## `maxAgeDays` (type: `integer`):

How old a cached record can be before a fresh scrape is forced.

## `swrGraceDays` (type: `integer`):

Number of days past expiration where stale data is returned instantly while a background refresh is triggered.

## `simplifiedOutput` (type: `boolean`):

Automatically calculate Growth MoM, Traffic Trends, and Benchmarks (Recommended).

## `stealthMode` (type: `boolean`):

Enable automated Playwright-fallback and JA4+ spoofing. If disabled, uses pure HTTP only.

## `forcePlaywright` (type: `boolean`):

Bypass fast HTTP entirely and use headless browsers for maximum security (increases compute cost).

## `debugMode` (type: `boolean`):

Show recursive calibration logs in the Actor console.

## `includeRaw` (type: `boolean`):

Attach the full, unmodified Similarweb API response to each result (useful for advanced processing).

## Actor input object example

```json
{
  "domains": [
    "france24.com",
    "reuters.com"
  ],
  "maxResults": 1000,
  "maxAgeDays": 14,
  "swrGraceDays": 7,
  "simplifiedOutput": true,
  "stealthMode": true,
  "forcePlaywright": false,
  "debugMode": false,
  "includeRaw": false
}
```

# Actor output Schema

## `results` (type: `string`):

Direct link to the generated marketing results in the dataset.

## `debug` (type: `string`):

Access the self-healing calibration map if changes were detected.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "domains": [
        "france24.com",
        "reuters.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("just_scrape/similarweb-advanced-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "domains": [
        "france24.com",
        "reuters.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("just_scrape/similarweb-advanced-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "domains": [
    "france24.com",
    "reuters.com"
  ]
}' |
apify call just_scrape/similarweb-advanced-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=just_scrape/similarweb-advanced-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Similarweb Scraper : Traffic, Rankings & Competitors",
        "description": "Extract traffic estimates, global rankings, engagement metrics, and competitor data from any domain, fast, reliable, and block-resistant.",
        "version": "1.0",
        "x-build-id": "RY61ml8qHQhGtBW9t"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/just_scrape~similarweb-advanced-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-just_scrape-similarweb-advanced-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/just_scrape~similarweb-advanced-scraper/runs": {
            "post": {
                "operationId": "runs-sync-just_scrape-similarweb-advanced-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/just_scrape~similarweb-advanced-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-just_scrape-similarweb-advanced-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "domains"
                ],
                "properties": {
                    "domains": {
                        "title": "Domains to scrape",
                        "type": "array",
                        "description": "List of domains to query (e.g., france24.com).",
                        "items": {
                            "type": "string"
                        }
                    },
                    "maxResults": {
                        "title": "Max Results",
                        "minimum": 1,
                        "type": "integer",
                        "description": "Maximum number of domains to process (useful for controlling costs).",
                        "default": 1000
                    },
                    "maxAgeDays": {
                        "title": "Cache Max Age (Days)",
                        "minimum": 1,
                        "type": "integer",
                        "description": "How old a cached record can be before a fresh scrape is forced.",
                        "default": 14
                    },
                    "swrGraceDays": {
                        "title": "SWR Grace Window (Days)",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Number of days past expiration where stale data is returned instantly while a background refresh is triggered.",
                        "default": 7
                    },
                    "simplifiedOutput": {
                        "title": "Simplified Output",
                        "type": "boolean",
                        "description": "Automatically calculate Growth MoM, Traffic Trends, and Benchmarks (Recommended).",
                        "default": true
                    },
                    "stealthMode": {
                        "title": "Self-Healing Evasion",
                        "type": "boolean",
                        "description": "Enable automated Playwright-fallback and JA4+ spoofing. If disabled, uses pure HTTP only.",
                        "default": true
                    },
                    "forcePlaywright": {
                        "title": "Force Deep Browser",
                        "type": "boolean",
                        "description": "Bypass fast HTTP entirely and use headless browsers for maximum security (increases compute cost).",
                        "default": false
                    },
                    "debugMode": {
                        "title": "Developer Debug Mode",
                        "type": "boolean",
                        "description": "Show recursive calibration logs in the Actor console.",
                        "default": false
                    },
                    "includeRaw": {
                        "title": "Include Raw Data",
                        "type": "boolean",
                        "description": "Attach the full, unmodified Similarweb API response to each result (useful for advanced processing).",
                        "default": false
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
