Traffic Generator pro avatar

Traffic Generator pro

Try for free

1 day trial then $15.00/month - No credit card required now

Go to Store
Traffic Generator pro

Traffic Generator pro

scrapingxpert/traffic-generator-pro
Try for free

1 day trial then $15.00/month - No credit card required now

The Traffic Generator simulates realistic web traffic using Playwright. It generates views, simulates user behavior, and tests website performance, ideal for scalability testing, user behavior analysis, and traffic generation.

Developer
Maintained by Community

Actor Metrics

  • 24 monthly users

  • 5.0 / 5 (1)

  • 1 bookmark

  • 85% runs succeeded

  • Created in Feb 2025

  • Modified 14 days ago

You can access the Traffic Generator pro programmatically from your own applications by using the Apify API. You can also choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in Integrations settings in Apify Console.

1{
2  "openapi": "3.0.1",
3  "info": {
4    "version": "0.5",
5    "x-build-id": "UK64K67zQz8QvzcTe"
6  },
7  "servers": [
8    {
9      "url": "https://api.apify.com/v2"
10    }
11  ],
12  "paths": {
13    "/acts/scrapingxpert~traffic-generator-pro/run-sync-get-dataset-items": {
14      "post": {
15        "operationId": "run-sync-get-dataset-items-scrapingxpert-traffic-generator-pro",
16        "x-openai-isConsequential": false,
17        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
18        "tags": [
19          "Run Actor"
20        ],
21        "requestBody": {
22          "required": true,
23          "content": {
24            "application/json": {
25              "schema": {
26                "$ref": "#/components/schemas/inputSchema"
27              }
28            }
29          }
30        },
31        "parameters": [
32          {
33            "name": "token",
34            "in": "query",
35            "required": true,
36            "schema": {
37              "type": "string"
38            },
39            "description": "Enter your Apify token here"
40          }
41        ],
42        "responses": {
43          "200": {
44            "description": "OK"
45          }
46        }
47      }
48    },
49    "/acts/scrapingxpert~traffic-generator-pro/runs": {
50      "post": {
51        "operationId": "runs-sync-scrapingxpert-traffic-generator-pro",
52        "x-openai-isConsequential": false,
53        "summary": "Executes an Actor and returns information about the initiated run in response.",
54        "tags": [
55          "Run Actor"
56        ],
57        "requestBody": {
58          "required": true,
59          "content": {
60            "application/json": {
61              "schema": {
62                "$ref": "#/components/schemas/inputSchema"
63              }
64            }
65          }
66        },
67        "parameters": [
68          {
69            "name": "token",
70            "in": "query",
71            "required": true,
72            "schema": {
73              "type": "string"
74            },
75            "description": "Enter your Apify token here"
76          }
77        ],
78        "responses": {
79          "200": {
80            "description": "OK",
81            "content": {
82              "application/json": {
83                "schema": {
84                  "$ref": "#/components/schemas/runsResponseSchema"
85                }
86              }
87            }
88          }
89        }
90      }
91    },
92    "/acts/scrapingxpert~traffic-generator-pro/run-sync": {
93      "post": {
94        "operationId": "run-sync-scrapingxpert-traffic-generator-pro",
95        "x-openai-isConsequential": false,
96        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
97        "tags": [
98          "Run Actor"
99        ],
100        "requestBody": {
101          "required": true,
102          "content": {
103            "application/json": {
104              "schema": {
105                "$ref": "#/components/schemas/inputSchema"
106              }
107            }
108          }
109        },
110        "parameters": [
111          {
112            "name": "token",
113            "in": "query",
114            "required": true,
115            "schema": {
116              "type": "string"
117            },
118            "description": "Enter your Apify token here"
119          }
120        ],
121        "responses": {
122          "200": {
123            "description": "OK"
124          }
125        }
126      }
127    }
128  },
129  "components": {
130    "schemas": {
131      "inputSchema": {
132        "type": "object",
133        "required": [
134          "start_urls"
135        ],
136        "properties": {
137          "start_urls": {
138            "title": "Start URLs",
139            "type": "array",
140            "description": "URLs to start with",
141            "items": {
142              "type": "object",
143              "required": [
144                "url"
145              ],
146              "properties": {
147                "url": {
148                  "type": "string",
149                  "title": "URL of a web page",
150                  "format": "uri"
151                }
152              }
153            }
154          },
155          "youtubeMode": {
156            "title": "YouTube Mode",
157            "type": "boolean",
158            "description": "Enable YouTube-specific optimizations",
159            "default": false
160          },
161          "viewTimeMin": {
162            "title": "Minimum View Time (seconds)",
163            "minimum": 5,
164            "type": "integer",
165            "description": "Minimum time to stay on each page",
166            "default": 10
167          },
168          "viewTimeMax": {
169            "title": "Maximum View Time (seconds)",
170            "minimum": 10,
171            "type": "integer",
172            "description": "Maximum time to stay on each page",
173            "default": 30
174          },
175          "delayMin": {
176            "title": "Minimum Delay (seconds)",
177            "minimum": 1,
178            "type": "integer",
179            "description": "Minimum delay between visits",
180            "default": 5
181          },
182          "delayMax": {
183            "title": "Maximum Delay (seconds)",
184            "minimum": 5,
185            "type": "integer",
186            "description": "Maximum delay between visits",
187            "default": 10
188          },
189          "maxRetries": {
190            "title": "Maximum Retries",
191            "minimum": 0,
192            "type": "integer",
193            "description": "Maximum number of retries per URL",
194            "default": 1
195          },
196          "simulateBehavior": {
197            "title": "Simulate User Behavior",
198            "type": "boolean",
199            "description": "Simulate human-like interactions with the page",
200            "default": true
201          },
202          "endAfterSeconds": {
203            "title": "Duration (seconds)",
204            "minimum": 60,
205            "type": "integer",
206            "description": "Stop traffic generation after this many seconds",
207            "default": 3600
208          },
209          "logLevel": {
210            "title": "Log Level",
211            "enum": [
212              "DEBUG",
213              "INFO",
214              "WARNING",
215              "ERROR"
216            ],
217            "type": "string",
218            "description": "Level of logging detail",
219            "default": "INFO"
220          },
221          "useProxy": {
222            "title": "Use Proxy",
223            "type": "boolean",
224            "description": "Enable this to use a proxy for traffic generation.",
225            "default": false
226          },
227          "proxyConfig": {
228            "title": "Proxy Configuration",
229            "type": "object",
230            "description": "Configure the proxy settings.",
231            "default": {
232              "useApifyProxy": true
233            }
234          }
235        }
236      },
237      "runsResponseSchema": {
238        "type": "object",
239        "properties": {
240          "data": {
241            "type": "object",
242            "properties": {
243              "id": {
244                "type": "string"
245              },
246              "actId": {
247                "type": "string"
248              },
249              "userId": {
250                "type": "string"
251              },
252              "startedAt": {
253                "type": "string",
254                "format": "date-time",
255                "example": "2025-01-08T00:00:00.000Z"
256              },
257              "finishedAt": {
258                "type": "string",
259                "format": "date-time",
260                "example": "2025-01-08T00:00:00.000Z"
261              },
262              "status": {
263                "type": "string",
264                "example": "READY"
265              },
266              "meta": {
267                "type": "object",
268                "properties": {
269                  "origin": {
270                    "type": "string",
271                    "example": "API"
272                  },
273                  "userAgent": {
274                    "type": "string"
275                  }
276                }
277              },
278              "stats": {
279                "type": "object",
280                "properties": {
281                  "inputBodyLen": {
282                    "type": "integer",
283                    "example": 2000
284                  },
285                  "rebootCount": {
286                    "type": "integer",
287                    "example": 0
288                  },
289                  "restartCount": {
290                    "type": "integer",
291                    "example": 0
292                  },
293                  "resurrectCount": {
294                    "type": "integer",
295                    "example": 0
296                  },
297                  "computeUnits": {
298                    "type": "integer",
299                    "example": 0
300                  }
301                }
302              },
303              "options": {
304                "type": "object",
305                "properties": {
306                  "build": {
307                    "type": "string",
308                    "example": "latest"
309                  },
310                  "timeoutSecs": {
311                    "type": "integer",
312                    "example": 300
313                  },
314                  "memoryMbytes": {
315                    "type": "integer",
316                    "example": 1024
317                  },
318                  "diskMbytes": {
319                    "type": "integer",
320                    "example": 2048
321                  }
322                }
323              },
324              "buildId": {
325                "type": "string"
326              },
327              "defaultKeyValueStoreId": {
328                "type": "string"
329              },
330              "defaultDatasetId": {
331                "type": "string"
332              },
333              "defaultRequestQueueId": {
334                "type": "string"
335              },
336              "buildNumber": {
337                "type": "string",
338                "example": "1.0.0"
339              },
340              "containerUrl": {
341                "type": "string"
342              },
343              "usage": {
344                "type": "object",
345                "properties": {
346                  "ACTOR_COMPUTE_UNITS": {
347                    "type": "integer",
348                    "example": 0
349                  },
350                  "DATASET_READS": {
351                    "type": "integer",
352                    "example": 0
353                  },
354                  "DATASET_WRITES": {
355                    "type": "integer",
356                    "example": 0
357                  },
358                  "KEY_VALUE_STORE_READS": {
359                    "type": "integer",
360                    "example": 0
361                  },
362                  "KEY_VALUE_STORE_WRITES": {
363                    "type": "integer",
364                    "example": 1
365                  },
366                  "KEY_VALUE_STORE_LISTS": {
367                    "type": "integer",
368                    "example": 0
369                  },
370                  "REQUEST_QUEUE_READS": {
371                    "type": "integer",
372                    "example": 0
373                  },
374                  "REQUEST_QUEUE_WRITES": {
375                    "type": "integer",
376                    "example": 0
377                  },
378                  "DATA_TRANSFER_INTERNAL_GBYTES": {
379                    "type": "integer",
380                    "example": 0
381                  },
382                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
383                    "type": "integer",
384                    "example": 0
385                  },
386                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
387                    "type": "integer",
388                    "example": 0
389                  },
390                  "PROXY_SERPS": {
391                    "type": "integer",
392                    "example": 0
393                  }
394                }
395              },
396              "usageTotalUsd": {
397                "type": "number",
398                "example": 0.00005
399              },
400              "usageUsd": {
401                "type": "object",
402                "properties": {
403                  "ACTOR_COMPUTE_UNITS": {
404                    "type": "integer",
405                    "example": 0
406                  },
407                  "DATASET_READS": {
408                    "type": "integer",
409                    "example": 0
410                  },
411                  "DATASET_WRITES": {
412                    "type": "integer",
413                    "example": 0
414                  },
415                  "KEY_VALUE_STORE_READS": {
416                    "type": "integer",
417                    "example": 0
418                  },
419                  "KEY_VALUE_STORE_WRITES": {
420                    "type": "number",
421                    "example": 0.00005
422                  },
423                  "KEY_VALUE_STORE_LISTS": {
424                    "type": "integer",
425                    "example": 0
426                  },
427                  "REQUEST_QUEUE_READS": {
428                    "type": "integer",
429                    "example": 0
430                  },
431                  "REQUEST_QUEUE_WRITES": {
432                    "type": "integer",
433                    "example": 0
434                  },
435                  "DATA_TRANSFER_INTERNAL_GBYTES": {
436                    "type": "integer",
437                    "example": 0
438                  },
439                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
440                    "type": "integer",
441                    "example": 0
442                  },
443                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
444                    "type": "integer",
445                    "example": 0
446                  },
447                  "PROXY_SERPS": {
448                    "type": "integer",
449                    "example": 0
450                  }
451                }
452              }
453            }
454          }
455        }
456      }
457    }
458  }
459}

Traffic Generator pro OpenAPI definition

OpenAPI is a standard for designing and describing RESTful APIs, allowing developers to define API structure, endpoints, and data formats in a machine-readable way. It simplifies API development, integration, and documentation.

OpenAPI is effective when used with AI agents and GPTs by standardizing how these systems interact with various APIs, for reliable integrations and efficient communication.

By defining machine-readable API specifications, OpenAPI allows AI models like GPTs to understand and use varied data sources, improving accuracy. This accelerates development, reduces errors, and provides context-aware responses, making OpenAPI a core component for AI applications.

You can download the OpenAPI definitions for Traffic Generator pro from the options below:

If you’d like to learn more about how OpenAPI powers GPTs, read our blog post.

You can also check out our other API clients: