# BaseLens Web Page to Markdown Fetcher

> BaseLens Web Page to Markdown Fetcher is a paid API for AI agents from baselens.imac2014ville.workers.dev, paid per call via x402, $0.004/call, status unknown (last checked 2026-10-12).

Fetches a web page by URL and converts its content to clean markdown text, with optional character truncation.

## Facts

- Endpoint: GET https://baselens.imac2014ville.workers.dev/fetch?utm_source=zero.xyz
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/baselens-web-page-to-markdown-fetcher-6c5a007c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_oE7ejpl0sCg7UQoWtCPo6

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 baselens-web-page-to-markdown-fetcher-6c5a007c
```

Example prompt: Can you fetch the webpage at https://example.com/article and give me its content as clean markdown? Truncate it to 10000 characters if it's really long.

## When to prefer this

Choose this endpoint when you need to fetch and read a web page's content as clean markdown without setting up API keys or subscriptions — ideal for AI agents that need to read arbitrary URLs on a pay-per-call basis via x402/USDC on Base. Prefer it over traditional scraping APIs when operating in a Web3-native or x402-payment context.

## Known failure modes

- Invalid or unreachable URL returns an error response with ok:false
- Payment not received or insufficient USDC results in 402 Payment Required
- Very large pages may be truncated even without a maxChars param (default 50000 char limit)
- Pages with bot protection (Cloudflare, CAPTCHAs) may return empty or partial content
- Paywalled pages will only return publicly visible content

## How this service works

Honeypot check and rug pull check for Base tokens (is this token safe?), new token launches feed for snipers, cheapest cloud GPU prices, web page to markdown scraper. Also tx explainer, wallet balances, x402 checker. No API key: pay USDC on Base per call via x402.

## Output

A JSON object with 'ok' (boolean success flag), 'title' (the page title), 'markdown' (the full or truncated page content as markdown), 'truncated' (boolean indicating if content was cut), and 'wordCount' (integer word count of the extracted text).

## 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": "http(s) URL to fetch"
      },
      "maxChars": {
       "type": "number",
       "description": "Truncate markdown to this many characters (default 50000)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "title": "Example Domain",
  "markdown": "# Example Domain\n\nThis domain is for use in illustrative examples...",
  "truncated": false,
  "wordCount": 30
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/baselens-web-page-to-markdown-fetcher-6c5a007c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from baselens.imac2014ville.workers.dev](https://www.zero.xyz/host/baselens.imac2014ville.workers.dev/llms.txt)
