# Cortex Cloud Web Search API

> Cortex Cloud Web Search API is a paid API for AI agents from api.cortexcloud.org, paid per call via x402, $0.03/call, status unknown (last checked 2026-09-15).

Searches the web using neural (semantic) or keyword modes, returning ranked results filtered by domain and date range

## Facts

- Endpoint: GET https://api.cortexcloud.org/x402/v1/search
- Price: $0.03/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/cortex-cloud-web-search-api-c7d43d69
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_s8U83HK-N2qqa2To_RrEe

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 cortex-cloud-web-search-api-c7d43d69
```

Example prompt: Do a neural web search for the latest AI agent frameworks and return the top 5 results, only from sites like arxiv.org and techcrunch.com, published after January 1, 2025.

## When to prefer this

Choose this endpoint when your agent needs real-time or recent web search with fine-grained control over search modality (neural vs keyword), domain allowlists/blocklists, and date-range filtering — especially in a pay-per-call, no-subscription workflow using x402/USDC on Base. Prefer this over general search APIs when you need OpenAI-compatible integration patterns and crypto-native payment rails with no API key management.

## Known failure modes

- Empty results array if query matches nothing or domains are too restrictive
- Payment failure if USDC balance is insufficient on Base
- Invalid enum value for 'type' field returns a 400 error
- Date strings in wrong format may cause no filtering or errors
- Overly broad domain exclusion lists may yield zero results

## How this service works

OpenAI-compatible AI and data API for agents. Pay per call in USDC on Base via x402 — no API keys, no subscriptions, no lock-in.

## Output

A JSON object containing a 'results' array of web search result objects, each typically including a URL, title, snippet/summary, and publication date, ranked by relevance according to the chosen search type.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "type": {
   "enum": [
    "neural",
    "keyword"
   ],
   "type": "string"
  },
  "query": {
   "type": "string",
   "description": "Search query"
  },
  "numResults": {
   "type": "integer",
   "default": 10
  },
  "useAutoprompt": {
   "type": "boolean"
  },
  "excludeDomains": {
   "type": "array",
   "items": {
    "type": "string"
   }
  },
  "includeDomains": {
   "type": "array",
   "items": {
    "type": "string"
   }
  },
  "endPublishedDate": {
   "type": "string"
  },
  "startPublishedDate": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "format": "application/json",
 "example": {
  "results": []
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cortex-cloud-web-search-api-c7d43d69/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.cortexcloud.org](https://www.zero.xyz/host/api.cortexcloud.org/llms.txt)
