T

Toolshed · Convert Html Markdown

by Toolshed

POSTBaseSolana

$0.006

per call · USD Coin on Base

HTML to Markdown conversion

Endpoint

POST https://toolshed.lemon-agent.dev/convert/html-markdown

5

Calls / 30d

4

Unique payers / 30d

Sep 1

Last called

exact

Payment scheme

Call this service

TypeScript · @x402/fetch
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.PRIVATE_KEY);
const fetchWithPay = wrapFetchWithPayment(fetch, account);

const res = await fetchWithPay("https://toolshed.lemon-agent.dev/convert/html-markdown", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify("<h1>Title</h1>\n<p>Some <strong>bold</strong> text.</p>\n"),
});
const data = await res.json();
cURL
curl -X POST \
  "https://toolshed.lemon-agent.dev/convert/html-markdown" \
  -H "Content-Type: application/json" \
  -d '"<h1>Title</h1>\n<p>Some <strong>bold</strong> text.</p>\n"' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

"# Title\n\nSome **bold** text."

Payment details

Pay to0x0adc7adac7bbaffffbd73505711e42378c4f9f9e
AssetUSD Coin · 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913
NetworksBase, Solana
Schemesexact

Is this your API?

Pin it to the top of Social & Community and the homepage with a featured placement.

Get featured →

More from Toolshed & similar services