# Delx Commerce — Markdown Heading Index

> Delx Commerce — Markdown Heading Index is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-01).

Parses Markdown text and returns a structured index of all headings with their levels and titles

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/markdown-heading-index?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-markdown-heading-index-5f6f5ec9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_SQW1uGfWD2kdkdWCYfp-q

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability delx-commerce-markdown-heading-index-5f6f5ec9 -d '<json body>'
```

Example prompt: 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'

## When to prefer this

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.

## Known failure modes

- 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

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

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.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "description": "UTF-8 text to encode, chunk, index, or analyze (caller-supplied only)."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "schema": "delx/util-markdown-heading-index/v1",
  "headings": [
   {
    "level": 1,
    "title": "Title"
   },
   {
    "level": 2,
    "title": "Section"
   }
  ],
  "truncated": false,
  "heading_count": 2
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-markdown-heading-index-5f6f5ec9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
