# Losbeto Web Fetch — Public URL Retrieval via x402

> Losbeto Web Fetch — Public URL Retrieval via x402 is a paid API for AI agents from markets.losbeto.xyz, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-10).

Fetches any public HTTP/HTTPS URL and returns its content as clean JSON, including status, content type, final URL after redirects, and body text — paid per call in USDC via x402.

## Facts

- Endpoint: GET https://markets.losbeto.xyz/fetch?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/losbeto-web-fetch-public-url-retrieval-via-x402-ba4e1f16
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_orld5p0KlkfsR2oz-ym_2

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 losbeto-web-fetch-public-url-retrieval-via-x402-ba4e1f16
```

Example prompt: Can you fetch the contents of https://api.exchangerate.host/latest and return the response body so I can see the current exchange rates?

## When to prefer this

Use this endpoint when an AI agent needs to read a live public URL — a webpage, public REST API, or document — without setting up API keys or accounts. It is particularly useful for agents that need content beyond their training cutoff, need to browse links mid-task, or need to call a public API and get back a clean JSON-wrapped response. Payment is per-call in USDC via x402 so no subscription is required.

## Known failure modes

- Private or internal IP ranges refused with an error (no localhost, RFC1918 addresses)
- Non-public URLs or authenticated endpoints return access errors
- Very large response bodies may be truncated at the size cap
- Non-HTTP/HTTPS schemes are rejected
- Unreachable or offline URLs return a timeout or connection error
- Malformed URLs return validation errors

## How this service works

OpenAI-compatible LLM gateway at $0.005/call — change base_url, pay in USDC. Plus pay-per-call market data: multi-oracle price consensus, sentiment, forex, equities, commodities, Brazil macro (BCB/B3) and crypto. No API keys, no accounts. USDC on Base, Solana and Algorand via x402.

## Output

A JSON object containing the HTTP status code, content type, final URL after any redirects, and the full response body as text (size-capped). This lets the agent read live web content, public APIs, or documents that may be beyond its training cutoff.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "queryParams": {
     "type": "object",
     "required": [
      "url"
     ],
     "properties": {
      "url": {
       "type": "string",
       "description": "Public http/https URL to fetch (internal/private ranges refused)"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "example": {
     "type": "object",
     "description": "Fetch any public web page or API and get it back as clean JSON — status, content type, final URL after redirects and the body as text, size-capped. The mid-task primitive agents use to read a doc, open a link or pull a page beyond their training cutoff."
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/losbeto-web-fetch-public-url-retrieval-via-x402-ba4e1f16/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from markets.losbeto.xyz](https://www.zero.xyz/host/markets.losbeto.xyz/llms.txt)
