# OPX x402 Search Router

> OPX x402 Search Router is a paid API for AI agents from opx-status.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-11).

Routes web-search tasks to the best-performing x402 provider based on real-time probe data, intent, freshness, budget, and latency constraints

## Facts

- Endpoint: GET https://opx-status.dev/api/route?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/opx-x402-search-router-8e3b40d8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_potWn1IqGDK1kRlkbFNhJ

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 opx-x402-search-router-8e3b40d8
```

Example prompt: Which x402 search provider should I use right now for a news search — something fresh from the last week, with a budget under $0.02 and latency under 500ms?

## When to prefer this

Use this endpoint when you need to dynamically select the best-performing x402 web search provider at call time rather than hardcoding a specific provider. It is especially valuable when you want to factor in real-world probe latency, budget caps, freshness requirements, and intent type simultaneously, and when you want built-in fallback options if the primary recommendation fails.

## Known failure modes

- Missing required 'task' query parameter returns a validation error
- Unsupported intent or freshness enum value causes a 400 bad request
- No provider available within budget or latency constraints may return empty or low-confidence recommendations
- Stale probe data may reduce confidence score and reliability of recommendation
- Payment failure or x402 auth issue blocks access entirely

## How this service works

OPX builds machine-facing infrastructure and paid tools for x402 commerce. Its current live tool helps agents choose between tested x402 web-search providers before spending using recent paid performance evidence.

## Output

Returns a JSON object with the recommended primary provider (name, upstream, confidence score), a ranked list of fallback providers, a decision ID for traceability, a feedback token and outcome URL for reporting results, and the echoed request parameters (intent, freshness, budget).

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "task"
     ],
     "properties": {
      "q": {
       "type": "string",
       "description": "Optional query context. Current routing is intent-level, not exact-query pre-execution."
      },
      "task": {
       "enum": [
        "web-search"
       ],
       "type": "string",
       "description": "Routing task."
      },
      "budget": {
       "type": "number",
       "description": "Maximum downstream provider price in USD."
      },
      "intent": {
       "enum": [
        "web",
        "news",
        "research",
        "known-page",
        "company"
       ],
       "type": "string",
       "description": "Type of search job to route."
      },
      "freshness": {
       "enum": [
        "any",
        "day",
        "week",
        "month"
       ],
       "type": "string",
       "description": "Preferred freshness class."
      },
      "max_latency_ms": {
       "type": "number",
       "description": "Maximum measured p50 downstream latency in milliseconds."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "task": "web-search",
  "primary": {
   "score": 84.1,
   "provider": "Exa",
   "upstream": "exa",
   "confidence": 0.55
  },
  "request": {
   "intent": "news",
   "freshness": "week",
   "budget_usd": 0.02
  },
  "feedback": {
   "token": "opaque-paid-client-token",
   "outcome_url": "https://opx-status.dev/api/outcome",
   "max_attempts": 5
  },
  "fallbacks": [
   {
    "provider": "Vaaya",
    "upstream": "brave"
   },
   {
    "provider": "Agent402",
    "upstream": "independent-index"
   }
  ],
  "confidence": 0.5,
  "decision_id": "3c51d4e4-88b4-4b3e-9a95-1d213aa37f85"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/opx-x402-search-router-8e3b40d8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from opx-status.dev](https://www.zero.xyz/host/opx-status.dev/llms.txt)
