# 🚀 Advanced Traffic Generator (`mindseter/advanced-traffic-generator`) Actor

Professional web traffic generator delivering authentic, high-quality visitor sessions with geographic targeting, realistic behavior simulation, and analytics compatibility. Ideal for marketing, website testing, and performance monitoring

- **URL**: https://apify.com/mindseter/advanced-traffic-generator.md
- **Developed by:** [MindSeter](https://apify.com/mindseter) (community)
- **Categories:** SEO tools, Automation, Lead generation
- **Stats:** 97 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

$8.00/month + usage

To use this Actor, you pay a monthly rental fee to the developer. The rent is subtracted from your prepaid usage every month after the free trial period. You also pay for the Apify platform usage, which gets cheaper the higher Apify subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#rental-actors

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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

## Professional Traffic Generator

A high-performance web traffic generation service designed for website analytics, testing, and marketing campaigns. This tool generates authentic visitor sessions with geographic distribution capabilities and realistic user behavior simulation.

### Features

#### Core Traffic Generation

- **Authentic Browser Sessions**: Real browser instances with JavaScript execution for accurate analytics tracking
- **Geographic Distribution**: Support for targeted traffic from specific countries or global distribution
- **Realistic User Behavior**: Mouse movements, scrolling, and natural session durations
- **High Performance**: Optimized for speed with concurrent processing capabilities

#### Analytics Compatibility

- **Google Analytics Support**: Full JavaScript execution ensures proper tracking
- **YouTube Compatible**: Supports video platforms and complex JavaScript applications
- **Cross-Platform**: Works with any website or web application
- **Real Session Data**: Generates authentic visitor sessions that appear in analytics dashboards

#### Advanced Configuration

- **Proxy Integration**: Built-in residential proxy support for geographic targeting
- **Resource Optimization**: Intelligent resource blocking for faster execution while preserving tracking scripts
- **Flexible Scheduling**: Configurable session durations and concurrent visitor limits
- **Professional Logging**: Clean, informative progress reporting

### Quick Start

#### Basic Configuration

```json
{
  "startUrls": [
    { "url": "https://your-website.com/" }
  ],
  "numberOfVisitors": 100,
  "maxConcurrency": 10
}
```

#### Geographic Targeting

```json
{
  "startUrls": [
    { "url": "https://your-website.com/" }
  ],
  "numberOfVisitors": 200,
  "geoTargeting": ["US", "GB", "DE", "FR", "CA"],
  "maxConcurrency": 15
}
```

#### Global Distribution

```json
{
  "startUrls": [
    { "url": "https://your-website.com/" }
  ],
  "numberOfVisitors": 500,
  "geoTargeting": [],
  "maxConcurrency": 20
}
```

### Configuration Options

#### Required Parameters

- **startUrls**: Array of target URLs for traffic generation
- **numberOfVisitors**: Total number of visitor sessions to generate

#### Traffic Settings

- **maxConcurrency**: Number of simultaneous visitor sessions (1-25, default: 10)
- **minStayDuration**: Minimum time per page visit in milliseconds (default: 3000)
- **maxStayDuration**: Maximum time per page visit in milliseconds (default: 15000)

#### Behavior Settings

- **mouseMovements**: Enable realistic mouse movement simulation (default: true)
- **scrollBehavior**: Enable natural page scrolling behavior (default: true)
- **enableResourceBlocking**: Optimize loading speed while preserving tracking (default: true)

#### Geographic Options

- **geoTargeting**: Array of country codes for targeted traffic (leave empty for global)
  - Supported: US, GB, DE, FR, CA, AU, IT, ES, JP, BR, and more
  - Empty array uses automatic global distribution

#### System Settings

- **endAfterSeconds**: Maximum runtime before automatic termination (default: 1800)
- **proxy**: Proxy configuration for geographic distribution

### Use Cases

#### Website Analytics Testing

- Validate Google Analytics setup
- Test conversion tracking
- Monitor user behavior patterns
- Geographic performance analysis

#### Marketing Campaigns

- Boost website engagement metrics
- Test landing page performance
- Validate marketing attribution
- Regional campaign testing

#### Platform Testing

- YouTube video engagement
- Social media platform testing
- E-commerce funnel validation
- Cross-browser compatibility

### Security & Privacy

- Residential proxy integration for authentic IP addresses
- Geographic IP distribution matching target regions
- Browser fingerprinting with realistic device profiles
- Secure session management and data handling

### Output Data

The service generates detailed analytics data for each visitor session:

```json
{
  "url": "https://example.com/",
  "success": true,
  "timestamp": "2025-10-23T15:30:00.000Z",
  "region": "US",
  "performance": {
    "duration": 2847,
    "stayTime": 8230
  },
  "visitor": {
    "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36...",
    "locale": "en-US",
    "region": "US"
  }
}
```

### Support

#### Troubleshooting

- Check target URL accessibility
- Verify proxy configuration if using geographic targeting
- Monitor system resources during high-concurrency runs
- Review logs for specific error messages

#### Best Practices

- Start with lower concurrency for initial testing
- Use geographic targeting for region-specific campaigns
- Enable resource blocking for optimal performance
- Monitor analytics dashboards for real-time verification

***

*Professional Traffic Generator - Reliable web traffic solutions for modern digital marketing and analytics needs.*

# Actor input Schema

## `startUrls` (type: `array`):

List of URLs to generate traffic for

## `numberOfVisitors` (type: `integer`):

Total number of visitors to generate

## `maxConcurrency` (type: `integer`):

Number of simultaneous visitors (higher values increase speed)

## `minStayDuration` (type: `integer`):

Minimum time each visitor spends on page

## `maxStayDuration` (type: `integer`):

Maximum time each visitor spends on page

## `mouseMovements` (type: `boolean`):

Simulate realistic mouse movements during visits

## `scrollBehavior` (type: `boolean`):

Simulate natural page scrolling behavior

## `enableResourceBlocking` (type: `boolean`):

Block unnecessary resources to improve performance while preserving essential tracking scripts

## `geoTargeting` (type: `array`):

Specific countries for traffic targeting. Leave empty for global distribution from all available countries.

## `endAfterSeconds` (type: `integer`):

Automatically stop after specified time

## `proxy` (type: `object`):

Proxy settings for traffic generation

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://example.com/"
    }
  ],
  "numberOfVisitors": 10,
  "maxConcurrency": 1,
  "minStayDuration": 3000,
  "maxStayDuration": 15000,
  "mouseMovements": false,
  "scrollBehavior": false,
  "enableResourceBlocking": true,
  "geoTargeting": [],
  "endAfterSeconds": 1800
}
```

# 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 = {
    "startUrls": [
        {
            "url": "https://example.com/"
        }
    ],
    "geoTargeting": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("mindseter/advanced-traffic-generator").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 = {
    "startUrls": [{ "url": "https://example.com/" }],
    "geoTargeting": [],
}

# Run the Actor and wait for it to finish
run = client.actor("mindseter/advanced-traffic-generator").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "startUrls": [
    {
      "url": "https://example.com/"
    }
  ],
  "geoTargeting": []
}' |
apify call mindseter/advanced-traffic-generator --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,mindseter/advanced-traffic-generator"
        }
    }
}

```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/CGWYwclkhpYYG4kKl/builds/M4XcTgAkgq5n01f1U/openapi.json
