# CodePulse API - Web Markdown Downloader

> CodePulse API - Web Markdown Downloader is a paid API for AI agents from codepulse-api.hahavoid0.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Fetches a URL and returns its content converted to clean Markdown format

## Facts

- Endpoint: POST https://codepulse-api.hahavoid0.workers.dev/web/markdown
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/codepulse-api-web-markdown-downloader-345395d7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ZZLsUIDvj6wo2HAwqySO8

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 codepulse-api-web-markdown-downloader-345395d7 -d '<json body>'
```

Example prompt: Can you fetch https://example.com and give me the content as clean markdown? I want to read through it and process the text.

## When to prefer this

Use this endpoint when you need to download and process the textual content of a public web page in Markdown format without managing API keys. Ideal for AI agents that need to read documentation, articles, or reference pages and work with clean structured text. Prefer over raw HTML scrapers when downstream processing benefits from Markdown formatting.

## Known failure modes

- URL is unreachable or returns non-200 status — supported: false or warnings populated
- Page is JavaScript-heavy SPA and content cannot be extracted — low confidence or empty markdown
- Invalid or malformed URL input — error response
- Paywalled or login-gated content — partial or empty markdown returned
- x402 payment not completed — request rejected before processing

## How this service works

Downloads HTML and compiles it to markdown locally using Turndown.

## Output

Returns a JSON object containing a 'markdown' field with the full page content rendered as Markdown, a 'supported' boolean indicating if the URL was processable, a 'confidence' field (e.g. 'high'), optional 'warnings' array, and a 'data_as_of' timestamp. Also includes a disclaimer noting the content is informational only.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "description": "Target URL to convert to markdown"
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {
   "markdown": "# Example Domain\n\nThis domain is for use in illustrative examples..."
  },
  "warnings": [],
  "supported": true,
  "confidence": "high",
  "data_as_of": "2026-06",
  "disclaimer": "Informational support only. Not legal, tax, medical, veterinary, or financial advice. Verify with the cited official source or a qualified professional before acting."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/codepulse-api-web-markdown-downloader-345395d7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from codepulse-api.hahavoid0.workers.dev](https://www.zero.xyz/host/codepulse-api.hahavoid0.workers.dev/llms.txt)
