{
  "x402Version": 2,
  "id": 55569,
  "slug": "55569",
  "resource": "https://agentshelf.syntexa.ch/v1/html-to-md",
  "description": "Call when an agent needs clean markdown from HTML the agent already holds. No network. Optional url is only a base for relative links. Use it after a fetch when you do not want a second download. Send JSON {\"html\":\"<h1>Hello</h1><p>World</p>\",\"url\":\"https://example.com/page\"}. Exact $0.002 USDC on Base. Try unpaid POST /v1/sandbox/html-to-md first.",
  "type": "http",
  "resourceType": "Dataset",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0x1D61FAA032d3f40D9C470D2bf3A3f53De0E55a38",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "2000",
      "amountUsd": 0.002,
      "maxTimeoutSeconds": 60
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "additionalProperties": false,
        "examples": [
          {
            "billed": true,
            "markdown": "# Hello\n\nWorld",
            "ok": true,
            "receipt_id": "rcpt_01EXAMPLE000000000000000",
            "title": "Hello",
            "warnings": []
          }
        ],
        "properties": {
          "billed": {
            "examples": [
              true
            ],
            "type": "boolean"
          },
          "markdown": {
            "examples": [
              "# Hello\n\nWorld"
            ],
            "type": "string"
          },
          "ok": {
            "const": true,
            "examples": [
              true
            ],
            "type": "boolean"
          },
          "receipt_id": {
            "examples": [
              "rcpt_01EXAMPLE000000000000000"
            ],
            "type": "string"
          },
          "title": {
            "examples": [
              "Hello"
            ],
            "type": [
              "string",
              "null"
            ]
          },
          "warnings": {
            "default": [],
            "examples": [
              []
            ],
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "required": [
          "ok",
          "receipt_id",
          "billed",
          "title",
          "markdown"
        ],
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "html": "<h1>Hello</h1><p>World</p>",
            "url": "https://example.com/page"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "billed": true,
            "markdown": "# Hello\n\nWorld",
            "ok": true,
            "receipt_id": "rcpt_01EXAMPLE000000000000000",
            "title": "Hello",
            "warnings": []
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "additionalProperties": false,
                "examples": [
                  {
                    "html": "<h1>Hello</h1><p>World</p>",
                    "url": "https://example.com/page"
                  }
                ],
                "properties": {
                  "html": {
                    "description": "HTML document to convert to markdown. The handler does not fetch it.",
                    "examples": [
                      "<h1>Hello</h1><p>World</p>"
                    ],
                    "maxLength": 200000,
                    "minLength": 1,
                    "type": "string"
                  },
                  "url": {
                    "description": "Optional base URL used only to resolve relative links. Omit it when the HTML has no relative URLs.",
                    "examples": [
                      "https://example.com/page"
                    ],
                    "maxLength": 2048,
                    "type": "string"
                  }
                },
                "required": [
                  "html"
                ],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "additionalProperties": false,
                "examples": [
                  {
                    "billed": true,
                    "markdown": "# Hello\n\nWorld",
                    "ok": true,
                    "receipt_id": "rcpt_01EXAMPLE000000000000000",
                    "title": "Hello",
                    "warnings": []
                  }
                ],
                "properties": {
                  "billed": {
                    "examples": [
                      true
                    ],
                    "type": "boolean"
                  },
                  "markdown": {
                    "examples": [
                      "# Hello\n\nWorld"
                    ],
                    "type": "string"
                  },
                  "ok": {
                    "const": true,
                    "examples": [
                      true
                    ],
                    "type": "boolean"
                  },
                  "receipt_id": {
                    "examples": [
                      "rcpt_01EXAMPLE000000000000000"
                    ],
                    "type": "string"
                  },
                  "title": {
                    "examples": [
                      "Hello"
                    ],
                    "type": [
                      "string",
                      "null"
                    ]
                  },
                  "warnings": {
                    "default": [],
                    "examples": [
                      []
                    ],
                    "items": {
                      "type": "string"
                    },
                    "type": "array"
                  }
                },
                "required": [
                  "ok",
                  "receipt_id",
                  "billed",
                  "title",
                  "markdown"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "agentshelf.syntexa.ch",
  "lastUpdated": "2026-10-11T10:15:44.911Z",
  "quality": {
    "calls30d": 2,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-10-11T10:15:44.706Z"
  },
  "metadata": {
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "html": "<h1>Hello</h1><p>World</p>",
              "url": "https://example.com/page"
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "billed": true,
              "markdown": "# Hello\n\nWorld",
              "ok": true,
              "receipt_id": "rcpt_01EXAMPLE000000000000000",
              "title": "Hello",
              "warnings": []
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "additionalProperties": false,
                  "examples": [
                    {
                      "html": "<h1>Hello</h1><p>World</p>",
                      "url": "https://example.com/page"
                    }
                  ],
                  "properties": {
                    "html": {
                      "description": "HTML document to convert to markdown. The handler does not fetch it.",
                      "examples": [
                        "<h1>Hello</h1><p>World</p>"
                      ],
                      "maxLength": 200000,
                      "minLength": 1,
                      "type": "string"
                    },
                    "url": {
                      "description": "Optional base URL used only to resolve relative links. Omit it when the HTML has no relative URLs.",
                      "examples": [
                        "https://example.com/page"
                      ],
                      "maxLength": 2048,
                      "type": "string"
                    }
                  },
                  "required": [
                    "html"
                  ],
                  "type": "object"
                },
                "bodyType": {
                  "enum": [
                    "json",
                    "form-data",
                    "text"
                  ],
                  "type": "string"
                },
                "method": {
                  "enum": [
                    "POST"
                  ],
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method",
                "bodyType",
                "body"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "additionalProperties": false,
                  "examples": [
                    {
                      "billed": true,
                      "markdown": "# Hello\n\nWorld",
                      "ok": true,
                      "receipt_id": "rcpt_01EXAMPLE000000000000000",
                      "title": "Hello",
                      "warnings": []
                    }
                  ],
                  "properties": {
                    "billed": {
                      "examples": [
                        true
                      ],
                      "type": "boolean"
                    },
                    "markdown": {
                      "examples": [
                        "# Hello\n\nWorld"
                      ],
                      "type": "string"
                    },
                    "ok": {
                      "const": true,
                      "examples": [
                        true
                      ],
                      "type": "boolean"
                    },
                    "receipt_id": {
                      "examples": [
                        "rcpt_01EXAMPLE000000000000000"
                      ],
                      "type": "string"
                    },
                    "title": {
                      "examples": [
                        "Hello"
                      ],
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "warnings": {
                      "default": [],
                      "examples": [
                        []
                      ],
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    }
                  },
                  "required": [
                    "ok",
                    "receipt_id",
                    "billed",
                    "title",
                    "markdown"
                  ],
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "agentshelf.syntexa.ch",
    "manifest_name": "agentshelf.syntexa.ch",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {
      "billed": true,
      "markdown": "# Hello\n\nWorld",
      "ok": true,
      "receipt_id": "rcpt_01EXAMPLE000000000000000",
      "title": "Hello",
      "warnings": []
    },
    "type": "string"
  }
}