Screenshot Taker avatar

Screenshot Taker

Try for free

No credit card required

Go to Store
Screenshot Taker

Screenshot Taker

jancurn/screenshot-taker
Try for free

No credit card required

Takes a screenshot of one or more web pages using the Chrome browser. The actor enables the setting of custom viewport size, page load timeout, delay, proxies, and output image format.

You can access the Screenshot Taker programmatically from your own applications by using the Apify API. You can 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.0",
5    "x-build-id": "BgjjMwMZtxEya2e1W"
6  },
7  "servers": [
8    {
9      "url": "https://api.apify.com/v2"
10    }
11  ],
12  "paths": {
13    "/acts/jancurn~screenshot-taker/run-sync-get-dataset-items": {
14      "post": {
15        "operationId": "run-sync-get-dataset-items-jancurn-screenshot-taker",
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/jancurn~screenshot-taker/runs": {
50      "post": {
51        "operationId": "runs-sync-jancurn-screenshot-taker",
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/jancurn~screenshot-taker/run-sync": {
93      "post": {
94        "operationId": "run-sync-jancurn-screenshot-taker",
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          "urls"
135        ],
136        "properties": {
137          "urls": {
138            "title": "Page URLs",
139            "type": "array",
140            "description": "List of URLs of web pages to take the screenshot of.",
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          "pageLoadTimeoutSecs": {
156            "title": "Page load timeout",
157            "minimum": 1,
158            "maximum": 180,
159            "type": "integer",
160            "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.",
161            "default": 60
162          },
163          "pageMaxRetryCount": {
164            "title": "Page retry count",
165            "minimum": 0,
166            "maximum": 10,
167            "type": "integer",
168            "description": "How many times to retry to load the page on error or timeout.",
169            "default": 2
170          },
171          "waitUntil": {
172            "title": "Wait until",
173            "enum": [
174              "load",
175              "domcontentloaded",
176              "networkidle0",
177              "networkidle2"
178            ],
179            "type": "string",
180            "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.",
181            "default": "load"
182          },
183          "viewportWidth": {
184            "title": "Viewport width",
185            "minimum": 1,
186            "maximum": 10000,
187            "type": "integer",
188            "description": "Width of the browser window.",
189            "default": 1200
190          },
191          "viewportHeight": {
192            "title": "Viewport height",
193            "minimum": 1,
194            "maximum": 10000,
195            "type": "integer",
196            "description": "Height of the browser window.",
197            "default": 900
198          },
199          "delaySecs": {
200            "title": "Delay before screenshot",
201            "minimum": 0,
202            "maximum": 120,
203            "type": "integer",
204            "description": "How long time to wait after loading the page before taking the screenshot.",
205            "default": 0
206          },
207          "imageType": {
208            "title": "Image type",
209            "enum": [
210              "jpeg",
211              "png"
212            ],
213            "type": "string",
214            "description": "Format of the image.",
215            "default": "jpeg"
216          },
217          "proxyConfiguration": {
218            "title": "Proxy configuration",
219            "type": "object",
220            "description": "Specifies the type of proxy servers that will be used by the crawler in order to hide its origin."
221          }
222        }
223      },
224      "runsResponseSchema": {
225        "type": "object",
226        "properties": {
227          "data": {
228            "type": "object",
229            "properties": {
230              "id": {
231                "type": "string"
232              },
233              "actId": {
234                "type": "string"
235              },
236              "userId": {
237                "type": "string"
238              },
239              "startedAt": {
240                "type": "string",
241                "format": "date-time",
242                "example": "2025-01-08T00:00:00.000Z"
243              },
244              "finishedAt": {
245                "type": "string",
246                "format": "date-time",
247                "example": "2025-01-08T00:00:00.000Z"
248              },
249              "status": {
250                "type": "string",
251                "example": "READY"
252              },
253              "meta": {
254                "type": "object",
255                "properties": {
256                  "origin": {
257                    "type": "string",
258                    "example": "API"
259                  },
260                  "userAgent": {
261                    "type": "string"
262                  }
263                }
264              },
265              "stats": {
266                "type": "object",
267                "properties": {
268                  "inputBodyLen": {
269                    "type": "integer",
270                    "example": 2000
271                  },
272                  "rebootCount": {
273                    "type": "integer",
274                    "example": 0
275                  },
276                  "restartCount": {
277                    "type": "integer",
278                    "example": 0
279                  },
280                  "resurrectCount": {
281                    "type": "integer",
282                    "example": 0
283                  },
284                  "computeUnits": {
285                    "type": "integer",
286                    "example": 0
287                  }
288                }
289              },
290              "options": {
291                "type": "object",
292                "properties": {
293                  "build": {
294                    "type": "string",
295                    "example": "latest"
296                  },
297                  "timeoutSecs": {
298                    "type": "integer",
299                    "example": 300
300                  },
301                  "memoryMbytes": {
302                    "type": "integer",
303                    "example": 1024
304                  },
305                  "diskMbytes": {
306                    "type": "integer",
307                    "example": 2048
308                  }
309                }
310              },
311              "buildId": {
312                "type": "string"
313              },
314              "defaultKeyValueStoreId": {
315                "type": "string"
316              },
317              "defaultDatasetId": {
318                "type": "string"
319              },
320              "defaultRequestQueueId": {
321                "type": "string"
322              },
323              "buildNumber": {
324                "type": "string",
325                "example": "1.0.0"
326              },
327              "containerUrl": {
328                "type": "string"
329              },
330              "usage": {
331                "type": "object",
332                "properties": {
333                  "ACTOR_COMPUTE_UNITS": {
334                    "type": "integer",
335                    "example": 0
336                  },
337                  "DATASET_READS": {
338                    "type": "integer",
339                    "example": 0
340                  },
341                  "DATASET_WRITES": {
342                    "type": "integer",
343                    "example": 0
344                  },
345                  "KEY_VALUE_STORE_READS": {
346                    "type": "integer",
347                    "example": 0
348                  },
349                  "KEY_VALUE_STORE_WRITES": {
350                    "type": "integer",
351                    "example": 1
352                  },
353                  "KEY_VALUE_STORE_LISTS": {
354                    "type": "integer",
355                    "example": 0
356                  },
357                  "REQUEST_QUEUE_READS": {
358                    "type": "integer",
359                    "example": 0
360                  },
361                  "REQUEST_QUEUE_WRITES": {
362                    "type": "integer",
363                    "example": 0
364                  },
365                  "DATA_TRANSFER_INTERNAL_GBYTES": {
366                    "type": "integer",
367                    "example": 0
368                  },
369                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
370                    "type": "integer",
371                    "example": 0
372                  },
373                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
374                    "type": "integer",
375                    "example": 0
376                  },
377                  "PROXY_SERPS": {
378                    "type": "integer",
379                    "example": 0
380                  }
381                }
382              },
383              "usageTotalUsd": {
384                "type": "number",
385                "example": 0.00005
386              },
387              "usageUsd": {
388                "type": "object",
389                "properties": {
390                  "ACTOR_COMPUTE_UNITS": {
391                    "type": "integer",
392                    "example": 0
393                  },
394                  "DATASET_READS": {
395                    "type": "integer",
396                    "example": 0
397                  },
398                  "DATASET_WRITES": {
399                    "type": "integer",
400                    "example": 0
401                  },
402                  "KEY_VALUE_STORE_READS": {
403                    "type": "integer",
404                    "example": 0
405                  },
406                  "KEY_VALUE_STORE_WRITES": {
407                    "type": "number",
408                    "example": 0.00005
409                  },
410                  "KEY_VALUE_STORE_LISTS": {
411                    "type": "integer",
412                    "example": 0
413                  },
414                  "REQUEST_QUEUE_READS": {
415                    "type": "integer",
416                    "example": 0
417                  },
418                  "REQUEST_QUEUE_WRITES": {
419                    "type": "integer",
420                    "example": 0
421                  },
422                  "DATA_TRANSFER_INTERNAL_GBYTES": {
423                    "type": "integer",
424                    "example": 0
425                  },
426                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
427                    "type": "integer",
428                    "example": 0
429                  },
430                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
431                    "type": "integer",
432                    "example": 0
433                  },
434                  "PROXY_SERPS": {
435                    "type": "integer",
436                    "example": 0
437                  }
438                }
439              }
440            }
441          }
442        }
443      }
444    }
445  }
446}

Screenshot Taker 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 Screenshot Taker 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:

Developer
Maintained by Community

Actor Metrics

  • 30 monthly users

  • 15 bookmarks

  • >99% runs succeeded

  • Created in Jul 2019

  • Modified 4 years ago