Screenshot Taker avatar
Screenshot Taker
Try for free

No credit card required

View all Actors
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.

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

Results

The screenshots are stored in the the default key-value store associated with the actor run. For each web page on input, the dataset contains a record such as:

1{
2  "request": {
3    "url": "https://www.example.com",
4    "method": "GET",
5    "payload": null,
6    "userData": {}
7  },
8  "response": {
9    "status": 200,
10    "headers": {
11      "status": "200",
12      "content-encoding": "gzip",
13      "cache-control": "max-age=604800",
14      "content-type": "text/html; charset=UTF-8",
15      "content-length": "606"
16    }
17  },
18  "finishedAt": "2019-07-14T16:16:56.230Z",
19  "screenshotUrl": "https://api.apify.com/v2/key-value-stores/x2xiRLsycdTpFQFSo/records/screenshot-2c730012.jpeg"
20}

If an error occurs during loading or processing of a web page, the page is retried (up to pageMaxRetryCount times - see input schema). If the error persists, the resulting dataset will contain a record such as the following:

1{
2  "request": {
3    "url": "https://non-existing-page.net",
4    "method": "GET",
5    "payload": null,
6    "userData": {}
7  },
8  "response": null,
9  "finishedAt": "2019-07-14T16:24:41.257Z",
10  "errorMessages": [
11    "Error: net::ERR_NAME_NOT_RESOLVED at https://non-existing-page.net\n    at navigate ...",
12    "Error: net::ERR_NAME_NOT_RESOLVED at https://non-existing-page.net\n    at navigate ...",
13    "Error: net::ERR_NAME_NOT_RESOLVED at https://non-existing-page.net\n    at navigate ..."
14  ]
15}
Developer
Maintained by Community
Actor metrics
  • 18 monthly users
  • 100.0% runs succeeded
  • 51 days response time
  • Created in Jul 2019
  • Modified almost 3 years ago
Categories