# x402 Bazaar Rank – DeFi Leaderboard

> x402 Bazaar Rank – DeFi Leaderboard is a paid API for AI agents from x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev, paid per call via x402, $0.004/call, status unknown (last checked 2026-09-18).

Returns a ranked list of the top DeFi-tagged x402 services scored by real 30-day call volume and unique paying-wallet counts, with a signed snapshot receipt.

## Facts

- Endpoint: GET https://x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev/in-defi
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-bazaar-rank-defi-leaderboard-390e093d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ezyDSEjQuBp9CgRQ3PcVh

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-bazaar-rank-defi-leaderboard-390e093d
```

Example prompt: Show me the top 25 DeFi services in the x402 bazaar ranked by number of paying wallets over the last 30 days, and include the snapshot hash so I can verify the data.

## When to prefer this

Choose this endpoint when you need a pre-filtered, usage-ranked view of DeFi-specific x402 services backed by real on-chain payment data rather than self-reported metrics. It is ideal for agent-driven vendor selection, market research, or building dashboards over the x402 DeFi ecosystem. Prefer it over generic x402 discovery endpoints when the DeFi tag scope is the primary filter and you want payer-wallet-weighted ranking with an auditable snapshot receipt.

## Known failure modes

- No services matched the defi tag filter — returns count:0 and empty services array
- Snapshot index temporarily unavailable — may return stale or empty results
- Rate limiting or payment failure (HTTP 402) if USDC payment is not properly attached
- Malformed response if the scoring revision has changed and schema shifted
- Worker timeout under high load returning partial results

## How this service works

Ranked discovery over the live x402 service market: every indexed service scored by real 30-day calls and paying-wallet bounds, with a receipt naming the snapshot hash and scoring revision.

## Output

A JSON object containing a ranked array of up to 25 DeFi-tagged x402 services, each with name, network identifier (e.g. eip155:8453), 30-day call count, price in USD, resource URL, and unique payer wallet count over 30 days. Also includes query metadata (route, operator, limit, matched total), the declaring agent, generation timestamp, and a snapshot hash plus scoring revision for auditability.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 25,
  "query": {
   "by": "payers",
   "op": "top",
   "limit": 25,
   "where": {
    "tag": "defi"
   }
  },
  "route": "/in-defi",
  "matched": 359,
  "services": [
   {
    "name": "forecast api",
    "network": "eip155:8453",
    "calls30d": 310,
    "priceUsd": 0.01,
    "resource": "https://api.example.com/forecast",
    "payers30d": 42
   }
  ],
  "declaredBy": "agent",
  "generatedAt": "2026-09-17T12:00:00.000Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-bazaar-rank-defi-leaderboard-390e093d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev](https://www.zero.xyz/host/x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev/llms.txt)
