Web Unblocker
Retrieve the raw HTML of a webpage using the MrScraper Playground API.
This endpoint scrapes a target URL with Unblocker feature that supports browser rendering, geo-targeting via proxy, and waiting for specific DOM selectors before extracting content.
Note
Use the Playground API Server (https://api.mrscraper.com) host when calling this endpoint.
Query Parameters
API token.
The full URL of the page you want to scrape. Must include the protocol (https://). You can also paste a cURL command here to auto-apply all settings.
uritrueRoute requests through real devices to bypass anti-bot protection.
Render page using Chromium.
Defines when the browser considers navigation complete. 'Network Idle 0' waits until all network activity stops — most thorough but slowest
"domcontentloaded" | "load" | "networkidle0" | "networkidle2"Maximum seconds to wait for the page to fully load before the request times out. Increase for slow or complex pages
Block images, fonts, and stylesheets from loading. Speeds up scraping and reduces bandwidth usage
Pause until a specific CSS selector appears in the DOM. Useful for content that loads asynchronously after the initial page load
Include the browser session cookies from the scraped page in the API response
The geographic code for the location of the proxy server
The country of the proxy server
Header Parameters
API token.
Response Body
text/html
application/json
application/json
curl -X GET "https://api.mrscraper.com/?token=string&url=http%3A%2F%2Fexample.com&html=true" \ -H "x-api-token: string""<!DOCTYPE html><html lang=\"en\"><head><title>Example Domain</title><meta name=\"viewport\" content=\"width=device-width, initial-scale=1\"><style>body{background:#eee;width:60vw;margin:15vh auto;font-family:system-ui,sans-serif}h1{font-size:1.5em}div{opacity:0.8}a:link,a:visited{color:#348}</style></head><body><div><h1>Example Domain</h1><p>This domain is for use in documentation examples without needing permission. Avoid use in operations.</p><p><a href=\"https://iana.org/domains/example\">Learn more</a></p></div></body></html>"{
"error": "Unauthorized",
"message": "Invalid or missing API token",
"statusCode": 401
}{
"error": "Internal Server Error",
"message": "An unexpected error occurred",
"statusCode": 500
}