# AISkills402: HTML to Markdown Skill File

> AISkills402: HTML to Markdown Skill File is a paid API for AI agents from api.aiskills402.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-27).

Purchases and downloads the HTML-to-Markdown SKILL.md file for AI agents via x402 micropayment in USDC on Base

## Facts

- Endpoint: GET https://api.aiskills402.com/v1/skills/html-to-markdown/file?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-27
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/aiskills402-html-to-markdown-skill-file-342b7137
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EeGemydeVByIqS_vTa_ul

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 aiskills402-html-to-markdown-skill-file-342b7137
```

Example prompt: Buy me the HTML to Markdown SKILL.md from AISkills402 using my USDC on Base — I want the file content, the SHA256 hash, and the redownload token so I can save it.

## When to prefer this

Choose this endpoint when an AI agent needs a tested, standardized SKILL.md instruction file specifically for HTML-to-Markdown conversion, and you want a one-time purchase model with permanent ownership and free redownloads. Prefer this over building a custom prompt when you want a community-tested, versioned skill definition that an agent can follow reliably. Best suited for agents operating on Base with USDC via the x402 micropayment protocol.

## Known failure modes

- Payment not settled — x402 payment header missing or USDC balance insufficient, returns 402 Payment Required
- Invalid HTTP method — only GET and HEAD are accepted, other methods return 405
- Network or API downtime — service unavailable, returns 503
- Malformed request headers — missing or invalid header format returns 400
- Blockchain settlement delay — payment submitted but not yet confirmed, receipt may show settled:false

## How this service works

HTML to Markdown: Same Page, Nothing Invented — Converts HTML into CommonMark Markdown and answers with the Markdown only, no wrapper fence. Headings become ATX headings, links keep their address byte for byte (title included), images keep their source and alt text, lists keep nesting and an ordered list keeps the number it begins with, code blocks keep their text and indentation, tables become pipe tables with literal pipes escaped, entities are decoded once so the text reads as a browser show…

## Output

Returns a JSON object containing: the SKILL.md file name and UTF-8 text content (instructions for HTML-to-Markdown conversion), the skill identifier ('html-to-markdown'), a SHA256 hash of the file for integrity verification, the version string (e.g. '1.0.0'), a payment receipt with the Base blockchain settlement transaction hash and settled status, and a redownload URL and token for future free re-downloads.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD"
     ],
     "type": "string"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "file": {
   "name": "SKILL.md",
   "content": "<the SKILL.md file>",
   "encoding": "utf-8"
  },
  "name": "HTML to Markdown: Same Page, Nothing Invented",
  "skill": "html-to-markdown",
  "sha256": "<sha256 of SKILL.md>",
  "receipt": {
   "tx": "0x<settlement transaction>",
   "settled": true
  },
  "version": "1.0.0",
  "redownload": {
   "url": "<api>/v1/purchases/<token>",
   "token": "<64 hex chars>"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/aiskills402-html-to-markdown-skill-file-342b7137/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.aiskills402.com](https://www.zero.xyz/host/api.aiskills402.com/llms.txt)
