# x402 Web Search – Search, Fetch & Extract (CSS Selector)

> x402 Web Search – Search, Fetch & Extract (CSS Selector) is a paid API for AI agents from search.cyberwarex.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-29).

Performs a web search and simultaneously fetches page text plus CSS-selector-matched elements from top results in a single call.

## Facts

- Endpoint: GET https://search.cyberwarex.com/search-extract?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-web-search-search-fetch-extract-css-selector-f660cd71
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_AA2SyPF3WjA5jQCG7fikg

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 x402-web-search-search-fetch-extract-css-selector-f660cd71
```

Example prompt: Search for 'best electric SUVs 2025' in the general category, fetch up to 3 result pages, and extract all 'table tr' elements from each page so I can compare specs side by side.

## When to prefer this

Choose this endpoint when you need both search result discovery AND structured data extraction from those pages in a single API call, eliminating the need for a separate fetch/scrape step. It is ideal when the target data is addressable by a CSS selector (tables, headings, links, list items). Prefer it over a plain search endpoint when you need page content, and over a raw fetch endpoint when you don't know the URLs in advance.

## Known failure modes

- CSS selector returns no matches on some pages (empty array for that result)
- Page behind JavaScript wall returns incomplete or empty text
- Query returns fewer than requested results if index coverage is low
- max_chars truncation may cut off content needed from long pages
- Rate limit or payment failure if x402 micropayment is not properly signed
- Pages with bot-blocking return 403 or empty body

## How this service works

Search, fetch and extract in one call: top results with page text and the elements matching a CSS selector.

## Output

Returns a combined response containing: the ranked search result URLs and metadata, the extracted readable text of each fetched page (truncated to max_chars), and the list of DOM elements matching the provided CSS selector found on each page.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "q",
      "selector"
     ],
     "properties": {
      "q": {
       "type": "string",
       "minLength": 1,
       "description": "Search query text."
      },
      "lang": {
       "type": "string",
       "default": "en"
      },
      "category": {
       "enum": [
        "general",
        "news"
       ],
       "type": "string",
       "default": "general"
      },
      "selector": {
       "type": "string",
       "description": "CSS selector to extract from each page, e.g. h1, table tr, a[href]."
      },
      "max_chars": {
       "type": "integer",
       "default": 4000,
       "maximum": 20000,
       "minimum": 500,
       "description": "Per-page text truncation."
      },
      "max_results": {
       "type": "integer",
       "default": 3,
       "maximum": 5,
       "minimum": 1,
       "description": "How many result pages to read (max 5)."
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-web-search-search-fetch-extract-css-selector-f660cd71/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from search.cyberwarex.com](https://www.zero.xyz/host/search.cyberwarex.com/llms.txt)
