{"slug":"api-mrscraper-com-v1-cdp-get-screenshot-335ccd","title":"Capture a base64 PNG screenshot of the full page, the top viewport, or a custom ","host":"api.mrscraper.com","method":"GET","resource":"https://api.mrscraper.com/v1/cdp/get-screenshot","category":"other","description":"Capture a base64 PNG screenshot of the full page, the top viewport, or a custom viewport size. Browser rendering is always enabled. Errors are never charged: 400 invalid input, 502 capture failed, 504 timed out.","price_listed":0.001,"price_asked":0.001,"state":"answering","state_label":"Answering","checks_7d":7,"answered_7d":3,"latency_ms_median":829,"reported_calls_30d":8,"reported_payers_30d":2,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"method":"GET","queryParams":{"geoCode":"us","maxAge":0,"maxRetries":2,"screenshot":"full","timeout":300,"url":"https://www.scrapethissite.com","waitForSelector":"#hero"},"type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"method":{"enum":["GET"],"type":"string"},"queryParams":{"additionalProperties":true,"description":"Capture one public page in a browser, which is always used for this tool. Unknown properties are ignored.","properties":{"geoCode":{"description":"Two-letter country code to load the page from, such as us or gb. Defaults to the United States.","pattern":"^[a-zA-Z]{2}$","type":"string"},"maxAge":{"default":0,"description":"Serves a cached result of the same request when it is newer than this age, in milliseconds, such as 86400000 for 1 day. Up to 604800000 (7 days). 0, the default, always scrapes fresh. A cached result costs the same tokens as the original scrape.","maximum":604800000,"minimum":0,"type":"integer"},"maxRetries":{"description":"Maximum number of retries for the request. Omit for no limit.","minimum":0,"type":"integer"},"screenshot":{"default":"full","description":"Screenshot area: full captures the entire scroll height (the default), top captures the first viewport, and <width>x<height> sets the viewport size in pixels with an optional -<zoom> percent, such as 1280x800 or 1920x1080-75. Width and height range from 100 to 3840, zoom from 25 to 300. The image is a base64-encoded PNG.","pattern":"^(full|top|[0-9]{3,4}x[0-9]{3,4}(-[0-9]{2,3})?)$","type":"string"},"timeout":{"description":"Maximum seconds to wait for the scrape before the request times out, from 1 to 330. Increase for slow or complex pages. Defaults to 300.","maximum":330,"minimum":1,"type":"integer"},"url":{"description":"URL of the page to scrape. Must include the protocol (https://). Local and private hosts, IPv6 literals and embedded credentials are rejected.","type":"string"},"waitForSelector":{"description":"Waits until a specific CSS selector or text appears on the page before returning it, such as #results. Up to 500 characters. Useful for content that loads asynchronously after the initial page load.","maxLength":500,"minLength":1,"type":"string"}},"required":["url"],"type":"object"},"type":{"const":"http","type":"string"}},"required":["type","method"],"type":"object"},"output":{"properties":{"example":{"additionalProperties":true,"properties":{"format":{"description":"The image format, read from the image's own bytes.","enum":["png","jpeg","webp","unknown"],"type":"string"},"screenshot":{"contentEncoding":"base64","description":"The image, base64-encoded, without a data: prefix.","type":"string"}},"required":["screenshot","format"],"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-11-26","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.001,"price_match":true,"latency_ms":829,"error":null},{"day":"2026-11-25","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.001,"price_match":true,"latency_ms":817,"error":null},{"day":"2026-11-24","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.001,"price_match":true,"latency_ms":830,"error":null},{"day":"2026-11-23","reachable":true,"status":400,"valid_402":false,"asked_usdc":null,"price_match":null,"latency_ms":835,"error":null},{"day":"2026-11-22","reachable":true,"status":400,"valid_402":false,"asked_usdc":null,"price_match":null,"latency_ms":826,"error":null},{"day":"2026-11-21","reachable":true,"status":400,"valid_402":false,"asked_usdc":null,"price_match":null,"latency_ms":831,"error":null},{"day":"2026-11-20","reachable":true,"status":400,"valid_402":false,"asked_usdc":null,"price_match":null,"latency_ms":1047,"error":null},{"day":"2026-11-19","reachable":true,"status":400,"valid_402":false,"asked_usdc":null,"price_match":null,"latency_ms":1019,"error":null},{"day":"2026-11-18","reachable":true,"status":400,"valid_402":false,"asked_usdc":null,"price_match":null,"latency_ms":832,"error":null},{"day":"2026-11-17","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.001,"price_match":true,"latency_ms":1038,"error":null}],"description_full":"Capture a base64 PNG screenshot of the full page, the top viewport, or a custom viewport size. Browser rendering is always enabled. Errors are never charged: 400 invalid input, 502 capture failed, 504 timed out.","last_updated":"2026-11-24T04:58:41.878Z","schemes":["exact"]}