# Website to RAG Pack

> Website to RAG Pack is a paid API for AI agents from freetier-agent-api.pages.dev, paid per call via x402, $0.015/call, status unknown (last checked 2026-11-20).

Converts any public web page URL into a markdown rendering, a RAG-ready retrieval index, and page metadata (title, description) in a single API call

## Facts

- Endpoint: GET https://freetier-agent-api.pages.dev/api/pack/website-to-rag?utm_source=zero.xyz
- Price: $0.015/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/website-to-rag-pack-75572abd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_twn5ta2g3jdPcf-YXKmD1

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 website-to-rag-pack-75572abd
```

Example prompt: Can you fetch https://en.wikipedia.org/wiki/Retrieval-augmented_generation and turn it into clean markdown plus a RAG index so I can answer questions from it?

## When to prefer this

Choose this endpoint when an agent needs to both read a web page as human-readable markdown AND prepare it for retrieval-augmented generation in a single call. It is ideal when you want page metadata (title, description) alongside structured content without chaining multiple API calls. Prefer it over a plain markdown converter when you need a RAG index, and over a raw scraper when you need clean, AI-ready output with metadata bundled together.

## Known failure modes

- URL is unreachable or returns a non-200 HTTP status — results may be empty or partial
- Private or paywalled pages that block headless access return limited or no content
- Very large pages may be truncated or slow to process
- Dynamic JavaScript-heavy pages may not render fully, producing incomplete markdown
- Invalid or malformed URL parameter returns an error response

## How this service works

FreeTier Website to RAG pack: Turn any web page into clean AI-ready data in one call: the page as markdown, a RAG-ready index for retrieval, and page metadata (title, description). Built for agents that need to read, quote and answer from a URL. Info: https://freetier-agent-api.pages.dev/packs/website-to-rag

## Output

Returns a JSON object containing: the page rendered as clean markdown, a RAG-ready retrieval index for embedding-based lookup, and page metadata including title and description. Also includes the input URL echoed back, a status summary, and any errors encountered.

## 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": "URL of the page to convert, e.g. https://example.com/about"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "meta": {
   "related": [
    {
     "url": "https://freetier-agent-api.pages.dev/packs/wallet-safety",
     "slug": "wallet-safety",
     "title": "Wallet Safety Scan"
    }
   ]
  },
  "pack": "website-to-rag",
  "input": {
   "url": "https://example.com"
  },
  "errors": [],
  "results": {},
  "summary": {
   "status": "ok"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/website-to-rag-pack-75572abd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from freetier-agent-api.pages.dev](https://www.zero.xyz/host/freetier-agent-api.pages.dev/llms.txt)
