# Revenue Swarm x402 URL Contents Fetcher

> Revenue Swarm x402 URL Contents Fetcher is a paid API for AI agents from eu-tender-x402-v3-production.up.railway.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

Fetches and returns the text content of any public HTTP(S) URL, paid per-call via x402 USDC on Base

## Facts

- Endpoint: GET https://eu-tender-x402-v3-production.up.railway.app/api/url-contents?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/revenue-swarm-x402-url-contents-fetcher-d8a44523
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_iqcOxj4Bf9fLdagkwTjKa

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 revenue-swarm-x402-url-contents-fetcher-d8a44523
```

Example prompt: Can you fetch the text content from https://example.com and tell me what the page says, including its title and description?

## When to prefer this

Use this endpoint when you need to fetch raw text content from any public URL in a pay-per-call model without setting up your own scraping infrastructure. It is ideal for agents that need on-demand, one-off web page retrieval paid with USDC via x402 on Base, especially when operating within the Revenue Swarm ecosystem for B2B intelligence tasks like reading tender documents or inspecting public web pages.

## Known failure modes

- URL is not publicly accessible or requires authentication — upstream_status reflects the error
- URL does not exist or returns 404 — ok will be false with upstream_status 404
- Content is too large and gets truncated — truncated flag set to true
- Non-HTML content types (e.g. PDFs, binary files) may not yield readable text
- Network timeouts or upstream server errors — non-200 upstream_status returned
- Invalid or malformed URL input — request fails with validation error

## How this service works

Pay-per-call B2B sales lead and procurement intelligence plus Base wallet data for agents. Search EU tenders/RFPs or inspect a Base wallet. Payments use x402 USDC on Base.

## Output

Returns a JSON object with the extracted page text, title, meta description, content type, final URL (after any redirects), number of redirects, upstream HTTP status code, whether the content was truncated, and the original requested URL. Also includes a generated_at timestamp and product label.

## 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": "Public HTTP(S) URL to retrieve"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "text": {
       "type": "string"
      },
      "title": {
       "type": [
        "string",
        "null"
       ]
      },
      "product": {
       "type": "string"
      },
      "final_url": {
       "type": "string"
      },
      "redirects": {
       "type": "integer"
      },
      "truncated": {
       "type": "boolean"
      },
      "description": {
       "type": [
        "string",
        "null"
       ]
      },
      "content_type": {
       "type": [
        "string",
        "null"
       ]
      },
      "generated_at": {
       "type": "string"
      },
      "requested_url": {
       "type": "string"
      },
      "upstream_status": {
       "type": "integer"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "text": "Example Domain...",
  "title": "Example Domain",
  "product": "URL Contents",
  "requested_url": "https://example.com",
  "upstream_status": 200
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/revenue-swarm-x402-url-contents-fetcher-d8a44523/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from eu-tender-x402-v3-production.up.railway.app](https://www.zero.xyz/host/eu-tender-x402-v3-production.up.railway.app/llms.txt)
