{
  "openapi": "3.0.1",
  "info": {
    "title": "Traffic Generator (Youtube, Web, Etsy, Behance and many more!)",
    "description": "Maximize your website's performance and visibility with our Traffic Generator. Drive targeted traffic, simulate page views, and stress-test against potential threats. With the power to generate millions of visits, it's the ultimate solution for boosting your online presence.",
    "version": "0.0",
    "x-build-id": "RTR9mZP57ftZSvqSD"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tempting_finch~traffic-generator/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tempting_finch-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/tempting_finch~traffic-generator/runs": {
      "post": {
        "operationId": "runs-sync-tempting_finch-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/tempting_finch~traffic-generator/run-sync": {
      "post": {
        "operationId": "run-sync-tempting_finch-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",
        "required": [
          "startUrls"
        ],
        "properties": {
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Target URLs to visit. The actor will crawl these pages and follow internal links.",
            "items": {
              "type": "object",
              "properties": {
                "url": {
                  "title": "URL",
                  "type": "string",
                  "description": "A target URL to visit"
                },
                "method": {
                  "title": "Method",
                  "type": "string",
                  "description": "HTTP method (GET or POST)"
                }
              },
              "required": [
                "url"
              ]
            }
          },
          "maxSessions": {
            "title": "Max concurrent sessions",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Number of concurrent browser sessions. Each session simulates one visitor. Higher = more traffic but more resources.",
            "default": 10
          },
          "sessionDurationMin": {
            "title": "Min session duration (seconds)",
            "minimum": 5,
            "type": "integer",
            "description": "Minimum duration of each session in seconds. The actor will stay on the target site for at least this long.",
            "default": 30
          },
          "sessionDurationMax": {
            "title": "Max session duration (seconds)",
            "minimum": 10,
            "type": "integer",
            "description": "Maximum duration of each session in seconds. The actor will stay on the target site for at most this long.",
            "default": 120
          },
          "maxPagesPerSession": {
            "title": "Max pages per session",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum number of pages to visit per session (including internal links).",
            "default": 5
          },
          "crawlInternalLinks": {
            "title": "Crawl internal links",
            "type": "boolean",
            "description": "If enabled, the actor will follow internal links on the target site to simulate natural browsing.",
            "default": true
          },
          "maxRunTimeSecs": {
            "title": "Run timeout (seconds)",
            "minimum": 60,
            "type": "integer",
            "description": "Maximum total duration of the actor run in seconds. The actor will gracefully stop after this time.",
            "default": 3600
          },
          "maxResults": {
            "title": "Max pages visited",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum total number of pages visited across all sessions. Set to 0 for unlimited.",
            "default": 0
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxy configuration. Use Apify Proxy for IP rotation, or provide custom proxy URLs.",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [],
              "apifyProxyCountry": ""
            }
          },
          "proxyRotation": {
            "title": "Proxy rotation",
            "enum": [
              "PER_REQUEST",
              "PER_SESSION",
              "NONE"
            ],
            "type": "string",
            "description": "How often to rotate proxy.",
            "default": "PER_SESSION"
          },
          "useFingerprinting": {
            "title": "Use fingerprinting",
            "type": "boolean",
            "description": "Enable browser fingerprinting to vary device/OS/UA fingerprints and mitigate WebRTC leaks. Reduces detection.",
            "default": true
          },
          "humanLikeBehavior": {
            "title": "Human-like behavior",
            "type": "boolean",
            "description": "Enable human-like behavior simulation: random scrolling, mouse movements, clicks, and delays.",
            "default": true
          },
          "youTubeAutoPlay": {
            "title": "YouTube auto-play",
            "type": "boolean",
            "description": "For YouTube videos: auto-play the video briefly (5-10s) to register a view count.",
            "default": true
          },
          "blockResourceTypes": {
            "title": "Block resource types",
            "type": "array",
            "description": "Resource types to block for faster page loads and lower compute usage. Blocking images/fonts may reduce traffic realism.",
            "items": {
              "type": "string"
            },
            "default": [
              "font"
            ]
          },
          "blockUrls": {
            "title": "Block URL patterns",
            "type": "array",
            "description": "Glob patterns for URLs to block (e.g. **/ads/**, **/analytics/**). Blocks unwanted resources.",
            "items": {
              "type": "string"
            }
          },
          "viewportWidth": {
            "title": "Viewport width (0 = random)",
            "minimum": 0,
            "type": "integer",
            "description": "Browser viewport width in pixels. Set to 0 for a random value per session.",
            "default": 0
          },
          "viewportHeight": {
            "title": "Viewport height (0 = random)",
            "minimum": 0,
            "type": "integer",
            "description": "Browser viewport height in pixels. Set to 0 for a random value per session.",
            "default": 0
          },
          "gotoTimeoutSecs": {
            "title": "Navigation timeout (seconds)",
            "minimum": 10,
            "maximum": 300,
            "type": "integer",
            "description": "Maximum time to wait for a page to load. Increase for slow/heavy pages like Steam, decrease for fast pages.",
            "default": 120
          },
          "waitUntil": {
            "title": "Wait until",
            "enum": [
              "load",
              "domcontentloaded",
              "networkidle",
              "commit"
            ],
            "type": "string",
            "description": "When to consider navigation finished. 'load' waits for all resources (slower, more realistic). 'domcontentloaded' is faster (good for stress testing).",
            "default": "domcontentloaded"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}