Api Endpoint

MrScraper

Retrieve the raw HTML of a page. Browser rendering is optional. Errors are never charged: 400 invalid input, 502 scrape failed, 504 timed out.

Open interactive test console

Offering

Provider
api.mrscraper.com
Method
GET
Offering type
Api Endpoint
Transport type
http
Category
Other
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://api.mrscraper.com/v1/cdp/scrape-html
MIME type
application/json
First seen
2026-11-21T18:11:52.301Z
Last seen
Tags
web-scraping, html, web-fetch, browser-rendering, scraper

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.001 USDC
Atomic price: 1000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "1000",
    "payTo": "0x7697D53c3B8aFa641794Ac4Cb56Ed375798a0502"
  }
]

Observed health

Status
Healthy
Latest latency
121 ms
Average latency
149 ms
HTTP status
402
Last checked
Reachability
100% over 3 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "GET"
      ]
    },
    "queryParams": {
      "type": "object",
      "properties": {
        "url": {
          "type": "string",
          "description": "Absolute HTTP or HTTPS URL of the page to process."
        },
        "browserRendering": {
          "type": "boolean",
          "description": "Whether to load the page in a browser: true enables it, false disables it unless required. Omit to try without a browser first and switch automatically if blocked. waitForSelector forces true."
        },
        "timeout": {
          "type": "integer",
          "minimum": 1,
          "maximum": 330,
          "default": 300,
          "description": "Maximum seconds to wait for the page to fully load before the request times out. Increase for slow or complex pages."
        },
        "warmStart": {
          "type": "boolean",
          "default": false,
          "description": "Warm up session before going directly to the target URL."
        },
        "blockResources": {
          "type": "boolean",
          "default": false,
          "description": "Block images, fonts, and stylesheets from loading. Speeds up scraping and reduces bandwidth usage."
        },
        "waitForSelector": {
          "type": "string",
          "minLength": 1,
          "maxLength": 500,
          "description": "Pause until a specific CSS selector or text appears on the page. Useful for content that loads asynchronously after the initial page load. Requires a rendered page. Setting this parameter automatically forces browserRendering to true."
        },
        "geoCode": {
          "type": "string",
          "pattern": "^[a-zA-Z]{2}$",
          "description": "Two-letter country code to load the page from, sent in lowercase."
        },
        "maxAge": {
          "type": "integer",
          "minimum": 0,
          "maximum": 604800000,
          "default": 0,
          "description": "Return a cached result of the same request when it is newer than the selected age. Set to 0 to always fetch fresh results. A cached result costs the same tokens as the original scrape."
        },
        "maxRetries": {
          "type": "integer",
          "minimum": 0,
          "description": "Maximum number of retries, as a nonnegative integer. Omit this parameter for no limit."
        },
        "screenshot": {
          "type": "boolean",
          "default": false,
          "description": "Capture a screenshot too (forces browser rendering). Set to true to include a screenshot, or false (default) for none."
        },
        "tokenCap": {
          "type": "integer",
          "minimum": 0,
          "description": "Maximum total tokens the scrape and its retries can use. Automatic retries are bounded by this cap, so the total tokens for a single run stay at or below the value you set. Omit for no limit."
        },
        "cookies": {
          "type": "string",
          "minLength": 1,
          "description": "Cookies to send to the target site, as name=value pairs separated by semicolons (URL-encoded), for pages behind a login session. The gateway sends them as the Cookie header and never forwards the parameter itself. A standard Cookie request header works too; this parameter wins when both are sent. Requests with cookies skip the result cache."
        }
      },
      "required": [
        "url"
      ],
      "additionalProperties": true,
      "description": "Fetch one public page as HTML. Unknown properties are ignored."
    }
  },
  "required": [
    "type",
    "method"
  ],
  "additionalProperties": false
}

Output schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string"
    },
    "example": {
      "type": "object",
      "properties": {
        "html": {
          "type": "string",
          "description": "The page as the target sent it: HTML for web pages."
        },
        "screenshot": {
          "type": "string",
          "contentEncoding": "base64",
          "description": "The image, base64-encoded, without a data: prefix. Present only when screenshot=true and the page produced one."
        }
      },
      "required": [
        "html"
      ],
      "additionalProperties": true
    }
  },
  "required": [
    "type"
  ]
}