Skip to content
Fourohtwo

Convert one caller-supplied HTML document to Markdown

174-138-26-48.sslip.io/v1/html-to-markdown

Convert one caller-supplied HTML document to Markdown. The HTML is sent in the JSON body and is not fetched from the network.

BaseAnswering
POSThttps://174-138-26-48.sslip.io/v1/html-to-markdown

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://174-138-26-48.sslip.io/v1/html-to-markdown", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"baseUrl":"https://example.com/docs/","html":"<html><head><title>HTML Pack demo</title></head><body><h1>HTML Pack</h1><p>Converts caller-supplied HTML to Markdown.</p><ul><li>Tables and lists</li><li>Relative links resolved with baseUrl</li></ul></body></html>"}),
});
console.log(await res.json());

Example input

{
  "baseUrl": "https://example.com/docs/",
  "html": "<html><head><title>HTML Pack demo</title></head><body><h1>HTML Pack</h1><p>Converts caller-supplied HTML to Markdown.</p><ul><li>Tables and lists</li><li>Relative links resolved with baseUrl</li></ul></body></html>"
}

More from HTML Pack