extract_structured_data
PAID CAPABILITY ($0.08 USDC per successful schema-conforming extraction via x402 v2). Fetches one public page and returns JSON fields extracted by an LLM against your own JSON Schema, re-validated against that schema before return; non-conforming output returns 422 and never settles. Single page only — no crawling or JavaScript rendering; page content is truncated to 8000 characters. This MCP call validates the target and returns the canonical x402 HTTP handoff; payment and the result are exchanged at POST https://api.santosautomation.com/v1/extract/structured with {"url": "…", "schema": {...}} — POST only, because a JSON Schema does not fit in a query string. No account or API key is required.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"url": "<url>"
},
"name": "extract_structured_data"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | A publicly reachable HTTP or HTTPS page. | |
| schema | No | Optional here — the handoff is returned either way. Required on the paid POST: a self-contained JSON Schema (type: object, no $ref) describing the fields to extract. Max 4000 characters. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Exact URL to request, then pay for and retry. | |
| method | Yes | HTTP method to use for the paid request. | |
| network | Yes | CAIP-2 chain id, eip155:8453 (Base mainnet). | |
| settles | No | When funds move. | |
| protocol | Yes | x402-v2 | |
| price_usdc | Yes | Price in USDC for one successful call. | |
| payment_required | Yes |