Extracts structured JSON from a page with AI, guided by a natural-language promp
Extracts structured JSON from a page with AI, guided by a natural-language prompt that describes the fields wanted. A JSON schema after a Json Schema: label in the prompt shapes the output. Errors are never charged: 400 invalid input, 502 extraction failed, 504 timed out.
Answers HTTP 400 without x402 payment termsour last check, 2026-11-27
0 of 7checks answered this week
n/amedian answer time
$0.001listed price per call
n/aprice it asked us
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
GET https://api.mrscraper.com/v1/cdp/scrape-json
| Category | Code and developer |
|---|---|
| Provider host | api.mrscraper.com |
| Networks | eip155:8453 |
| Payment schemes | exact |
| Self-reported calls, 30 days | 9 from 3 payers (the provider's figure, not ours) |
Our checks, last 30 days
| Day | Result | HTTP | Asked | Time |
|---|---|---|---|---|
| 2026-11-27 | no x402 terms | 400 | 836 ms | |
| 2026-11-26 | no x402 terms | 400 | 1051 ms | |
| 2026-11-25 | no x402 terms | 400 | 1003 ms | |
| 2026-11-24 | no x402 terms | 400 | 1339 ms | |
| 2026-11-23 | no x402 terms | 400 | 997 ms | |
| 2026-11-22 | no x402 terms | 400 | 1033 ms | |
| 2026-11-21 | no x402 terms | 400 | 1052 ms | |
| 2026-11-20 | no x402 terms | 400 | 1373 ms | |
| 2026-11-19 | no x402 terms | 400 | 839 ms | |
| 2026-11-18 | no x402 terms | 400 | 1346 ms | |
| 2026-11-17 | valid payment request | 402 | $0.001 | 1005 ms |
Example input (from the provider)
{
"method": "GET",
"queryParams": {
"blockResources": true,
"browserRendering": true,
"geoCode": "us",
"html": false,
"maxAge": 0,
"maxRetries": 2,
"prompt": "All data on the page, as complete as possible",
"screenshot": false,
"timeout": 300,
"url": "https://mrscraper.com/pricing",
"waitForSelector": "#main",
"warmStart": false
},
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"method": {
"enum": [
"GET"
],
"type": "string"
},
"queryParams": {
"additionalProperties": true,
"description": "Extract structured data from one public page. 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"
},
"html": {
"default": true,
"description": "Returns the raw HTML of the scraped page in the response. On by default; set false to leave it out.",
"type": "boolean"
},
"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"
},
"prompt": {
"description": "Natural-language description of the data shape wanted, such as fields like title, price, and rating. It only parses the scraped content. A JSON schema after a Json Schema: label in the prompt shapes the output. Without a prompt, MrScraper extracts all the data on the page.",
"minLength": 1,
"type": "string"
},
"screenshot": {
"default": false,
"description": "Captures a screenshot of the rendered page as a base64-encoded image. Useful for verifying what the scraper actually saw. Off by default.",
"type": "boolean"
},
"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": {
"data": {
"description": "The extracted data, shaped by the prompt: usually an object, possibly a list."
},
"html": {
"description": "The page HTML. Present only when html=true, the default, and the page produced it.",
"type": "string"
},
"screenshot": {
"contentEncoding": "base64",
"description": "The image, base64-encoded, without a data: prefix. Present only when screenshot=true and the page produced one.",
"type": "string"
}
},
"required": [
"data"
],
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}