Cdp Scrape Brand
by MrScraper in Search & web
Extract a website's colors, typography, logos, and social links as JSON. Errors are never charged: 400 invalid input, 502 extraction failed, 504 timed out.
https://api.mrscraper.com/v1/cdp/scrape-brand- Price
- $0.001
- per call in USDC
- Uptime
- 97.6%
- last 30 days
- Response time
- 506 ms
- 737 ms slowest 5%
- Last check
- Passed
- 8 h ago, next any minute now
Reliability
Status and outage history · Atom feed · Watch with other listings
How to call it
GET https://api.mrscraper.com/v1/cdp/scrape-brand
Each call costs $0.001 in USDC on Base, paid with the request over x402.
Run a free test callOne unpaid request, the way an agent sends it. You see the payment challenge it gets back. Nothing is charged.
Example request
From the listing.
GET https://api.mrscraper.com/v1/cdp/scrape-brand?url=https%3A%2F%2Fmrscraper.comParameters
| Parameter | Type | Required | Description |
|---|---|---|---|
url | string | Yes | Absolute HTTP or HTTPS URL of the page to process. |
Example response
The provider's example. We can't check it without paying.
Example response, 86 lines
{
"brand": {
"colors": {
"background": "#0d1625",
"link": "#f1f5f9",
"palette": [
{
"hex": "#050606",
"roles": [
"background",
"text"
],
"share": 0.921
},
{
"hex": "#171e28",
"roles": [
"background"
],
"share": 0.031
},
{
"hex": "#9ca3af",
"roles": [
"text"
],
"share": 0.016
}
],
"text": "#000000"
},
"description": "Turn any website into structured JSON with plain-English prompts or a visual recorder. Schedule jobs, send data to your database. Start free, 1,000 tokens.",
"icons": {
"all": [
{
"color": null,
"rel": "apple-touch-icon",
"sizes": "180x180",
"type": null,
"url": "https://mrscraper.com/apple-touch-icon.png"
}
],
"apple_touch_icon": "https://mrscraper.com/apple-touch-icon.png",
"favicon": "https://mrscraper.com/favicon-32x32.png"
},
"language": "en",
"logo": {
"source": "json-ld",
"url": "https://mrscraper.com/images/logo-blue.png"
},
"logos": [
{
"source": "json-ld",
"url": "https://mrscraper.com/images/logo-blue.png"
}
],
"manifest": {
"background_color": "#0d1625",
"display": "standalone",
"name": "MrScraper",
"short_name": "MrScraper",
"theme_color": "#0d1625",
"url": "https://mrscraper.com/site.webmanifest"
},
"name": "MrScraper",
"organization": {
"logo": "https://mrscraper.com/images/logo-blue.png",
"name": "MrScraper",
"url": "https://mrscraper.com"
},
"social": {
"x": "https://twitter.com/MrScraper_"
},
"title": "MrScraper: Web Scraping API for Structured Data",
"typography": {
"body": {
"color": "#000000",
"font_family": "\"Poppins\", -apple-system, BlinkMacSystemFont, \"Segoe UI\", \"Roboto\", \"Oxygen\", \"Ubuntu\", \"Cantarell\", \"Fira Sans\", \"Droid Sans\", \"Helvetica Neue\", sans-serif",
"font_size": "16px",
"font_weight": "400"
}
}
},
"final_url": "https://mrscraper.com/",
"url": "https://mrscraper.com/"
}Call it from code
The curl command shows the payment challenge. The JavaScript and Python versions pay and call, and never pay more than $0.001.
curl: see the payment challenge
# bash or zsh: see the payment challenge. Nothing is charged.
curl -sS -g -i 'https://api.mrscraper.com/v1/cdp/scrape-brand?url=https%3A%2F%2Fmrscraper.com'
# x402 v2 sends the challenge base64-encoded in the PAYMENT-REQUIRED header (v1 sends it in the body).
# To read the header:
curl -sS -g -o /dev/null -D - 'https://api.mrscraper.com/v1/cdp/scrape-brand?url=https%3A%2F%2Fmrscraper.com' \
| grep -i '^payment-required:' | cut -d' ' -f2 | tr -d '\r' | base64 --decodeJavaScript: pay and call
// npm i @x402/fetch @x402/evm viem
import { wrapFetchWithPayment, x402Client } from "@x402/fetch";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";
// Pays at most $0.001 per call.
const client = new x402Client().setSpendControls({ maxAmountPerPayment: "$0.001" });
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.EVM_PRIVATE_KEY) });
const pay = wrapFetchWithPayment(fetch, client);
// Not sure it's safe to pay? ToolVet checks it first for $0.005. Pay for that from a separate
// client: this one is capped at $0.001 per payment. GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fapi.mrscraper.com%2Fv1%2Fcdp%2Fscrape-brand
const res = await pay("https://api.mrscraper.com/v1/cdp/scrape-brand?url=https%3A%2F%2Fmrscraper.com");
console.log(res.status, await res.text());Python: pay and call
# pip install "x402[requests,evm]"
import os
from eth_account import Account
from x402 import x402ClientSync
from x402.http.clients import x402_requests
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact.register import register_exact_evm_client
# Pays at most $0.001 per call.
client = x402ClientSync().set_spend_controls({"max_amount_per_payment": "$0.001"})
register_exact_evm_client(client, EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"])))
with x402_requests(client) as session:
res = session.get("https://api.mrscraper.com/v1/cdp/scrape-brand?url=https%3A%2F%2Fmrscraper.com")
print(res.status_code, res.text)Security scan
No findings
We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.
Recent checks
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 8 h ago | Passed | 402 | 460 ms | $0.001 |
| 18 h ago | Passed | 402 | 439 ms | $0.001 |
| 28 h ago | Passed | 402 | 493 ms | $0.001 |
| 39 h ago | Passed | 402 | 212 ms | $0.001 |
| 2 days ago | Passed | 402 | 503 ms | $0.001 |
Show 10 older checks
| 4 days ago | Timed out | - | - | - |
| 5 days ago | Passed | 402 | 465 ms | $0.001 |
| 6 days ago | Passed | 402 | 524 ms | $0.001 |
| 6 days ago | Passed | 402 | 521 ms | $0.001 |
| 7 days ago | Passed | 402 | 491 ms | $0.001 |
| 7 days ago | Passed | 402 | 693 ms | $0.001 |
| 7 days ago | Passed | 402 | 504 ms | $0.001 |
| 8 days ago | Passed | 402 | 818 ms | $0.001 |
| 8 days ago | Passed | 402 | 217 ms | $0.001 |
| 8 days ago | Passed | 402 | 554 ms | $0.001 |