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.
POST
https://174-138-26-48.sslip.io/v1/html-to-markdownUptime100% 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
- 174-138-26-48.sslip.io/v1/document-to-markdownConvert one PDF or Word .docx file (up to 10 MB) to Markdown. Send JSON {data: base64, filename?} or multipart/form-data with a file field, or the raw bytes with Content-Type application/pdf. Text-layer PDFs only (no OCR), up to 300 pages. Optional format=markdown|text|json. Failed conversions are not charged.0.003
- 174-138-26-48.sslip.io/v1/url-to-markdownFetch one public web page and return its main content as clean Markdown (Readability-style extraction strips navigation, ads, cookie banners and footers). http/https only, private and metadata addresses refused, 5 MB / 15 s / 5 redirects. Optional format=markdown|text|json and extract=article|full. Fetch or conversion failures are not charged.0.002
