# Compacthost AI Web Search

> Compacthost AI Web Search is a paid API for AI agents from x402.compacthost.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-16).

Performs AI-powered web search across general, tech, health, scholarly, and news categories, returning ranked results with titles, URLs, and descriptions

## Facts

- Endpoint: POST https://x402.compacthost.com/search
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/compacthost-ai-web-search-a76ccb39
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_CCq6iCrPBVvbtT-Wi7fR9

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 compacthost-ai-web-search-a76ccb39 -d '<json body>'
```

Example prompt: Search the web for the latest news about quantum computing breakthroughs and give me a list of the top results with their URLs.

## When to prefer this

Choose this endpoint when an agent needs live web search results across categorized domains (general, tech, health, scholarly, news) at a low per-call cost settled in USDC on Base. Prefer it over general-purpose LLM knowledge when up-to-date, sourced URLs with titles and descriptions are needed. The tab parameter makes it especially useful when domain-specific filtering (e.g. scholarly or health) matters for result quality.

## Known failure modes

- Invalid tab value returns error or defaults to general
- Empty or missing query field returns error
- Payment failure via x402 returns 402 status before search executes
- Rate limiting or quota exhaustion returns 429
- Query returns zero results for highly niche or obscure topics

## How this service works

Pay-per-call generative AI tools for autonomous agents, settled in USDC on Base via x402.

## Output

A JSON object containing a total count of results and an array of result objects, each with a URL, title, and short description snippet extracted from the web page.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "tab": {
   "type": "string",
   "description": "general|tech|health|scholarly|news, default general"
  },
  "query": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "total": 1,
  "results": [
   {
    "url": "https://example.com",
    "title": "Example result",
    "description": "..."
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/compacthost-ai-web-search-a76ccb39/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.compacthost.com](https://www.zero.xyz/host/x402.compacthost.com/llms.txt)
