{
  "openapi": "3.0.1",
  "info": {
    "title": "Website Traffic Generator & Organic Visitor Simulator",
    "description": "Automated website traffic generator & organic visitor simulator for websites, Shopify & blogs. Real Patchright Chrome sessions from Google Search, 20 countries, mobile & desktop personas, high dwell time, safe CTA/video clicks, 80% proxy saver & live GA4 tracking.",
    "version": "1.0",
    "x-build-id": "beBfD54URmcKAGCsl"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/hirepulse~website-traffic-generator/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-hirepulse-website-traffic-generator",
        "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/hirepulse~website-traffic-generator/runs": {
      "post": {
        "operationId": "runs-sync-hirepulse-website-traffic-generator",
        "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/hirepulse~website-traffic-generator/run-sync": {
      "post": {
        "operationId": "run-sync-hirepulse-website-traffic-generator",
        "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",
        "properties": {
          "targetUrl": {
            "title": "Primary Target URL",
            "type": "string",
            "description": "Main website, e-commerce storefront, SaaS landing page, or blog URL to visit.",
            "default": "https://citedcart.com"
          },
          "startUrls": {
            "title": "Additional Target URLs (Multi-Site Round-Robin)",
            "type": "array",
            "description": "Optional list of multiple URLs to distribute visits across in round-robin order. If provided alongside Primary Target URL, all unique URLs are included.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "pages": {
            "title": "Internal Sub-Pages to Browse",
            "type": "array",
            "description": "Relative paths (e.g. '/', '/pricing', '/blog') or full URLs on the target domain to explore during multi-page sessions.",
            "default": [
              "/"
            ],
            "items": {
              "type": "string"
            }
          },
          "visitCount": {
            "title": "Total Visits (Sessions)",
            "minimum": 1,
            "maximum": 50000,
            "type": "integer",
            "description": "Total number of synthetic visitor journeys to execute in this run.",
            "default": 5
          },
          "visitorPersona": {
            "title": "Visitor Behavioral Persona",
            "enum": [
              "mixed_personas",
              "deep_reader",
              "product_shopper",
              "funnel_converter",
              "video_media_viewer"
            ],
            "type": "string",
            "description": "Select how visitors behave on the site: mixed realistic rotation across readers, shoppers, funnel converters, and media viewers, or lock a specific persona.",
            "default": "mixed_personas"
          },
          "maxConcurrency": {
            "title": "Max Parallel Sessions",
            "minimum": 1,
            "maximum": 32,
            "type": "integer",
            "description": "Maximum concurrent browser contexts or HTTP workers. Automatically clamped to safe container RAM limits.",
            "default": 2
          },
          "dwellTimeSecs": {
            "title": "Page Dwell & Reading Time (Seconds)",
            "minimum": 1,
            "maximum": 180,
            "type": "integer",
            "description": "Average time each visitor spends scrolling, reading, and interacting on landing/internal pages.",
            "default": 6
          },
          "waveMode": {
            "title": "Traffic Pacing Wave",
            "enum": [
              "natural_peaks",
              "steady",
              "ramp_up",
              "burst",
              "off"
            ],
            "type": "string",
            "description": "Controls inter-visit arrival pacing so traffic arrives in natural peaks, gradual ramp-up, or steady intervals.",
            "default": "natural_peaks"
          },
          "enableCtaAndFunnel": {
            "title": "Enable Safe CTA & Funnel Exploration",
            "type": "boolean",
            "description": "Automatically locates safe same-origin conversion CTAs (Pricing, Tools, Shop, Get Started, Features) while strictly excluding external ad slots.",
            "default": true
          },
          "enableVideoInteraction": {
            "title": "Enable On-Page Video Player Interaction & QA",
            "type": "boolean",
            "description": "Detects HTML5 <video> and product demo players on the target site, scrolls into view, triggers playback, and verifies readiness.",
            "default": true
          },
          "auditAdPlacementsReadOnly": {
            "title": "Read-Only Ad Slot & Overlay Audit (Strictly Zero Clicks)",
            "type": "boolean",
            "description": "Safely inspects AdSense/display slot visibility and layout presence without ever clicking ads (enforces strict zero-click safety).",
            "default": true
          },
          "aiMode": {
            "title": "AI Orchestration Mode",
            "enum": [
              "smart_heuristic",
              "hirepulse",
              "openai",
              "gemini",
              "openrouter",
              "groq",
              "ollama_cloud",
              "off"
            ],
            "type": "string",
            "description": "Smart Heuristic works out-of-the-box with zero API keys. Connect HirePulse Cloud Credits (gethirepulse.xyz/credits) or your own OpenAI / Gemini / OpenRouter / Groq / Ollama key for full LLM DOM reasoning.",
            "default": "smart_heuristic"
          },
          "aiGoal": {
            "title": "Plain-English Visitor Mission (AI Goal)",
            "type": "string",
            "description": "Describe what visitors should naturally explore on your site without writing CSS selectors (e.g., 'Browse product collections, inspect pricing or tools, and read a guide').",
            "default": "Explore featured products, tools, pricing, or guides like an engaged organic visitor."
          },
          "aiRouteRepair": {
            "title": "AI Self-Healing Selector Repair",
            "type": "boolean",
            "description": "Automatically locate the closest matching visible button or link if a custom scenarioStep selector breaks after a UI update.",
            "default": true
          },
          "aiApiKey": {
            "title": "Optional AI API Key / HirePulse Credit Key (Encrypted)",
            "type": "string",
            "description": "Leave empty for Smart Heuristic mode, or paste your HirePulse Credit Key (https://gethirepulse.xyz/credits) or OpenAI / Gemini / OpenRouter / Groq / Ollama API key."
          },
          "aiModel": {
            "title": "Optional Custom AI Model Override",
            "type": "string",
            "description": "Optional model ID when using BYOK mode (leaves provider's fast default model when blank).",
            "default": ""
          },
          "executionMode": {
            "title": "Execution Mode",
            "enum": [
              "browser_journey",
              "http_fast"
            ],
            "type": "string",
            "description": "Real Browser Journey launches full browser contexts for JS rendering, biometric scrolling, personas, and GA4 verification. HTTP Fast sends lightweight HTTP/S requests without a browser.",
            "default": "browser_journey"
          },
          "browserEngine": {
            "title": "Browser Engine",
            "enum": [
              "patchright",
              "chromium",
              "camoufox"
            ],
            "type": "string",
            "description": "Select Patchright (driver-level patched Chromium with zero CDP Runtime.enable leak) or Playwright Chromium with stealth evasions and fingerprint injection.",
            "default": "patchright"
          },
          "devicePreset": {
            "title": "Device & Viewport Profile",
            "enum": [
              "mixed_realistic",
              "desktopChrome",
              "iphone14",
              "pixel7",
              "desktopFirefox",
              "desktopSafari",
              "ipadPro11"
            ],
            "type": "string",
            "description": "Emulate realistic desktop and mobile viewports, scale factors, touch capabilities, and matched User-Agent hints.",
            "default": "mixed_realistic"
          },
          "sessionPersistence": {
            "title": "Returning Visitor Persistence (Cookies & Storage)",
            "type": "boolean",
            "description": "Reuse browser storageState slots across visits within the run to simulate returning visitors alongside new visitors.",
            "default": false
          },
          "referrerMode": {
            "title": "Traffic Source / Referrer Mode",
            "enum": [
              "mixed",
              "google_organic",
              "search_engines",
              "social",
              "direct"
            ],
            "type": "string",
            "description": "Controls the HTTP Referer and document.referrer trail attached to each incoming visit.",
            "default": "mixed"
          },
          "liveSerpWarmup": {
            "title": "Live Search Engine Warm-Up (Experimental SERP Entry)",
            "type": "boolean",
            "description": "When enabled, visits first open a search engine (DuckDuckGo / Bing), type the search query biometrically, and fall back cleanly to HTTP Referer if challenged.",
            "default": false
          },
          "searchQuery": {
            "title": "Custom Organic Search Keyword",
            "type": "string",
            "description": "Optional keyword phrase embedded into search/social referrer URLs (e.g., 'best shopify seo audit tool'). Auto-generated from target URL when left blank.",
            "default": ""
          },
          "utmCampaign": {
            "title": "Optional UTM Campaign Tag",
            "type": "string",
            "description": "If set, appends clean utm_source, utm_medium, and utm_campaign parameters to landing URLs so QA sessions are easy to filter in GA4.",
            "default": ""
          },
          "scenarioSteps": {
            "title": "Custom Journey Scenario Steps (JSON)",
            "type": "array",
            "description": "Optional ordered array of journey steps. Supported types: search_entry, goto, read_article, human_browse, scan_products, use_tool, play_video, click_cta, click, hover, human_type, fill, fill_email, fill_otp, select, press, scroll, scroll_to, ai_explore, dismiss_overlays, audit_ads, switch_tab, close_tab, go_back, wait, assert, screenshot.",
            "default": []
          },
          "hirepulseEmailKey": {
            "title": "Optional HirePulse Live Inbox API Key (for fill_email / fill_otp steps)",
            "type": "string",
            "description": "Optional key from https://gethirepulse.xyz/credits when testing signup/OTP verification flows with fill_email & fill_otp."
          },
          "verifyGa4": {
            "title": "Verify GA4, Pixels & Core Web Vitals",
            "type": "boolean",
            "description": "Inspect live network requests for GA4 (/g/collect), GTM, Clarity, Meta, Plausible, and PostHog hits, capturing Measurement IDs, events, TTFB, FCP, and JS console errors.",
            "default": true
          },
          "resourceMode": {
            "title": "Resource & Bandwidth Saver Mode",
            "enum": [
              "ultra_lite",
              "lite",
              "full"
            ],
            "type": "string",
            "description": "Ultra-Lite blocks heavy images, video, audio, and fonts while strictly keeping HTML, CSS, first-party JS, and GA4/GTM analytics scripts active — cutting proxy bandwidth by up to 80%.",
            "default": "ultra_lite"
          },
          "captureScreenshots": {
            "title": "Save Viewport Screenshots to Key-Value Store",
            "type": "boolean",
            "description": "Capture a final PNG screenshot for each browser visit (up to 25 screenshots per run) stored in the default Key-Value Store.",
            "default": false
          },
          "countryCode": {
            "title": "Geo Country Code (ISO-2)",
            "type": "string",
            "description": "2-letter ISO country code (e.g. US, GB, DE, CA, FR, AU, IL) used to match browser locale, timezone, localized Google/Bing domains, and Apify Proxy country when unspecified.",
            "default": "US"
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration (Apify Proxy or Custom URLs)",
            "type": "object",
            "description": "Use built-in Apify Proxy (Datacenter or Residential groups) or supply your own HTTP/SOCKS5 proxy URLs.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}