{"uid":"cap_SQW1uGfWD2kdkdWCYfp-q","slug":"delx-commerce-markdown-heading-index-5f6f5ec9","name":"Delx Commerce — Markdown Heading Index","description":"Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.","url":"https://commerce.delx.ai/api/v1/x402/markdown-heading-index?utm_source=zero.xyz","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"text":{"type":"string","description":"UTF-8 text to encode, chunk, index, or analyze (caller-supplied only)."}}},"responseSchema":{"type":"json","example":{"schema":"delx/util-markdown-heading-index/v1","headings":[{"level":1,"title":"Title"},{"level":2,"title":"Section"}],"truncated":false,"heading_count":2}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_qIO05smoA4a3u9D-i4lLM","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Parses Markdown text and returns a structured index of all headings with their levels and titles","exampleAgentPrompt":"Can you extract and index all the headings from this markdown document so I can see the outline? Here's the text: '# Introduction\\n## Background\\n### Prior Work\\n## Methods\\n# Conclusion'","exampleUseCases":[{"title":"README outline extraction","prompt":"I have a long README.md file — can you pull out all the headings so I can see the document structure at a glance? Here's the full markdown text."},{"title":"Documentation table of contents","prompt":"Take this markdown documentation page and give me a structured list of all the section headings with their levels so I can build a table of contents."},{"title":"Markdown document navigation index","prompt":"I've got a big markdown article and I need to know all the H1, H2, and H3 headings in order — can you index them from this text?"}],"resultDescription":"A JSON object containing a schema identifier, an array of heading objects each with a numeric level (1–6) and title string, a boolean indicating whether the content was truncated, and the total heading count.","failureModes":["Empty or whitespace-only text input returns an empty headings array","Non-markdown plain text with no heading syntax returns zero headings","Extremely large documents may be truncated, indicated by truncated:true in the response","Malformed or non-UTF-8 encoded input may result in parsing errors","Payment failure via x402 protocol blocks the request before processing"],"whenToPreferThis":"Use this endpoint when you need a lightweight, pay-per-call extraction of Markdown heading structure without setting up any account or subscription. It is ideal for agents that occasionally need to parse document outlines from markdown text and want verifiable, exact-cost microtransactions via USDC on Base or Solana.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-01T00:54:03.472Z","isFirstParty":false,"canonicalSlug":"delx-commerce-markdown-heading-index-5f6f5ec9"}