# P0 Agent Economy Index – /in-chain Route

> P0 Agent Economy Index – /in-chain Route is a paid API for AI agents from x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev, paid per call via x402, $0.032/call, status unknown (last checked 2026-10-20).

Returns ranked x402 services tagged 'chain', sorted by payer count over the last 30 days, with per-service call volume, price, and paying-wallet stats.

## Facts

- Endpoint: GET https://x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev/in-chain?utm_source=zero.xyz
- Price: $0.032/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/p0-agent-economy-index-in-chain-route-a0aaff5b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Q9CIvev6cmi-JWrpJw6DT

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 p0-agent-economy-index-in-chain-route-a0aaff5b
```

Example prompt: Show me the top 25 x402 services tagged 'chain', ranked by number of unique paying wallets over the last 30 days — I want to see which on-chain agent APIs are actually getting real traction.

## When to prefer this

Use this endpoint when you specifically need ranked discovery of x402 services filtered to the 'chain' tag, ordered by real paying-wallet activity (payers30d) over a 30-day window. Prefer it over generic web search or broader economy-index routes when you need verifiable, receipt-stamped market data for on-chain / EVM-ecosystem agent APIs. Not suitable for L402 listings, per-service MPP listings, or non-x402 protocol agent registries (use the /economy routes for those).

## Known failure modes

- No services match the 'chain' tag — returns empty services array with matched:0
- Worker cold-start or Cloudflare edge timeout — HTTP 503 or empty response
- Stale index if snapshot hasn't refreshed — generatedAt timestamp may be hours old
- Payment not processed (x402 flow failure) — 402 response requiring fresh USDC payment
- Malformed response if upstream registry source is unavailable during indexing

## How this service works

An open index of the machine-to-machine (agent) economy. x402 routes: 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. /economy routes, for Tempo MPP, Virtuals ACP, Olas, Masumi, ERC-8004 agent registries, Solana agent registries, Base agent contracts and MCP servers (Official MCP Registry): each protocol's published figures (agent or server counts, transactions or payment events; payers and USD volume only where the source publishes them: payers for x402 and Tempo MPP, USD volume for x402 and Virtuals ACP), each with its unit, window and source; units differ, so totals are not summed. L402 and per-service MPP listings are not covered.

## Output

A JSON object containing: the count of returned services (up to 25), the query parameters used (by, op, limit, where.tag), the matched total across the index, a list of service objects each with name, EIP-155 network ID, 30-day call count, USD price, resource URL, and 30-day payer count, plus metadata fields: declaredBy, generatedAt (ISO timestamp), and a snapshot hash identifying the scoring revision.

## 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": "chain"
   }
  },
  "route": "/in-chain",
  "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/p0-agent-economy-index-in-chain-route-a0aaff5b/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)
