extract_structured $0.06 per call
Turn a web page or raw text into JSON that matches YOUR JSON Schema. LLM-powered, schema-constrained output — no parsing needed.
For AI agents: call extract_structured
POST https://toll402.dev/v1/extract
{
"url": "https://news.ycombinator.com",
"schema": {
"type": "object",
"properties": {
"stories": {
"type": "array",
"items": {
"type": "object",
"properties": {
"title": {
"type": "string"
},
"points": {
"type": "integer"
}
}
}
}
}
}
}Answers 402 with x402 payment requirements; pay with any x402 client (@x402/fetch, x402 for Python, toll402-client, toll402-mcp) or send a prepaid-credits key as x-toll402-key (https://toll402.dev/credits). Paid per call via x402 (USDC on Base) or with a prepaid-credits key (x-toll402-key, card at /credits); charged only on success. Start at /llms.txt or connect the MCP server:
npx -y toll402-mcp · remote https://toll402.dev/mcp.Input schema
{
"type": "object",
"properties": {
"url": {
"type": "string",
"format": "uri",
"description": "Page to read and extract from"
},
"text": {
"type": "string",
"maxLength": 400000,
"description": "Raw text/markdown/HTML to extract from (alternative to url)"
},
"schema": {
"type": "object",
"additionalProperties": true,
"description": "JSON Schema (object) describing the output you want"
},
"instructions": {
"type": "string",
"maxLength": 4000,
"description": "Extra guidance, e.g. 'prices in USD', 'dates as ISO 8601'"
}
},
"required": [
"schema"
],
"additionalProperties": false
}
Example output
{
"data": {
"stories": [
{
"title": "Show HN: ...",
"points": 120
}
]
},
"usage": {
"inputTokens": 5400,
"outputTokens": 320
}
}
MCP
{"mcpServers":{"toll402":{"command":"npx","args":["-y","toll402-mcp"],"env":{"TOLL402_WALLET_KEY":"0x..."}}}}