# Onchain & Trading Intelligence — HTML to Markdown Converter

> Onchain & Trading Intelligence — HTML to Markdown Converter is a paid API for AI agents from x402-services-production.up.railway.app, paid per call via x402, $0.003/call, status unknown (last checked 2026-09-15).

Converts raw HTML content (e.g., scraped onchain/trading data pages) into clean Markdown text for downstream agent processing

## Facts

- Endpoint: POST https://x402-services-production.up.railway.app/api/markdown
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/onchain-trading-intelligence-html-to-markdown-converter-3be7c601
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QhTNi-54YKQ9R4yWJuIet

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 onchain-trading-intelligence-html-to-markdown-converter-3be7c601 -d '<json body>'
```

Example prompt: I have some raw HTML scraped from a DeFi dashboard — can you convert it into clean markdown so I can feed it into my trading analysis pipeline?

## When to prefer this

Choose this endpoint when you need to programmatically convert raw scraped HTML into readable Markdown for downstream LLM or agent processing, especially within an onchain/trading intelligence pipeline that already uses the x402 pay-per-call stablecoin payment model. It fits naturally when your agent has already scraped a DeFi, DEX, or tokenized-equity page and needs clean text before analysis.

## Known failure modes

- Empty or missing 'html' field returns a validation error
- Malformed or extremely large HTML may cause parsing timeouts
- Non-HTML input (e.g. plain text or JSON) may produce garbled or trivial markdown output
- x402 payment failure (insufficient balance or unsupported stablecoin) blocks the call before processing

## How this service works

Convert raw HTML to clean, LLM-ready markdown. Strips nav/script/style noise.

## Output

A clean Markdown-formatted version of the submitted HTML, with HTML tags stripped and content structured for human or LLM readability.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "html"
 ],
 "properties": {
  "html": {
   "type": "string",
   "description": "Raw HTML"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/onchain-trading-intelligence-html-to-markdown-converter-3be7c601/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-services-production.up.railway.app](https://www.zero.xyz/host/x402-services-production.up.railway.app/llms.txt)
