Returns JSON with the clean Markdown of a public web page (URL to Markdown, boilerplate stripped) plus its title, description, language, canonical URL and links.
Use when you need web page to markdown, url to markdown, to scrape a web page or extract content from a url for an LLM.
Do not use for pages that need JavaScript to render, sit behind a login or paywall, or are not HTML (PDFs go to blackwood_pdf_extract).
Price: 0.01 USDC per call (x402, eip155:8453). Typical response time: 2500 ms (p95).
POST https://x402-gateway.blackwoodstate8.workers.dev/v1/web-markdown. A request without payment gets 402 Payment Required with the
PAYMENT-REQUIRED header; any x402 client signs an EIP-3009 authorization and retries with
PAYMENT-SIGNATURE (or X-PAYMENT). Invalid input is answered with 400 and not charged.
curl -i -X POST https://x402-gateway.blackwoodstate8.workers.dev/v1/web-markdown -H 'content-type: application/json' -d '{"url":"https://httpbin.org/html","maxChars":500}'
| Pay to | 0x5A6c77758820182484EA8DE614FC65423E80749a |
|---|---|
| Asset | 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913 (USDC) |
| Amount | 10000 atomic units (0.01 USDC) |
| Authorization window | 60 s |
Streamable HTTP at https://x402-gateway.blackwoodstate8.workers.dev/mcp, tool blackwood_webpage_markdown. Payment goes in
_meta["x402/payment"]; without it the tool returns the payment requirements.
| Field | Type | Meaning |
|---|---|---|
url | string | Public http(s) URL of the web page to read, e.g. https://example.com/article |
maxChars (optional) | integer | Maximum length of the returned markdown (500-100000 characters, 50000 when omitted) |
Example:
{
"url": "https://httpbin.org/html",
"maxChars": 500
}
Real example:
{
"url": "https://httpbin.org/html",
"finalUrl": "https://httpbin.org/html",
"status": 200,
"title": null,
"description": null,
"lang": null,
"canonical": null,
"markdown": "# Herman Melville - Moby-Dick\n\nAvailing himself of the mild, summer-cool weather that now reigned in these latitudes, and in preparation for the peculiarly active pursuits shortly to be anticipated, Perth, the begrimed, blistered old blacksmith, had not removed his portable forge to the hold again, after concluding his contributory work for Ahab's leg, but still retained it on deck, fast lashed to ringbolts by the foremast; being now almost incessantly invoked by the headsmen, and harpooneers, a",
"links": [],
"wordCount": 78,
"truncated": true
}
{
"type": "object",
"properties": {
"url": {
"type": "string"
},
"finalUrl": {
"type": "string"
},
"status": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"title": {
"type": [
"string",
"null"
]
},
"description": {
"type": [
"string",
"null"
]
},
"lang": {
"type": [
"string",
"null"
]
},
"canonical": {
"type": [
"string",
"null"
]
},
"markdown": {
"type": "string"
},
"links": {
"type": "array",
"items": {
"type": "object",
"properties": {
"text": {
"type": "string"
},
"href": {
"type": "string"
}
},
"required": [
"text",
"href"
],
"additionalProperties": false
}
},
"wordCount": {
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
"truncated": {
"type": "boolean"
},
"next": {
"type": "object",
"properties": {
"service": {
"type": "string",
"description": "Service id of the suggested next paid call"
},
"tool": {
"type": "string",
"description": "MCP tool name of the same call"
},
"method": {
"type": "string",
"enum": [
"GET",
"POST"
]
},
"url": {
"type": "string",
"description": "Paid route of the next call"
},
"useWhen": {
"type": "string",
"description": "When the next call is the right one"
},
"sample": {
"type": "string",
"description": "Free fixed sample of the whole family"
}
},
"required": [
"service",
"tool",
"method",
"url",
"useWhen",
"sample"
],
"additionalProperties": false,
"description": "Suggested next paid call in the same family (call it in a loop when the task continues)"
}
},
"required": [
"url",
"finalUrl",
"status",
"title",
"description",
"lang",
"canonical",
"markdown",
"links",
"wordCount",
"truncated"
],
"additionalProperties": false
}Free schema and example: GET https://x402-gateway.blackwoodstate8.workers.dev/v1/web-markdown.
OpenAPI 3.1 · llms.txt · All services