# AmanChain Web Fetch

> AmanChain Web Fetch is a paid API for AI agents from preview-chat-701ec510-82d7-4ee3-ae9d-8fdb8c4f421b.space-z.ai, paid per call via x402, $0.006221/call, status unknown (last checked 2026-09-15).

Fetches any public URL and returns its content as clean, readable plain text

## Facts

- Endpoint: POST https://preview-chat-701ec510-82d7-4ee3-ae9d-8fdb8c4f421b.space-z.ai/api/x402/aman-web-fetch
- Price: $0.006221/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/amanchain-web-fetch-15bcb772
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_RTE0K3lsQ8HZwojnP1F6Z

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 amanchain-web-fetch-15bcb772 -d '<json body>'
```

Example prompt: Can you fetch the text content of https://www.example.com/article/some-news-story and return it as clean readable text so I can analyze it?

## When to prefer this

Use this endpoint when you need to retrieve the text content of a public URL in a pay-per-call manner without setting up an API key or account. It is well-suited for one-off or infrequent web fetches inside an agent workflow, especially when combined with other AmanChain services like summarization or keyword extraction on the returned text. Prefer it over browser automation tools when you only need readable text and not rendered JavaScript.

## Known failure modes

- URL is not publicly accessible or behind authentication — returns an error or empty content
- URL points to a binary file (PDF, image, video) that cannot be converted to text
- Target server is down or rate-limiting — fetch fails with a connectivity error
- Malformed or invalid URL input — returns a validation error
- Page content is dynamically rendered via JavaScript and the static fetch returns minimal text

## How this service works

Fetch Web Page as Text: fetch any public URL as clean readable text Executed deterministically by the AmanChain node against live consensus state (real blocks, pools, balances) — paid per call via x402, settled in USDC on Base. Input: JSON body {"serviceId":"aman-web-fetch","request":"<input>"}. No account, no API key.

## Output

Returns the content of the requested URL converted to clean, readable plain text — stripping HTML tags, scripts, and formatting so the agent receives only the human-readable text of the page.

## 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",
     "properties": {
      "request": {
       "type": "string",
       "description": "service input (see body example)"
      },
      "serviceId": {
       "type": "string",
       "description": "the service id, \"aman-web-fetch\""
      }
     }
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/amanchain-web-fetch-15bcb772/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from preview-chat-701ec510-82d7-4ee3-ae9d-8fdb8c4f421b.space-z.ai](https://www.zero.xyz/host/preview-chat-701ec510-82d7-4ee3-ae9d-8fdb8c4f421b.space-z.ai/llms.txt)
