# Inferrail Web Read

> Inferrail Web Read is a paid API for AI agents from inferrail-cost-gateway.onrender.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-31).

Fetches a single public web page and returns its content as clean markdown, charged at $0.002 USDC per successfully delivered page via x402 on Base.

## Facts

- Endpoint: GET https://inferrail-cost-gateway.onrender.com/read/v1/page?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/inferrail-web-read-3a9952a1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BznmVjtR5zxmhQOesUxdn

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 inferrail-web-read-3a9952a1
```

Example prompt: Can you read the page at https://example.com/article and give me the full content as clean text? I only want to pay if it actually loads.

## When to prefer this

Choose this endpoint when an agent needs to read the human-readable text of a single public web page and convert it to clean markdown, especially in cost-sensitive agentic workflows where you only want to pay for successfully delivered pages. The idempotent retry mechanism (same url + request_id = no double charge) makes it safe for unreliable networks. Prefer this over general-purpose scraping services when operating on the x402/Base payment rail or when per-page micropayment billing is preferred over subscription scraping APIs.

## Known failure modes

- Target site returns a 4xx or 5xx error — not charged, error status returned
- Target site blocks automated access or returns a CAPTCHA — not charged
- URL is malformed or exceeds 2048 characters — validation error returned
- Network timeout reaching target site — not charged
- Payment failure via x402 — request not fulfilled

## How this service works

Paid services for AI agents over x402 on Base and MPP on Tempo. Inferrail Web Read: one public web page as clean markdown, $0.002 per delivered page, refusals and target-site errors never charged, a retry never pays twice. Inferrail Hosted: one dollar budget shared by every agent and process using a workspace key (250 governed runs a month free, then $0.001/run in x402 credits).

## Output

Returns a JSON object containing the original URL, the final URL after redirects, the page title, the full page content rendered as clean markdown, a word count, a SHA256 hash of the content for deduplication, the fetch timestamp, and a receipt with the price paid, your request_id echo, and a payment reference. Refusals and target-site errors are not charged.

## 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",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "title": "PageRequest",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "title": "Url",
       "maxLength": 2048,
       "description": "Public http(s) URL to read"
      },
      "request_id": {
       "type": "string",
       "title": "Request Id",
       "default": null,
       "maxLength": 128,
       "description": "Your id, echoed back. Retrying with the same url and request_id within the recovery window returns the paid page without a second charge."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "url",
      "final_url",
      "content_markdown",
      "word_count",
      "content_sha256"
     ],
     "properties": {
      "url": {
       "type": "string"
      },
      "title": {
       "type": "string"
      },
      "receipt": {
       "type": "object",
       "properties": {
        "price_usd": {
         "type": "string"
        },
        "request_id": {
         "type": "string"
        },
        "payment_ref": {
         "type": "string"
        }
       }
      },
      "final_url": {
       "type": "string"
      },
      "fetched_at": {
       "type": "string"
      },
      "word_count": {
       "type": "integer"
      },
      "content_sha256": {
       "type": "string"
      },
      "content_markdown": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "url": "https://example.com/",
  "title": "Example Domain",
  "receipt": {
   "price_usd": "0.002",
   "payment_ref": "0xpayer:0xnonce"
  },
  "final_url": "https://example.com/",
  "fetched_at": "2026-10-16T12:00:00Z",
  "word_count": 28,
  "content_sha256": "3f1c…",
  "content_markdown": "# Example Domain\n\nThis domain is for use in examples..."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/inferrail-web-read-3a9952a1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from inferrail-cost-gateway.onrender.com](https://www.zero.xyz/host/inferrail-cost-gateway.onrender.com/llms.txt)
