Api Endpoint

MrScraper

Extract structured JSON from a page using a natural-language prompt. Errors are never charged: 400 invalid input, 502 extraction 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-json
MIME type
application/json
First seen
2026-11-21T18:11:52.301Z
Last seen
Tags
ai-extraction, structured-data, JSON, web-scraping, LLM

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
123 ms
Average latency
148 ms
HTTP status
402
Last checked
Reachability
100% over 4 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."
        },
        "prompt": {
          "type": "string",
          "minLength": 1,
          "description": "Describe the data shape you want back (e.g. fields like title, price, rating). This prompt only parses the scraped content. It cannot instruct the scraper flow itself."
        },
        "html": {
          "type": "boolean",
          "default": true,
          "description": "Whether to include the page HTML in the response."
        },
        "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": "Whether to include a base64 screenshot in the response."
        },
        "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."
        }
      },
      "required": [
        "url"
      ],
      "additionalProperties": true,
      "description": "Extract structured data from one public page. Unknown properties are ignored."
    }
  },
  "required": [
    "type",
    "method"
  ],
  "additionalProperties": false
}

Output schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string"
    },
    "example": {
      "type": "object",
      "properties": {
        "data": {
          "description": "The extracted data, shaped by the prompt: usually an object, possibly a list."
        },
        "html": {
          "type": "string",
          "description": "The page HTML. Present only when html=true, the default, and the page produced it."
        },
        "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": [
        "data"
      ],
      "additionalProperties": true
    }
  },
  "required": [
    "type"
  ]
}