HTML Parsing Diagnostics
Report native HTML parser error codes with line/column/UTF-16 indices and resulting document mode. Return up to64 diagnostics plus the total observed count and truncation flag; parser errors are paid diagnostic results. This is parsing/error recovery, not complete HTML conformance, accessibility or security validation. Limits65536 input UTF-8 bytes,8192 nodes/attributes,depth64,1048576 result JSON bytes. No browser, script execution or fetching.
- Price
- from $0.0012 USDC per request (starting price; the 402 response quotes the exact amount for your input)
- Network
- Base mainnet,
eip155:8453, settled in USDC through the Coinbase CDP facilitator - Method and URL
POST https://market.561.group/v1/data/html-parse-diagnostics- Response type
application/json- Seller
- Causeway Services (561 Group)
Input contract
Input that fails this contract is refused with a 4xx status before any payment is requested.
{
"maxBytes": 1048576,
"bodySchema": {
"type": "object",
"required": [
"html"
],
"properties": {
"html": {
"type": "string",
"maxLength": 65536,
"description": "Maximum65536decoded UTF-8 bytes; full JSON escaping fits the request envelope."
}
},
"additionalProperties": false
}
}
Example request
{
"method": "POST",
"url": "https://market.561.group/v1/data/html-parse-diagnostics",
"headers": {
"accept": "application/json",
"content-type": "application/json"
},
"body": {
"html": "<!doctype html><p class=a class=b>�"
}
}
Output
{
"schema": {
"type": "object",
"required": [
"diagnostics",
"totalCount",
"truncated",
"mode",
"sourceByteLength",
"offsetUnit"
],
"properties": {
"diagnostics": {
"type": "array",
"maxItems": 64,
"items": {
"type": "object",
"required": [
"code",
"line",
"column",
"index"
],
"properties": {
"code": {
"type": "string"
},
"line": {
"type": [
"integer",
"null"
]
},
"column": {
"type": [
"integer",
"null"
]
},
"index": {
"type": [
"integer",
"null"
]
}
}
}
},
"totalCount": {
"type": "integer",
"minimum": 0
},
"truncated": {
"type": "boolean"
},
"mode": {
"enum": [
"no-quirks",
"quirks",
"limited-quirks"
]
},
"sourceByteLength": {
"type": "integer",
"minimum": 0
},
"offsetUnit": {
"const": "UTF-16 code units"
}
}
},
"example": {
"diagnostics": [
{
"code": "duplicate-attribute",
"line": 1,
"column": 32,
"index": 31
},
{
"code": "character-reference-outside-unicode-range",
"line": 1,
"column": 45,
"index": 44
}
],
"totalCount": 2,
"truncated": false,
"mode": "no-quirks",
"sourceByteLength": 44,
"offsetUnit": "UTF-16 code units"
}
}
How to buy with x402
- Send the request without payment. The server answers
402 Payment Requiredwith a base64 JSONPAYMENT-REQUIREDheader holding the amount, asset, network and payee. - Have your wallet sign an EIP-3009
transferWithAuthorizationfor exactly those terms (an x402 client library does this for you). - Repeat the identical request with the signed payload in the
PAYMENT-SIGNATUREheader. - The server verifies, runs the operation, settles, and returns
200with the result and aPAYMENT-RESPONSEheader carrying the settlement receipt.
Read the price without paying
curl --include --request POST --header 'accept: application/json' --header 'content-type: application/json' --data-raw '{"html":"<!doctype html><p class=a class=b>�"}' --url 'https://market.561.group/v1/data/html-parse-diagnostics'
This request authorizes nothing; it returns the live payment terms. Read the full explanation of x402.
Machine-readable
- /.well-known/x402: x402 discovery document for every offer
- /v1/catalog: full catalog with contracts and examples
- /llms.txt: the market in llms.txt form
- services.561.group: Causeway Services