# dotrockets x402 Web Search API

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

Returns web search results (URL, title, snippet) for a given query, payable per call in USDC via x402 with no API key required.

## Facts

- Endpoint: GET https://x402.dotrockets.com/v1/search
- Price: $0.04/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/dotrockets-x402-web-search-api-4b500032
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_tvpIPLZY9dz0WSilbsVM7

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 dotrockets-x402-web-search-api-4b500032
```

Example prompt: Search the web for 'best open-source LLM benchmarks 2024' and return the top 5 results with their URLs and snippets.

## When to prefer this

Choose this endpoint when your AI agent needs real-time web search results without requiring API key registration or a monthly subscription, and can pay $0.04 USDC per call via the x402 protocol on Base. Ideal for lightweight, pay-as-you-go agent workflows needing fresh web snippets.

## Known failure modes

- Missing required 'q' parameter returns an error
- Count outside 1-10 range may be clamped or rejected
- Payment failure via x402 (insufficient USDC balance) blocks the request
- No results found for very obscure or nonsensical queries
- Network or upstream search provider outage returns 5xx

## How this service works

Machine-payable APIs for AI agents over x402: cosmic live data, AI-visibility scoring, website screenshots, and scrape-to-markdown. Pay per call in USDC on Base. No API keys, no signup.

## Output

A JSON object containing the echoed query string and an array of up to 10 results, each with a URL, page title, and short text snippet summarizing the matched page.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "q"
 ],
 "properties": {
  "q": {
   "type": "string",
   "description": "Suchbegriff"
  },
  "count": {
   "type": "number",
   "description": "1-10 (Default 5)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "query": {
   "type": "string"
  },
  "results": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "url": {
      "type": "string"
     },
     "title": {
      "type": "string"
     },
     "snippet": {
      "type": "string"
     }
    }
   }
  }
 }
}
```

## More

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