# x402route

> x402route is a paid API for AI agents from x402route.vercel.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Routes a crypto data task to the best available paid x402 endpoint, returning a recommended endpoint plus scored alternatives based on uptime, popularity, and price.

## Facts

- Endpoint: POST https://x402route.vercel.app/v1/route
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402route-vercel-app-db4e9421
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JYY-ZE4G9FsYdR3kbFIu5

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 x402route-vercel-app-db4e9421 -d '<json body>'
```

Example prompt: I need to fetch real-time crypto price data — find me the best x402 endpoint for that task using balanced mode, so I get a good mix of price and quality.

## When to prefer this

Use this endpoint when an AI agent needs to dynamically discover and select the most appropriate paid x402 crypto data endpoint rather than hardcoding a specific provider. Ideal when cost, uptime, or quality optimization across multiple x402 providers is desired.

## Known failure modes

- No matching x402 endpoints found for the given task — returns empty or null recommendation
- Invalid routing mode specified — returns validation error
- Service unavailable or timeout on Vercel deployment — returns 5xx error
- Task description too vague to route accurately — returns low-confidence or generic result

## How this service works

x402route — find the best paid x402 endpoint for a crypto data task. Returns recommended endpoint + alternatives scored by uptime, popularity, price. Modes: balanced/cheapest/best_quality.

## Output

Returns a recommended x402 endpoint for the given crypto data task along with alternative endpoint options, each scored by uptime, popularity, and price. Indicates which mode (balanced, cheapest, or best_quality) was used to rank results.

## Example request

```json
{
 "input": {
  "body": {
   "task": "token_price",
   "params": {
    "chain": "base",
    "token_address": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"
   },
   "constraints": {
    "mode": "balanced",
    "max_price_usd": 0.01
   }
  },
  "type": "http",
  "method": "POST",
  "bodyType": "json"
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "reason",
  "source",
  "alternatives",
  "quality_score",
  "fallback_suggestion",
  "recommended_endpoint",
  "recommended_description"
 ],
 "properties": {
  "reason": {
   "type": "string"
  },
  "source": {
   "type": "string"
  },
  "alternatives": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "source",
     "endpoint",
     "price_usd",
     "description"
    ],
    "properties": {
     "source": {
      "type": "string"
     },
     "endpoint": {
      "type": "string"
     },
     "price_usd": {
      "type": "number"
     },
     "description": {
      "type": "string"
     }
    }
   }
  },
  "quality_score": {
   "type": "number"
  },
  "fallback_suggestion": {
   "type": "null"
  },
  "recommended_endpoint": {
   "type": "string"
  },
  "recommended_description": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402route-vercel-app-db4e9421/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402route.vercel.app](https://www.zero.xyz/host/x402route.vercel.app/llms.txt)
