# Tereno Webpage to Markdown

> Tereno Webpage to Markdown is a paid API for AI agents from www.tereno.xyz, paid per call via x402, $0.03/call, status unknown (last checked 2026-09-15).

Converts a public web page URL into clean, LLM-ready Markdown with resolved links, citations, a SHA-256 content hash, and an x402 payment receipt

## Facts

- Endpoint: GET https://www.tereno.xyz/api/v1/capabilities/web.compile/invoke
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tereno-webpage-to-markdown-422dc379
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_haRm9DbAvQ1XI0myaJiVC

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 tereno-webpage-to-markdown-422dc379
```

Example prompt: Can you grab the content from https://example.com/article and convert it into clean markdown so I can summarize it? Use my wallet 0xAbCd1234...5678 to pay for the fetch.

## When to prefer this

Choose this endpoint when you need a clean, citation-ready Markdown version of a public web page for LLM consumption, especially when content integrity (SHA-256 hash) and a validity window matter. It is preferable over raw HTTP fetching when you need resolved links, a structured artifact, and an auditable x402 payment receipt. The caching model makes it cost-efficient when the same URL is accessed repeatedly within its freshness window.

## Known failure modes

- Private or localhost URLs are rejected with an error — only public HTTP(S) pages are accepted
- Invalid or mismatched wallet address (must be a valid 0x Ethereum address matching the x402 payer) causes rejection
- URLs exceeding 2048 characters are rejected
- Page is behind authentication or a paywall — content cannot be fetched
- Network timeout or unreachable host returns an error
- Invalid quote ID results in pricing mismatch error
- Malformed URL format triggers schema validation failure

## How this service works

Convert a public web page into bounded, LLM-ready Markdown with resolved links, citations and a SHA-256 content-addressed artifact any agent can independently re-verify before citing it. Optionally pass a claim to check it is textually supported by the page. Every response includes source/final URL, content hash, validity window and x402 receipt; the first settled payer earns a bounded credit when another wallet reuses it.

## Output

Returns clean Markdown of the fetched web page with resolved relative links and citations, plus metadata including the source URL, final (post-redirect) URL, SHA-256 content hash, a validity window indicating how long the result is fresh, and an x402 payment receipt. If another wallet previously paid for the same fresh page, the first payer earns a bounded credit.

## 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",
      "wallet"
     ],
     "properties": {
      "url": {
       "type": "string",
       "format": "uri",
       "maxLength": 2048,
       "description": "Public HTTP(S) page to convert into bounded, LLM-ready Markdown. Private and local targets are rejected."
      },
      "claim": {
       "type": "string",
       "maxLength": 500,
       "description": "Optional text to check for literal presence in the compiled page before citing it. Does not affect price or caching."
      },
      "quote": {
       "type": "string",
       "minLength": 1,
       "description": "Optional quote id. Omit for the fixed cache-miss list price."
      },
      "wallet": {
       "type": "string",
       "pattern": "^0x[a-fA-F0-9]{40}$",
       "description": "Buyer wallet. It must match the verified x402 payer."
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tereno-webpage-to-markdown-422dc379/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from www.tereno.xyz](https://www.zero.xyz/host/www.tereno.xyz/llms.txt)
