Skip to content
Fourohtwo

Extract the heading outline from Markdown

markdown.openverbs.com/v1/toc

Extract the heading outline from Markdown — depth, text and a unique GitHub-style anchor slug for each heading. Optionally limit to a maximum heading depth.

BaseAnswering
POSThttps://markdown.openverbs.com/v1/toc

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

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://markdown.openverbs.com/v1/toc", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"markdown":"example","maxDepth":1}),
});
console.log(await res.json());

Example input

{
  "markdown": "example",
  "maxDepth": 1
}