# AgentKit Data – URL to Markdown Converter

> AgentKit Data – URL to Markdown Converter is a paid API for AI agents from x402-apis-production.up.railway.app, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-20).

Fetches a public URL and returns its content as clean Markdown, paid per-call via USDC/x402

## Facts

- Endpoint: GET https://x402-apis-production.up.railway.app/v1/markdown?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentkit-data-url-to-markdown-converter-ae47ae54
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_c61t3Oozj-Njd-BQIJOGG

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 agentkit-data-url-to-markdown-converter-ae47ae54
```

Example prompt: Can you fetch the content of https://docs.example.com/getting-started and convert it to markdown so I can read it? Include the list of links found on the page.

## When to prefer this

Choose this endpoint when you need to retrieve and read the textual content of any public web page in a clean, LLM-friendly markdown format, especially within an agentic pipeline that requires pay-per-use microtransaction billing via x402/USDC rather than a subscription. It is ideal over raw HTML fetchers when you want pre-parsed, readable output without writing your own HTML-to-text parser, and over full web scrapers when you just need article or documentation text rather than structured data extraction.

## Known failure modes

- URL is not publicly accessible or requires authentication — fetch fails with non-200 status
- URL points to a binary file (PDF, image) not convertible to markdown — may return empty or partial markdown
- Page has heavy JavaScript rendering — server-side fetch may miss dynamic content
- maxChars below 500 or above 500000 — rejected as invalid parameter
- Network timeout on slow or unreachable domains — error response returned
- Paywalled or bot-blocked pages return truncated or empty content

## How this service works

Pay-per-call data APIs. Each call is paid with USDC on Base via x402 (HTTP 402). No account or API key.

## Output

Returns a JSON object containing the page's markdown-rendered content, title, excerpt, word count, language code, byline, site name, final (redirected) URL, fetch timestamp, a truncation flag, and optionally a list of absolute links found on the page. The markdown field contains the human-readable text of the page stripped of navigation and boilerplate.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "description": "Public http(s) URL to read"
      },
      "links": {
       "enum": [
        "true",
        "false"
       ],
       "type": "string",
       "description": "Include absolute link list"
      },
      "maxChars": {
       "type": "string",
       "description": "Max Markdown characters returned (500-500000, default 100000)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "url": "https://example.com",
  "lang": "en",
  "title": "Example Domain",
  "byline": null,
  "status": 200,
  "excerpt": "This domain is for use in documentation examples...",
  "finalUrl": "https://example.com/",
  "markdown": "This domain is for use in documentation examples without needing permission...",
  "siteName": null,
  "fetchedAt": "2026-10-23T12:00:00.000Z",
  "truncated": false,
  "wordCount": 19,
  "publishedTime": null
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentkit-data-url-to-markdown-converter-ae47ae54/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-apis-production.up.railway.app](https://www.zero.xyz/host/x402-apis-production.up.railway.app/llms.txt)
