GetScreenshot
Screenshot web pages, render HTML and diff captures, with images sized for vision models.
Instalar
Instalación con un clic
Agrega esto a tu archivo `claude_desktop_config.json`:
{
"mcpServers": {
"mcp": {
"command": "npx",
"args": [
"getscreenshot-mcp"
]
}
}
}Paquetes ejecutables
0.1.0stdioPuntos de conexión remotos
https://mcp.getscreenshotapi.com/mcpstreamable-httpQué puede hacer
Inventario de herramientas
Herramientas (5)
🟢capture_screenshot(url, full_page, element, device, width, ...)
Capture a public web page as an image you can see. Renders the URL in a hosted headless Chromium and returns a link to the full-resolution image plus inline JPEG images sized for vision models. Use it to look at a live page, verify a deployed change, check a design on a phone preset, or read content that needs JavaScript to render. By default it captures the 1280x800 viewport (one image, about 1,300 image tokens). Pass `element` to capture one part of the page, or `full_page: true` for the whole page; tall captures come back as up to `max_slices` slices from the top. Costs 1 screenshot of the monthly quota per call, failed captures included. Takes about 9-25 seconds. Limits: the page must be reachable from the public internet (no localhost or private networks: use render_html for local HTML). One shot per call, no login flows or multi-step interaction. Sites with aggressive bot protection may refuse headless browsers.
Esquema de entrada
{
"type": "object",
"properties": {
"url": {
"type": "string",
"minLength": 1,
"maxLength": 8192,
"description": "Absolute http(s) URL of the page, reachable from the public internet. localhost and private-network addresses cannot be captured; use render_html for local HTML."
},
"full_page": {
"default": false,
"description": "Capture the whole scrollable page instead of just the viewport. Tall pages are returned as several image slices and cost more tokens.",
"type": "boolean"
},
"element": {
"description": "CSS selector of one element to capture, for example \"#pricing\" or \"main .hero\". Cheapest way to look at one part of a page. A selector that matches nothing makes the capture fail (and still uses quota).",
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"device": {
"description": "Device preset: sets the viewport and, for phones, a mobile user agent. Overrides width and height. iphone* and pixel* are phones, ipad* are tablets, the rest are fixed desktop sizes.",
"type": "string",
"enum": [
"iphone5",
"iphone678",
"iphone678_plus",
"iphonex",
"iphone12",
"pixel2",
"pixel2_xl",
"ipad",
"ipadpro",
"hvga",
"wvga",
"dvga",
"wxga_v",
"xga",
"wxga_s",
"wxga_l",
"sxga",
"wsxga_plus"
]
},
"width": {
"description": "Viewport width in CSS pixels. API default 1280. Ignored when device is set.",
"type": "integer",
"minimum": 1,
"maximum": 10000
},
"height": {
"description": "Viewport height in CSS pixels. API default 800. Ignored when device is set.",
"type": "integer",
"minimum": 1,
"maximum": 10000
},
"scale": {
"description": "Device pixel ratio of the stored image: 1 (default), 2 (retina) or 3. Affects the file at screenshot_url; inline images are downscaled either way.",
"type": "integer",
"minimum": 1,
"maximum": 3
},
"format": {
"default": "png",
"description": "Format of the stored file at screenshot_url. Inline images are always JPEG.",
"type": "string",
"enum": [
"png",
"jpeg"
]
},
"wait_until": {
"description": "When the page counts as loaded. API default \"networkidle2\". Use \"domcontentloaded\" for heavy or slow sites (fastest, most reliable); \"networkidle0\" waits for all network activity to stop.",
"type": "string",
"enum": [
"load",
"domcontentloaded",
"networkidle0",
"networkidle2"
]
},
"wait_ms": {
"description": "Extra wait in milliseconds after load, before the capture. API default 2000. Raise it for late animations or client-side rendering.",
"type": "integer",
"minimum": 0,
"maximum": 20000
},
"hide_selectors": {
"description": "CSS selector(s) to hide (display:none) before capture, comma-separated, for example \".newsletter-popup, #ad-banner\".",
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"hide_cookie_banners": {
"default": true,
"description": "Hide common cookie-consent banners. Set false to keep them in the picture.",
"type": "boolean"
},
"hide_chat_widgets": {
"default": false,
"description": "Hide common chat widgets (Intercom, Drift and similar).",
"type": "boolean"
},
"click": {
"description": "CSS selector of an element to click once before the capture, for example to open a menu or dismiss a dialog. A selector that matches nothing makes the capture fail.",
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"custom_css": {
"description": "CSS injected into the page before capture.",
"type": "string",
"minLength": 1,
"maxLength": 20000
},
"custom_js": {
"description": "JavaScript run in the page before capture.",
"type": "string",
"minLength": 1,
"maxLength": 20000
},
"highlight": {
"description": "Keyword(s) to highlight on the page.",
"type": "string",
"minLength": 1,
"maxLength": 500
},
"cookie": {
"description": "One cookie to set for the target host before loading, for example a feature flag or locale. Do not pass credentials or session tokens.",
"type": "object",
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 256,
"pattern": "^[^,;=\\s]+$"
},
"value": {
"type": "string",
"maxLength": 4096,
"pattern": "^[^,;\\s]*$"
}
},
"required": [
"name",
"value"
],
"additionalProperties": false
},
"lang": {
"description": "Browser language / Accept-Language, for example \"de-DE\". API default \"en-US\".",
"type": "string",
"minLength": 2,
"maxLength": 35
},
"transparent_background": {
"default": false,
"description": "Keep the background transparent where the page sets none (PNG only). Inline images are flattened onto white.",
"type": "boolean"
},
"full_page_strategy": {
"description": "Full-page capture strategy 0-3 (default 0). Try another value if a full_page capture renders badly (missing sections, repeated headers).",
"type": "integer",
"minimum": 0,
"maximum": 3
},
"detail": {
"default": "standard",
"description": "Size of the inline images. \"standard\": at most 1280 px wide, about 1,568 tokens per image. \"high\": at most 1920 px wide, about 4,784 tokens per image; use it only to read small text.",
"type": "string",
"enum": [
"standard",
"high"
]
},
"max_slices": {
"default": 4,
"description": "Maximum number of inline images. A tall capture is cut into slices from the top; slices beyond this are left out and reported as truncated. Slices are also left out if the inline images would exceed about 1.5 MB in total (4 MB at high detail).",
"type": "integer",
"minimum": 1,
"maximum": 10
},
"return": {
"default": "image_and_url",
"description": "\"image_and_url\" attaches the images. \"url_only\" returns just the link and sizes, for when you need the file but do not need to look at it (uses no image tokens).",
"type": "string",
"enum": [
"image_and_url",
"url_only"
]
}
},
"required": [
"url"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}Esquema de salida
{
"type": "object",
"properties": {
"screenshot_url": {
"type": "string",
"description": "Full-resolution image. Public to anyone who has the link."
},
"origin_url": {
"type": "string"
},
"page_status": {
"description": "HTTP status the page answered with. 400 or above usually means an error page was captured.",
"type": [
"number",
"null"
]
},
"captured_at": {
"description": "ISO 8601 UTC time of the capture.",
"type": [
"string",
"null"
]
},
"format": {
"type": "string",
"enum": [
"png",
"jpeg"
],
"description": "Format of the stored file at screenshot_url."
},
"original": {
"anyOf": [
{
"type": "object",
"properties": {
"width": {
"type": "number"
},
"height": {
"type": "number"
}
},
"required": [
"width",
"height"
],
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "Pixel size of the stored image. Null if it could not be read."
},
"images": {
"type": "array",
"items": {
"type": "object",
"properties": {
"index": {
"type": "number",
"description": "0-based position of the slice, top to bottom."
},
"y": {
"type": "number",
"description": "Top offset of this image within the downscaled capture, in the same pixels as width/height."
},
"width": {
"type": "number"
},
"height": {
"type": "number"
},
"estimated_tokens": {
"type": "number",
"description": "Approximate vision tokens: ceil(width/28) * ceil(height/28)."
}
},
"required": [
"index",
"y",
"width",
"height",
"estimated_tokens"
],
"additionalProperties": false
},
"description": "One entry per inline image, in the same order as the image blocks."
},
"total_slices": {
"type": "number",
"description": "How many slices the whole image needs at this detail level, whether or not they are attached. With return: \"url_only\" this is how many a normal call would produce."
},
"truncated": {
"type": "boolean",
"description": "True when images were requested and some slices were left out, because of max_slices or the inline size limit. Always false with return: \"url_only\", where no image is attached by request."
},
"estimated_image_tokens": {
"type": "number",
"description": "Approximate total vision tokens of the inline images."
},
"expires_in_days": {
"type": "number",
"description": "Stored files are deleted after this many days."
},
"warnings": {
"type": "array",
"items": {
"type": "string"
},
"description": "Things worth knowing about this result, for example an error status from the page."
}
},
"required": [
"screenshot_url",
"origin_url",
"page_status",
"captured_at",
"format",
"original",
"images",
"total_slices",
"truncated",
"estimated_image_tokens",
"expires_in_days",
"warnings"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢render_html(html, full_page, element, device, width, ...)
Render an HTML string in a real browser and return a screenshot you can see. Use it to check a component, email or page you just wrote without deploying it, and to look at local work, since the capture service cannot reach localhost. The HTML is hosted at an unguessable temporary URL, captured like any page, deleted as soon as the capture returns, and the result has the same shape as capture_screenshot. Assets must be inlined or use absolute public URLs: relative paths and localhost URLs inside the HTML will not load unless the HTML sets <base href> to a public origin. The page runs in a sandbox without cookies or localStorage, so code that depends on them may render blank. Cookie-banner hiding is off for this tool, so the page renders exactly as written. Costs 1 screenshot of the monthly quota per call. Takes about 9-25 seconds. Do not put secrets in the HTML: the resulting image link is public to anyone who has it.
Esquema de entrada
{
"type": "object",
"properties": {
"html": {
"type": "string",
"minLength": 1,
"description": "The HTML document or fragment to render, at most 2 MB. Inline the CSS and JS it needs, or load them from absolute public URLs. Relative asset URLs only resolve if the HTML sets <base href>."
},
"full_page": {
"default": false,
"description": "Capture the whole scrollable page instead of just the viewport. Tall pages are returned as several image slices and cost more tokens.",
"type": "boolean"
},
"element": {
"description": "CSS selector of one element to capture, for example \"#pricing\" or \"main .hero\". Cheapest way to look at one part of a page. A selector that matches nothing makes the capture fail (and still uses quota).",
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"device": {
"description": "Device preset: sets the viewport and, for phones, a mobile user agent. Overrides width and height. iphone* and pixel* are phones, ipad* are tablets, the rest are fixed desktop sizes.",
"type": "string",
"enum": [
"iphone5",
"iphone678",
"iphone678_plus",
"iphonex",
"iphone12",
"pixel2",
"pixel2_xl",
"ipad",
"ipadpro",
"hvga",
"wvga",
"dvga",
"wxga_v",
"xga",
"wxga_s",
"wxga_l",
"sxga",
"wsxga_plus"
]
},
"width": {
"description": "Viewport width in CSS pixels. API default 1280. Ignored when device is set.",
"type": "integer",
"minimum": 1,
"maximum": 10000
},
"height": {
"description": "Viewport height in CSS pixels. API default 800. Ignored when device is set.",
"type": "integer",
"minimum": 1,
"maximum": 10000
},
"scale": {
"description": "Device pixel ratio of the stored image: 1 (default), 2 (retina) or 3. Affects the file at screenshot_url; inline images are downscaled either way.",
"type": "integer",
"minimum": 1,
"maximum": 3
},
"wait_ms": {
"description": "Extra wait in milliseconds after load, before the capture. API default 2000. Raise it for late animations or client-side rendering.",
"type": "integer",
"minimum": 0,
"maximum": 20000
},
"detail": {
"default": "standard",
"description": "Size of the inline images. \"standard\": at most 1280 px wide, about 1,568 tokens per image. \"high\": at most 1920 px wide, about 4,784 tokens per image; use it only to read small text.",
"type": "string",
"enum": [
"standard",
"high"
]
},
"max_slices": {
"default": 4,
"description": "Maximum number of inline images. A tall capture is cut into slices from the top; slices beyond this are left out and reported as truncated. Slices are also left out if the inline images would exceed about 1.5 MB in total (4 MB at high detail).",
"type": "integer",
"minimum": 1,
"maximum": 10
},
"return": {
"default": "image_and_url",
"description": "\"image_and_url\" attaches the images. \"url_only\" returns just the link and sizes, for when you need the file but do not need to look at it (uses no image tokens).",
"type": "string",
"enum": [
"image_and_url",
"url_only"
]
}
},
"required": [
"html"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}Esquema de salida
{
"type": "object",
"properties": {
"screenshot_url": {
"type": "string",
"description": "Full-resolution image. Public to anyone who has the link."
},
"origin_url": {
"type": "string"
},
"page_status": {
"description": "HTTP status the page answered with. 400 or above usually means an error page was captured.",
"type": [
"number",
"null"
]
},
"captured_at": {
"description": "ISO 8601 UTC time of the capture.",
"type": [
"string",
"null"
]
},
"format": {
"type": "string",
"enum": [
"png",
"jpeg"
],
"description": "Format of the stored file at screenshot_url."
},
"original": {
"anyOf": [
{
"type": "object",
"properties": {
"width": {
"type": "number"
},
"height": {
"type": "number"
}
},
"required": [
"width",
"height"
],
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "Pixel size of the stored image. Null if it could not be read."
},
"images": {
"type": "array",
"items": {
"type": "object",
"properties": {
"index": {
"type": "number",
"description": "0-based position of the slice, top to bottom."
},
"y": {
"type": "number",
"description": "Top offset of this image within the downscaled capture, in the same pixels as width/height."
},
"width": {
"type": "number"
},
"height": {
"type": "number"
},
"estimated_tokens": {
"type": "number",
"description": "Approximate vision tokens: ceil(width/28) * ceil(height/28)."
}
},
"required": [
"index",
"y",
"width",
"height",
"estimated_tokens"
],
"additionalProperties": false
},
"description": "One entry per inline image, in the same order as the image blocks."
},
"total_slices": {
"type": "number",
"description": "How many slices the whole image needs at this detail level, whether or not they are attached. With return: \"url_only\" this is how many a normal call would produce."
},
"truncated": {
"type": "boolean",
"description": "True when images were requested and some slices were left out, because of max_slices or the inline size limit. Always false with return: \"url_only\", where no image is attached by request."
},
"estimated_image_tokens": {
"type": "number",
"description": "Approximate total vision tokens of the inline images."
},
"expires_in_days": {
"type": "number",
"description": "Stored files are deleted after this many days."
},
"warnings": {
"type": "array",
"items": {
"type": "string"
},
"description": "Things worth knowing about this result, for example an error status from the page."
}
},
"required": [
"screenshot_url",
"origin_url",
"page_status",
"captured_at",
"format",
"original",
"images",
"total_slices",
"truncated",
"estimated_image_tokens",
"expires_in_days",
"warnings"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢compare_screenshots(before, after, full_page, width, height, ...)
Visual diff of two pages or two existing screenshots. Use it to verify a change did what you intended and nothing else moved: before/after a deploy, staging vs production, or one page at two points in time. Each side is either `{url}` (captured now) or `{screenshot_url}` (an earlier GetScreenshot result, reused at no cost; it is checked before any capture is spent). To compare a page across a change, capture it first, make the change, then pass the earlier screenshot_url as `before` and the page url as `after`. Returns the percentage of changed pixels, the bounding box of the changed area, and a diff image: the after image dimmed, changed pixels in magenta, a red rectangle around the changed area. When nothing changed no image is attached. Costs 1 screenshot of the monthly quota per side given as `url` (0 to 2 per call). Both sides are captured with the same viewport options. Takes about 9-25 seconds when it captures. Limits: pages must be publicly reachable. At most the top 2,400 px are compared (at up to 1280 px wide); for a lower part of a long page, capture that part of both versions with capture_screenshot and `element`, then compare the two screenshot_url values. Animations, ads and rotating content show up as differences; hide them with hide_selectors.
Esquema de entrada
{
"type": "object",
"properties": {
"before": {
"type": "object",
"properties": {
"url": {
"description": "A public page URL to capture now (uses 1 screenshot of quota).",
"type": "string",
"minLength": 1,
"maxLength": 8192
},
"screenshot_url": {
"description": "The screenshot_url of an earlier GetScreenshot capture (uses no quota). Only GetScreenshot storage URLs are accepted.",
"type": "string",
"minLength": 1,
"maxLength": 2048
}
},
"additionalProperties": false,
"description": "The \"before\" image. Provide exactly one of url or screenshot_url."
},
"after": {
"type": "object",
"properties": {
"url": {
"description": "A public page URL to capture now (uses 1 screenshot of quota).",
"type": "string",
"minLength": 1,
"maxLength": 8192
},
"screenshot_url": {
"description": "The screenshot_url of an earlier GetScreenshot capture (uses no quota). Only GetScreenshot storage URLs are accepted.",
"type": "string",
"minLength": 1,
"maxLength": 2048
}
},
"additionalProperties": false,
"description": "The \"after\" image. Provide exactly one of url or screenshot_url."
},
"full_page": {
"default": false,
"description": "Capture whole pages instead of the viewport. Applies to sides given as url.",
"type": "boolean"
},
"width": {
"description": "Viewport width in CSS pixels. API default 1280. Ignored when device is set.",
"type": "integer",
"minimum": 1,
"maximum": 10000
},
"height": {
"description": "Viewport height in CSS pixels. API default 800. Ignored when device is set.",
"type": "integer",
"minimum": 1,
"maximum": 10000
},
"device": {
"description": "Device preset: sets the viewport and, for phones, a mobile user agent. Overrides width and height. iphone* and pixel* are phones, ipad* are tablets, the rest are fixed desktop sizes.",
"type": "string",
"enum": [
"iphone5",
"iphone678",
"iphone678_plus",
"iphonex",
"iphone12",
"pixel2",
"pixel2_xl",
"ipad",
"ipadpro",
"hvga",
"wvga",
"dvga",
"wxga_v",
"xga",
"wxga_s",
"wxga_l",
"sxga",
"wsxga_plus"
]
},
"hide_selectors": {
"description": "CSS selector(s) to hide in both captures. Use it to remove things that change on every load (ads, carousels, timestamps) so they do not show up as differences.",
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"wait_until": {
"description": "When the page counts as loaded. API default \"networkidle2\". Use \"domcontentloaded\" for heavy or slow sites (fastest, most reliable); \"networkidle0\" waits for all network activity to stop.",
"type": "string",
"enum": [
"load",
"domcontentloaded",
"networkidle0",
"networkidle2"
]
},
"wait_ms": {
"description": "Extra wait in milliseconds after load, before the capture. API default 2000. Raise it for late animations or client-side rendering.",
"type": "integer",
"minimum": 0,
"maximum": 20000
},
"threshold": {
"default": 0.1,
"description": "Per-pixel colour tolerance from 0 (any difference counts) to 1 (nothing counts). Default 0.1 ignores anti-aliasing noise.",
"type": "number",
"minimum": 0,
"maximum": 1
}
},
"required": [
"before",
"after"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}Esquema de salida
{
"type": "object",
"properties": {
"changed_percent": {
"type": "number",
"description": "Share of compared pixels that differ, 0-100."
},
"changed_pixels": {
"type": "number"
},
"total_pixels": {
"type": "number"
},
"identical": {
"type": "boolean",
"description": "True when no compared pixel differs and both images have exactly the same width and height."
},
"threshold": {
"type": "number"
},
"bounding_box": {
"anyOf": [
{
"type": "object",
"properties": {
"x": {
"type": "number"
},
"y": {
"type": "number"
},
"width": {
"type": "number"
},
"height": {
"type": "number"
}
},
"required": [
"x",
"y",
"width",
"height"
],
"additionalProperties": false
},
{
"type": "null"
}
],
"description": "Smallest rectangle containing all changed pixels, in comparison-image pixels. Null when nothing changed."
},
"size_changed": {
"type": "boolean",
"description": "True when the two images differ in size, for example the page got taller."
},
"compared": {
"type": "object",
"properties": {
"width": {
"type": "number"
},
"height": {
"type": "number"
}
},
"required": [
"width",
"height"
],
"additionalProperties": false,
"description": "Size both images were normalised to before comparing."
},
"before": {
"type": "object",
"properties": {
"screenshot_url": {
"type": "string"
},
"origin_url": {
"description": "Page that was captured; null when an existing screenshot was supplied.",
"type": [
"string",
"null"
]
},
"page_status": {
"type": [
"number",
"null"
]
},
"width": {
"type": "number"
},
"height": {
"type": "number"
}
},
"required": [
"screenshot_url",
"origin_url",
"page_status",
"width",
"height"
],
"additionalProperties": false
},
"after": {
"type": "object",
"properties": {
"screenshot_url": {
"type": "string"
},
"origin_url": {
"description": "Page that was captured; null when an existing screenshot was supplied.",
"type": [
"string",
"null"
]
},
"page_status": {
"type": [
"number",
"null"
]
},
"width": {
"type": "number"
},
"height": {
"type": "number"
}
},
"required": [
"screenshot_url",
"origin_url",
"page_status",
"width",
"height"
],
"additionalProperties": false
},
"images": {
"type": "array",
"items": {
"type": "object",
"properties": {
"index": {
"type": "number",
"description": "0-based position of the slice, top to bottom."
},
"y": {
"type": "number",
"description": "Top offset of this image within the downscaled capture, in the same pixels as width/height."
},
"width": {
"type": "number"
},
"height": {
"type": "number"
},
"estimated_tokens": {
"type": "number",
"description": "Approximate vision tokens: ceil(width/28) * ceil(height/28)."
}
},
"required": [
"index",
"y",
"width",
"height",
"estimated_tokens"
],
"additionalProperties": false
},
"description": "One entry per inline image, in the same order as the image blocks."
},
"total_slices": {
"type": "number",
"description": "How many slices the whole image needs at this detail level, whether or not they are attached. With return: \"url_only\" this is how many a normal call would produce."
},
"truncated": {
"type": "boolean",
"description": "True when images were requested and some slices were left out, because of max_slices or the inline size limit. Always false with return: \"url_only\", where no image is attached by request."
},
"estimated_image_tokens": {
"type": "number",
"description": "Approximate total vision tokens of the inline images."
},
"expires_in_days": {
"type": "number",
"description": "Stored files are deleted after this many days."
},
"warnings": {
"type": "array",
"items": {
"type": "string"
},
"description": "Things worth knowing about this result, for example an error status from the page."
}
},
"required": [
"changed_percent",
"changed_pixels",
"total_pixels",
"identical",
"threshold",
"bounding_box",
"size_changed",
"compared",
"before",
"after",
"images",
"total_slices",
"truncated",
"estimated_image_tokens",
"expires_in_days",
"warnings"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢capture_pdf(url, wait_until, wait_ms, hide_selectors, custom_css)
Save a public web page as an A4 PDF and return a link to the file. Use it when the user wants a document to keep, share or archive. The PDF is not shown to you; to look at a page use capture_screenshot. Costs 1 screenshot of the monthly quota per call, failed captures included. Takes about 9-25 seconds. The link is public to anyone who has it and expires in 30 days. Limits: the page must be reachable from the public internet (no localhost or private networks).
Esquema de entrada
{
"type": "object",
"properties": {
"url": {
"type": "string",
"minLength": 1,
"maxLength": 8192,
"description": "Absolute http(s) URL of the page, reachable from the public internet. localhost and private-network addresses cannot be captured; use render_html for local HTML."
},
"wait_until": {
"description": "When the page counts as loaded. API default \"networkidle2\". Use \"domcontentloaded\" for heavy or slow sites (fastest, most reliable); \"networkidle0\" waits for all network activity to stop.",
"type": "string",
"enum": [
"load",
"domcontentloaded",
"networkidle0",
"networkidle2"
]
},
"wait_ms": {
"description": "Extra wait in milliseconds after load, before the capture. API default 2000. Raise it for late animations or client-side rendering.",
"type": "integer",
"minimum": 0,
"maximum": 20000
},
"hide_selectors": {
"description": "CSS selector(s) to hide (display:none) before capture, comma-separated, for example \".newsletter-popup, #ad-banner\".",
"type": "string",
"minLength": 1,
"maxLength": 2000
},
"custom_css": {
"description": "CSS injected before the PDF is made, for example print tweaks.",
"type": "string",
"minLength": 1,
"maxLength": 20000
}
},
"required": [
"url"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}Esquema de salida
{
"type": "object",
"properties": {
"pdf_url": {
"type": "string",
"description": "The PDF file. Public to anyone who has the link."
},
"origin_url": {
"type": "string"
},
"page_status": {
"type": [
"number",
"null"
]
},
"captured_at": {
"type": [
"string",
"null"
]
},
"expires_in_days": {
"type": "number"
},
"warnings": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"pdf_url",
"origin_url",
"page_status",
"captured_at",
"expires_in_days",
"warnings"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}🟢get_usage
Report how many screenshots the configured API key has used this month, the plan's monthly limit, how many are left and when the quota resets. Use it before a large batch of captures or when a capture fails with a quota error. This check itself costs 1 screenshot of the quota, so do not call it routinely.
Esquema de entrada
{
"type": "object",
"properties": {},
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}Esquema de salida
{
"type": "object",
"properties": {
"used": {
"type": "number",
"description": "Screenshots used in the current period."
},
"limit": {
"type": "number",
"description": "Screenshots included per period on this plan."
},
"remaining": {
"type": "number"
},
"percent_used": {
"type": "number"
},
"period": {
"type": "string"
},
"quota_restart_date": {
"description": "`quotaRestartDate` exactly as the API reports it.",
"type": [
"string",
"null"
]
},
"resets_on": {
"description": "Date (UTC) the monthly quota next resets.",
"type": [
"string",
"null"
]
}
},
"required": [
"used",
"limit",
"remaining",
"percent_used",
"period",
"quota_restart_date",
"resets_on"
],
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false
}Comunidad
Evidencia