Web Snapshot
Web Snapshot · GPT-Aktionen
Screenshot Taker
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.
POST /acts/jancurn~screenshot-taker/run-sync-get-dataset-items?clean=true&format=jsonTakes 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.
Ursprüngliches API-Schema
{
"openapi": "3.0.1",
"info": {
"title": "Screenshot Taker",
"description": "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.",
"version": "v1"
},
"servers": [
{
"url": "https://api.apify.com/v2"
}
],
"paths": {
"/acts/jancurn~screenshot-taker/run-sync-get-dataset-items?clean=true&format=json": {
"post": {
"operationId": "jancurn_screenshot-taker",
"x-openai-isConsequential": false,
"summary": "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.",
"requestBody": {
"required": true,
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/inputSchema"
}
}
}
},
"responses": {
"200": {
"description": "OK"
}
}
}
}
},
"components": {
"schemas": {
"inputSchema": {
"type": "object",
"required": [
"urls"
],
"properties": {
"urls": {
"title": "Page URLs",
"type": "array",
"description": "List of URLs of web pages to take the screenshot of.",
"items": {
"type": "object",
"required": [
"url"
],
"properties": {
"url": {
"type": "string",
"title": "URL of a web page",
"format": "uri"
}
}
}
},
"pageLoadTimeoutSecs": {
"title": "Page load timeout",
"minimum": 1,
"maximum": 180,
"type": "integer",
"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.",
"default": 60
},
"pageMaxRetryCount": {
"title": "Page retry count",
"minimum": 0,
"maximum": 10,
"type": "integer",
"description": "How many times to retry to load the page on error or timeout.",
"default": 2
},
"waitUntil": {
"title": "Wait until",
"enum": [
"load",
"domcontentloaded",
"networkidle0",
"networkidle2"
],
"type": "string",
"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.",
"default": "load"
},
"viewportWidth": {
"title": "Viewport width",
"minimum": 1,
"maximum": 10000,
"type": "integer",
"description": "Width of the browser window.",
"default": 1200
},
"viewportHeight": {
"title": "Viewport height",
"minimum": 1,
"maximum": 10000,
"type": "integer",
"description": "Height of the browser window.",
"default": 900
},
"delaySecs": {
"title": "Delay before screenshot",
"minimum": 0,
"maximum": 120,
"type": "integer",
"description": "How long time to wait after loading the page before taking the screenshot.",
"default": 0
},
"imageType": {
"title": "Image type",
"enum": [
"jpeg",
"png"
],
"type": "string",
"description": "Format of the image.",
"default": "jpeg"
},
"proxyConfiguration": {
"title": "Proxy configuration",
"type": "object",
"description": "Specifies the type of proxy servers that will be used by the crawler in order to hide its origin."
}
}
}
}
}
}