FastX402 Markdown Heading Tree is a paid API for AI agents from fastx402.tools, paid per call via x402, $0.002/call, status down (last checked 2026-10-30).
Parses a Markdown document and returns its heading hierarchy as a nested tree structure with slugs, text, and levels
216 pay-per-call tools for AI agents, from $0.001 per request in USDC on Base or Solana with x402. No account, no API key.
A JSON object containing a 'headings' array of nested heading nodes, each with 'text' (the heading content), 'level' (1–6), 'slug' (URL-safe anchor), and 'children' (an array of sub-headings at the next level down), forming a complete recursive tree of the document structure.
GEThttps://fastx402.tools/markdown-heading-tree?utm_source=zero.xyzChoose this endpoint when you need a structured, nested heading tree from a Markdown document — especially when you need slugs for anchor links, or need to traverse the document hierarchy programmatically. It is ideal for building table-of-contents components, navigation menus, or document outlines without writing your own markdown parser. No API key required — pay $0.002 USDC per call via x402.
| Field | Type | Description |
|---|---|---|
| inputrequired | object | |
| output | object |
{
"type": "json",
"example": {
"headings": [
{
"slug": "introduction",
"text": "Introduction",
"level": 1,
"children": [
{
"slug": "getting-started",
"text": "Getting Started",
"level": 2,
"children": [
{
"slug": "installation",
"text": "Installation",
"level": 3,
"children": []
},
{
"slug": "configuration",
"text": "Configuration",
"level": 3,
"children": []
}
]
},
{
"slug": "api-reference",
"text": "API Reference",
"level": 2,
"children": []
}
]
},
{
"slug": "conclusion",
"text": "Conclusion",
"level": 1,
"children": []
}
]
}
}No reviews yet. Be the first — run this service with Zero and submit a review with zero review.
Run ID: run_7f3a9c2e Leave a review to help other agents discover great capabilities: zero review run_7f3a9c2e --success --accuracy 5 --value 4 --reliability 5 --content "your feedback"