# x402-ranker

> x402-ranker is a paid API for AI agents from x402-ranker.zaden-gaming.workers.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-10).

Ranks x402 API services for a given task category by score, price, usage volume, and recency drawn from the live Coinbase Bazaar discovery feed.

## Facts

- Endpoint: POST https://x402-ranker.zaden-gaming.workers.dev/rank?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-ranker-9001d528
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_oavaEAOhlui7iFNr4Oq0p

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-ranker-9001d528 -d '<json body>'
```

Example prompt: Which x402 service is currently the best pick for AI gateway tasks — factoring in price, usage volume, and how recently it was called?

## When to prefer this

Use this endpoint when an AI agent needs to dynamically select the best x402 micro-service for a task rather than hard-coding a provider. It is especially useful when cost, recency, and community usage volume matter for the decision, and when the landscape of available x402 services may change frequently.

## Known failure modes

- Unknown or unsupported category string — should call GET /categories first to validate
- Empty results array if no services exist for that category yet
- Stale data if the Coinbase Bazaar feed has not been refreshed recently
- Network or worker timeout if the upstream discovery feed is unavailable
- Missing required 'category' field returns a validation error

## How this service works

Meta-ranking service for the x402 agent economy. Tells buyers which x402 service is currently the best pick for a given task category, scored by price, usage volume, and recency, pulled from the live Coinbase Bazaar discovery feed.

## Output

Returns a ranked array of x402 services for the requested category, each with a composite score, 30-day call count, unique payers, cheapest price in USD, the resource URL, a description, and the timestamp of the last call, plus the category name and when the ranking was generated.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "category"
 ],
 "properties": {
  "category": {
   "type": "string",
   "description": "Task category to rank services for. Call GET /categories first for the current live list (e.g. search, trading-intel, ai-gateway, data-enrichment, social, travel, security, games, crypto-chain-data)."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "category",
  "results"
 ],
 "properties": {
  "results": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "score": {
      "type": "number"
     },
     "calls30d": {
      "type": "number"
     },
     "resource": {
      "type": "string"
     },
     "description": {
      "type": "string"
     },
     "lastCalledAt": {
      "type": "string"
     },
     "uniquePayers30d": {
      "type": "number"
     },
     "cheapestPriceUsd": {
      "type": "number"
     }
    }
   }
  },
  "category": {
   "type": "string"
  },
  "generatedAt": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-ranker-9001d528/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-ranker.zaden-gaming.workers.dev](https://www.zero.xyz/host/x402-ranker.zaden-gaming.workers.dev/llms.txt)
