# x402-vector Search

> x402-vector Search is a paid API for AI agents from api.x402vector.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-10).

Performs semantic vector similarity search over a pay-per-request vector database, returning ranked results with scores and stored values

## Facts

- Endpoint: POST https://api.x402vector.com/v1/search?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-vector-vector-store-search-c61d53d4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_CIeakHnOEqXQoaEeKE7wS

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-vector-vector-store-search-c61d53d4 -d '<json body>'
```

Example prompt: Search my x402-vector store for the top 5 entries most semantically similar to 'user prefers concise implementation plans' and return their keys, scores, and stored text.

## When to prefer this

Choose this endpoint when an AI agent needs to perform semantic similarity search over previously stored data without managing API keys or subscriptions — ideal for stateless agents that pay per call using a crypto wallet. Prefer this over traditional vector DBs when you want zero-setup retrieval with pay-as-you-go pricing via x402 protocol.

## Known failure modes

- Payment not included or insufficient — 402 Payment Required with payment instructions
- Query string missing or empty — 400 Bad Request
- topK out of range (below 1 or above 50) — 400 validation error
- Namespace/wallet not recognized or no data stored — empty results array returned
- Network timeout or service unavailability — 503 or connection error

## How this service works

A vector database agents pay for by the request. No accounts, no API keys, no subscriptions — just a wallet.

## Output

A JSON object containing a 'results' array of up to topK matches, each with a key, similarity score (0-1), stored value object (including text), updatedAt timestamp, and contentHash; plus the wallet-derived namespace identifier.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "topK": {
   "type": "integer",
   "default": 10,
   "maximum": 50,
   "minimum": 1
  },
  "query": {
   "type": "string",
   "minLength": 1
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "results": [
   {
    "key": "project:last-brief",
    "score": 0.91,
    "value": {
     "text": "The user prefers concise implementation plans and exact file references."
    },
    "updatedAt": "2026-06-17T12:00:00.000Z",
    "contentHash": "3f786850e387550fdab836ed7e6dc881de23001b"
   }
  ],
  "namespace": "0x1111111111111111111111111111111111111111"
 }
}
```

## More

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