# Markdown Stats Analyzer

> Markdown Stats Analyzer is a paid API for AI agents from api.x402node.dev, paid per call via x402, $0.0022/call, status unknown (last checked 2026-09-14).

Computes detailed statistics for markdown content including word count, character count, paragraphs, headings, code blocks, links, images, and estimated reading time.

## Facts

- Endpoint: GET https://api.x402node.dev/md/stats
- Price: $0.0022/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-x402node-dev-18ef063b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_y5cBdVrhIduJdWEtF8Hf9

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 api-x402node-dev-18ef063b
```

Example prompt: Can you analyze the stats for my markdown doc at https://raw.githubusercontent.com/myorg/myrepo/main/README.md — I need the word count, heading count, number of code blocks, and estimated reading time?

## When to prefer this

Use this endpoint when an AI agent needs to audit markdown documentation for length, structure complexity, or LLM ingest cost estimation. Ideal for pipelines that need to determine if a document is too long to fit in a context window, or when building tooling that reports on documentation quality and completeness.

## Known failure modes

- Invalid or unreachable URL returns an error response
- Empty or non-markdown content may return zero counts
- Malformed request body may return 400 error
- Network timeout if URL takes too long to fetch
- Very large documents may hit processing limits

## How this service works

Compute markdown stats: words, characters, paragraphs, headings, code blocks, links, images, reading time (200 wpm). Use url param or ?text=.... Built for AI agents auditing docs, estimating cost/length for LLM ingest. Accepts payment on Base or Solana — either network works.

## Output

Returns a JSON object with computed markdown statistics including word count, character count, paragraph count, heading count, code block count, link count, image count, and estimated reading time in minutes based on 200 words per minute reading speed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-x402node-dev-18ef063b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.x402node.dev](https://www.zero.xyz/host/api.x402node.dev/llms.txt)
