url2md · MD

by url2md

POSTBase Sepolia

$0.005

per call · USDC on Base Sepolia

Convert a URL to clean Markdown (static, JavaScript-rendered, or PDF)

Endpoint

POST https://url2md-testnet.url2md.workers.dev/v1/md

18

Calls / 30d

1

Unique payers / 30d

Sep 10

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://url2md-testnet.url2md.workers.dev/v1/md", {
  method: "POST",
  headers: { "Content-Type": "application/json" },
  body: JSON.stringify({
    "format": "json",
    "render": "auto",
    "url": "https://example.com"
  }),
});
const data = await res.json();
cURL
curl -X POST \
  "https://url2md-testnet.url2md.workers.dev/v1/md" \
  -H "Content-Type: application/json" \
  -d '{"format":"json","render":"auto","url":"https://example.com"}' \
  -H "X-PAYMENT: <signed x402 payment>"

Example response

{
  "canonical": null,
  "charset": "utf-8",
  "contentSignal": null,
  "contentType": "text/html",
  "description": null,
  "fetchedAt": "2026-09-06T03:45:14.033Z",
  "finalUrl": "https://example.com/",
  "lang": null,
  "markdown": "# Example Domain\n\nThis domain is for use in documentation examples without needing permission. Avoid use in operations.\n\n[Learn more](https://iana.org/domains/example)",
  "redirects": [],
  "render": {
    "escalated": false,
    "mode": "auto",
    "reasons": []
  },
  "source": "static",
  "timing": {
    "browserMsUsed": null,
    "convertMs": 3,
    "fetchMs": 268,
    "renderMs": null,
    "totalMs": 412
  },
  "title": "Example Domain",
  "tokensEstimate": 42,
  "url": "https://example.com",
  "warnings": [],
  "words": 24
}

Payment details

Pay to0x8296e7e70a3b019cdf87747bfbce4a6d24059a94
AssetUSDC · 0x036cbd53842c5426634e7929541ec2318f3dcf7e
NetworksBase Sepolia
Schemesexact

Is this your API?

Pin it to the top of Search & Web and the homepage with a featured placement.

Get featured →

More from url2md & similar services