1{
2 "title": "Schema for the actor",
3 "type": "object",
4 "schemaVersion": 1,
5 "properties": {
6 "urls": {
7 "title": "Page URLs",
8 "type": "array",
9 "description": "List of URLs of web pages to take the screenshot of.",
10 "prefill": [
11 { "url": "https://www.example.com" },
12 { "url": "https://sdk.apify.com" }
13 ],
14 "editor": "requestListSources"
15 },
16 "pageLoadTimeoutSecs": {
17 "title": "Page load timeout",
18 "type": "integer",
19 "description": "Timeout for the web page load, in seconds. If the web page does not load in this time frame, it is considered to have failed and will be retried, similarly as with other page load errors.",
20 "minimum": 1,
21 "maximum": 180,
22 "default": 60,
23 "unit": "seconds"
24 },
25 "pageMaxRetryCount": {
26 "title": "Page retry count",
27 "type": "integer",
28 "description": "How many times to retry to load the page on error or timeout.",
29 "minimum": 0,
30 "maximum": 10,
31 "default": 2
32 },
33 "waitUntil": {
34 "title": "Wait until",
35 "type": "string",
36 "description": "Indicates when to consider the navigation to the page as succeeded. For more details, see <code>waitUntil</code> parameter of <a href='https://github.com/GoogleChrome/puppeteer/blob/master/docs/api.md#pagegotourl-options' target='_blank' rel='noopener'>Page.goto()</a> function in Puppeteer documention.",
37 "default": "load",
38 "enum": [
39 "load",
40 "domcontentloaded",
41 "networkidle0",
42 "networkidle2"
43 ],
44 "enumTitles": [
45 "The load event is fired (load)",
46 "The DOMContentLoaded event is fired (domcontentloaded)",
47 "There are no more than 0 network connections for at least 500 ms (networkidle0)",
48 "There are no more than 2 network connections for at least 500 ms (networkidle2)"
49 ],
50 "editor": "select"
51 },
52 "viewportWidth": {
53 "title": "Viewport width",
54 "type": "integer",
55 "description": "Width of the browser window.",
56 "default": 1200,
57 "minimum": 1,
58 "maximum": 10000,
59 "unit": "pixels"
60 },
61 "viewportHeight": {
62 "title": "Viewport height",
63 "type": "integer",
64 "description": "Height of the browser window.",
65 "default": 900,
66 "minimum": 1,
67 "maximum": 10000,
68 "unit": "pixels"
69 },
70 "delaySecs": {
71 "title": "Delay before screenshot",
72 "type": "integer",
73 "description": "How long time to wait after loading the page before taking the screenshot.",
74 "default": 0,
75 "minimum": 0,
76 "maximum": 120,
77 "unit": "seconds"
78 },
79 "imageType": {
80 "title": "Image type",
81 "type": "string",
82 "description": "Format of the image.",
83 "default": "jpeg",
84 "enum": [
85 "jpeg",
86 "png"
87 ],
88 "enumTitles": [
89 "JPEG",
90 "PNG"
91 ],
92 "editor": "select"
93 },
94 "proxyConfiguration": {
95 "title": "Proxy configuration",
96 "type": "object",
97 "description": "Specifies the type of proxy servers that will be used by the crawler in order to hide its origin.",
98 "editor": "proxy"
99 }
100 },
101 "required": [
102 "urls"
103 ]
104}