# WTG Random Scheduler (`m3web/wtg-random-scheduler-5`) Actor

Supporting Actor for Websites Traffic Generator. Automates randomized scheduling (no-code) to simulate organic traffic across days and time windows - ideal for SEO campaigns, visibility boosts, and hands-free traffic automation.

- **URL**: https://apify.com/m3web/wtg-random-scheduler-5.md
- **Developed by:** [M3Web](https://apify.com/m3web) (community)
- **Categories:** Automation, Integrations, Other
- **Security:** Full permissions
- **Stats:** 6 total users, 0 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## ⏱ WTG Random Scheduler

### 🤖 What This Actor Does

**WTG Random Scheduler** is a supporting Actor for the [Websites Traffic Generator](https://apify.com/m3web/websites-traffic-generator). It automates the creation of randomized schedules (no-code) to simulate organic traffic across multiple days and time windows — ideal for SEO campaigns, visibility boosts, and hands-free traffic automation.

***

#### ⚠️ **IMPORTANT: Do Not Fill Inputs in Websites Traffic Generator**

When using **WTG Random Scheduler**, you do **not** need to fill any inputs in the Websites Traffic Generator Actor.\
All required inputs — including URLs, countries, session settings, and concurrency — are handled **here** and passed automatically.\
Just run this Actor and it will schedule everything for you.

***

### 🛠 Input Overview

### 🕒 Schedule Configuration

This section controls how visits are distributed over time. Use it to simulate realistic traffic patterns by spreading visits across multiple days and hours.

| **Field**                  | **Purpose**                                                                 | **Example**                                                                 | **Notes**                                                                                          |
|---------------------------|------------------------------------------------------------------------------|------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------|
| **Start Hour**         | Sets the earliest hour of the day when visits can be scheduled              | `9` → visits start no earlier than 9:00 AM                                   | Use a realistic window like `9–20` to simulate daytime traffic                                     |
| **End Hour**           | Sets the latest hour of the day when visits can be scheduled                | `20` → visits stop by 8:00 PM                                                | Should be greater than or equal to Start Hour                                                      |
| **Maximum Total Schedules** | Total number of schedules to create across all days                         | `30` schedules over `7` days → distributed like `3, 7, 2, 6, 4, 5, 3`         | Apify allows **max 100 schedules per account**. Check Console to confirm all were created          |
| **Number of Days**      | How many consecutive days to repeat the simulation                          | `7` → schedules created for the next 7 days                                  | Actor spreads visits with slight variation to mimic natural traffic patterns                       |
| **Timezone**            | Defines the timezone in which the schedules will run                        | `Europe/Berlin` → 9:00 AM visit triggers at 9:00 AM Berlin time              | Aligns visits with your audience’s local behavior. If unsure, use `UTC`                            |

✅ **Example Setup:** This setup will create 30 randomized schedules spread across 7 days, between 9:00 and 20:00 Berlin time.

#### 📌 Notes

- Schedules are created using Apify’s built-in scheduler. Once created, they will run automatically.
- If you want to simulate new traffic patterns, **re-run this Actor** to generate fresh schedules.
- Old schedules are not automatically deleted — you can remove them manually via Apify Console.

***

### 📥 Basic inputs for Websites Traffic Generator

#### 🔹 1.1 Start URLs

Add the full list of webpages you want to boost-not just the homepage or domain. Include product pages, blog posts, landing pages, or any URL you want search engines to notice. The Actor will simulate steady, organic visits to each one.

#### 🔹 1.2 Country

Choose the country you want the visits to appear from.

- `Datacenter proxies (DCP)` are a cheaper option, but they don’t guarantee accurate geolocation.
- For better results, select a specific country or `Worldwide (WW)` to use residential proxies, which offer more realistic IP targeting.

#### 🔹 Run duration

This sets how long the Actor will run. The actual visit time will be randomly selected from one of these ranges: `5-10`, `10-15`, `15-20`, ... `90-105`, `105-120` minutes.\
If you want to run longer than 60 minutes, scroll to the bottom of the input panel and increase `Run options > Timeout` to more than `3600` seconds (default).

There’s also a **built-in kill switch** inside the Actor (no setup required). It activates automatically a few minutes after the selected run duration to ensure safe shutdown and prevent overrun.

#### 🔹 Block images & videos

💰 **Cost-Saving Option**\
Enable this to prevent images and video files from loading on the pages the Actor visits. Since this Actor charges you for the actual platform usage it consumes, blocking media can meaningfully reduce your cost per run on media-heavy sites — without changing how the simulated visit behaves (scrolling, mouse movement, and follow-up clicks all work the same either way).

***

### ⚙️ Advanced Options for Websites Traffic Generator

| 🔹 Input Field | 💬 Description |
|----------------|----------------|
| **Max Concurrency** | Set how many visits should run at the same time. The default is `6`, but you can go as low as `2` or as high as `12`. Higher values generate more traffic. |
| **Create traffic spike** | If enabled, the Actor will ramp up traffic gradually, peak in the middle, and taper off toward the end-mimicking how real traffic behaves during trending moments. |
| **Minimum & Maximum single visit duration** | These two fields work together to define how long each simulated visit will last. The Actor will randomly choose a duration between the minimum and maximum values for every visit. <br><br>• Shorter visits (e.g. 30–60 seconds) will result in more unique visits during the run time. <br>• Longer visits (e.g. 180 seconds) will simulate deeper engagement, with each visitor spending more time and clicking through multiple pages on the same site. <br><br>Default values are `30` seconds minimum and `75` seconds maximum, but feel free to adjust them to match your goals. |
| **Randomly select only one URL from the same domain** | If enabled, the Actor will randomly pick just one URL per domain. Useful if you’ve added multiple pages from the same site and want to avoid overloading it. |
| **Mobile vs Desktop** | Choose what percentage of visits should come from mobile devices. The rest will be desktop. Default is `90%` mobile, which reflects modern traffic trends. Feel free to experiment-these settings are safe to test! |

***

### 🗺️ Set up URLs for visits from other countries - Websites Traffic Generator

You can define up to **five separate country-based traffic streams**. Each stream has its own Start URLs and Country selection. This is perfect if you're working with multiple websites or want to simulate global traffic.

For example:

- `**2.1 Start URLs for second country**` - Add pages you want visited from a second region.
- `**2.2 Country**` - Choose the country for those visits.
- Repeat for third, fourth, and fifth countries as needed.

This setup gives you full control over how traffic is distributed across regions and websites.

# Actor input Schema

## `startHour` (type: `integer`):

Earliest hour (0–23) to begin scheduling visits

## `endHour` (type: `integer`):

Latest hour (0–23) to end scheduling visits

## `maxSchedules` (type: `integer`):

Total number of schedules to create across all days (max 100) must be ≥ number of days

## `days` (type: `integer`):

How many days to repeat the simulation

## `timezone` (type: `string`):

Timezone in which the schedule should run (e.g. Asia/Tokyo, America/New_York).

## `basicInputs` (type: `string`):

Basic inputs for Websites Traffic Generator

## `startUrl` (type: `array`):

List of URLs to simulate steady, organic web traffic.

## `countryCode` (type: `string`):

Select a country to generate visits from.

## `runTime` (type: `string`):

Select run duration in minutes.

## `interceptMedia` (type: `boolean`):

When enabled, the Actor blocks images and video files from loading on visited pages. This reduces proxy bandwidth usage and can lower platform costs, especially on media-heavy sites. Since this Actor passes platform usage costs through to you, turning this on is an easy way to cut your run cost with no effect on the simulated scrolling, mouse movement, or click-through behavior.

## `advancedOptions` (type: `string`):

Additional settings options.

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

Set the maximum number of visits that will be processed simultaneously.

## `createSpike` (type: `boolean`):

If ON, traffic ramps up at the beginning, peaks during the core window, and tapers off toward the end. Most of the time, concurrency stays close to your selected Max Concurrency value.

## `minSession` (type: `integer`):

Each individual visit cannot be shorter than the time you specify.

## `maxSession` (type: `integer`):

Each individual visit cannot be longer than the time you specify.

## `deduplicateDomains` (type: `boolean`):

If enabled, the Actor will randomly pick one URL per domain.

## `mobileVSdesktop` (type: `integer`):

Select a percentage of Mobile devices (Smartphone and tablet), and the remaining amount will be Desktop devices (PC and Laptop)

## `otherCountries` (type: `string`):

Set up URLs for visits from other countries

## `startUrl2` (type: `array`):

List of URLs to simulate steady, organic web traffic.

## `countryCode2` (type: `string`):

Select a country to generate visits from.

## `startUrl3` (type: `array`):

List of URLs to simulate steady, organic web traffic.

## `countryCode3` (type: `string`):

Select a country to generate visits from.

## `startUrl4` (type: `array`):

List of URLs to simulate steady, organic web traffic.

## `countryCode4` (type: `string`):

Select a country to generate visits from.

## `startUrl5` (type: `array`):

List of URLs to simulate steady, organic web traffic.

## `countryCode5` (type: `string`):

Select a country to generate visits from.

## Actor input object example

```json
{
  "startHour": 9,
  "endHour": 20,
  "maxSchedules": 1,
  "days": 1,
  "timezone": "UTC",
  "startUrl": [
    {
      "url": "https://apify.com/m3web/websites-traffic-generator"
    }
  ],
  "countryCode": "WW",
  "runTime": "2",
  "interceptMedia": false,
  "maxConcurrency": 6,
  "createSpike": true,
  "minSession": 30,
  "maxSession": 75,
  "deduplicateDomains": false,
  "mobileVSdesktop": 90,
  "startUrl2": [],
  "countryCode2": "US",
  "startUrl3": [],
  "countryCode3": "DE",
  "startUrl4": [],
  "countryCode4": "GB",
  "startUrl5": [],
  "countryCode5": "FR"
}
```

# 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 = {
    "startUrl": [
        {
            "url": "https://apify.com/m3web/websites-traffic-generator"
        }
    ],
    "startUrl2": [],
    "startUrl3": [],
    "startUrl4": [],
    "startUrl5": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("m3web/wtg-random-scheduler-5").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 = {
    "startUrl": [{ "url": "https://apify.com/m3web/websites-traffic-generator" }],
    "startUrl2": [],
    "startUrl3": [],
    "startUrl4": [],
    "startUrl5": [],
}

# Run the Actor and wait for it to finish
run = client.actor("m3web/wtg-random-scheduler-5").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 '{
  "startUrl": [
    {
      "url": "https://apify.com/m3web/websites-traffic-generator"
    }
  ],
  "startUrl2": [],
  "startUrl3": [],
  "startUrl4": [],
  "startUrl5": []
}' |
apify call m3web/wtg-random-scheduler-5 --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,m3web/wtg-random-scheduler-5"
        }
    }
}
```

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/LUbHO1mLedisNTqcF/builds/6bpoNn28jKuPpmtIo/openapi.json
