{"slug":"api-mrscraper-com-v1-cdp-scrape-html-5f88c5","title":"Retrieve the raw HTML of a page","host":"api.mrscraper.com","method":"GET","resource":"https://api.mrscraper.com/v1/cdp/scrape-html","category":"search","description":"Retrieve the raw HTML of a page. Browser rendering and a screenshot are optional. Errors are never charged: 400 invalid input, 502 scrape failed, 504 timed out.","price_listed":0.001,"price_asked":null,"state":"no_terms","state_label":"Answers HTTP 400 without x402 payment terms","checks_7d":7,"answered_7d":0,"latency_ms_median":null,"reported_calls_30d":13,"reported_payers_30d":4,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"method":"GET","queryParams":{"blockResources":false,"browserRendering":true,"geoCode":"us","maxAge":0,"maxRetries":2,"screenshot":"full","timeout":300,"url":"https://www.scrapethissite.com","waitForSelector":"#hero","warmStart":false},"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":"Fetch one public page as HTML. Unknown properties are ignored.","properties":{"blockResources":{"description":"Blocks images, fonts, and stylesheets from loading. Speeds up scraping and reduces bandwidth usage.","type":"boolean"},"browserRendering":{"description":"Controls whether the page is loaded in a browser. Leave it out to load the page without a browser first and switch to a browser automatically if the request is blocked. Set true to always load the page in a browser, which JavaScript-heavy sites, SPAs, and pages that load content dynamically need. Set false to never use a browser.","type":"boolean"},"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":{"description":"Also captures a screenshot of the rendered page as a base64-encoded PNG: full captures the entire scroll height, 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. Setting it forces browser rendering. Leave it out for no screenshot.","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"},"warmStart":{"description":"Opens the site's home page first to warm the session before loading the target URL. Useful for sites that expect a normal browsing session before deeper pages.","type":"boolean"}},"required":["url"],"type":"object"},"type":{"const":"http","type":"string"}},"required":["type","method"],"type":"object"},"output":{"properties":{"example":{"additionalProperties":true,"properties":{"html":{"description":"The page as the target sent it: HTML for web pages.","type":"string"},"screenshot":{"contentEncoding":"base64","description":"The image, base64-encoded, without a data: prefix. Present only when screenshot is set and the page produced one.","type":"string"}},"required":["html"],"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-11-26","reachable":true,"status":400,"valid_402":false,"asked_usdc":null,"price_match":null,"latency_ms":1225,"error":null},{"day":"2026-11-25","reachable":true,"status":400,"valid_402":false,"asked_usdc":null,"price_match":null,"latency_ms":1313,"error":null},{"day":"2026-11-24","reachable":true,"status":400,"valid_402":false,"asked_usdc":null,"price_match":null,"latency_ms":853,"error":null},{"day":"2026-11-23","reachable":true,"status":400,"valid_402":false,"asked_usdc":null,"price_match":null,"latency_ms":997,"error":null},{"day":"2026-11-22","reachable":true,"status":400,"valid_402":false,"asked_usdc":null,"price_match":null,"latency_ms":1024,"error":null},{"day":"2026-11-21","reachable":true,"status":400,"valid_402":false,"asked_usdc":null,"price_match":null,"latency_ms":829,"error":null},{"day":"2026-11-20","reachable":true,"status":400,"valid_402":false,"asked_usdc":null,"price_match":null,"latency_ms":819,"error":null},{"day":"2026-11-19","reachable":true,"status":400,"valid_402":false,"asked_usdc":null,"price_match":null,"latency_ms":837,"error":null},{"day":"2026-11-18","reachable":true,"status":400,"valid_402":false,"asked_usdc":null,"price_match":null,"latency_ms":1038,"error":null},{"day":"2026-11-17","reachable":true,"status":400,"valid_402":false,"asked_usdc":null,"price_match":null,"latency_ms":813,"error":null}],"description_full":"Retrieve the raw HTML of a page. Browser rendering and a screenshot are optional. Errors are never charged: 400 invalid input, 502 scrape failed, 504 timed out.","last_updated":"2026-11-25T00:11:32.577Z","schemes":["exact"]}