# P0 Agent Economy Index - Economy Search

> P0 Agent Economy Index - Economy Search is a paid API for AI agents from x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-12).

Searches and ranks agent economy services across x402 and MCP protocols by real 30-day usage metrics, returning scored listings with protocol-specific statistics

## Facts

- Endpoint: GET https://x402-bazaar-rank.x402-bazaar-rank-worker.workers.dev/economy/search?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/p0-agent-economy-index-economy-search-28aeabce
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_OREtSfdhmKpl5kynio-kF

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-economy-search-28aeabce
```

Example prompt: Search the P0 Agent Economy Index for x402 and MCP services related to 'weather forecasting' and show me the top 10 results per protocol, including their prices and 30-day usage stats.

## When to prefer this

Choose this endpoint when an AI agent needs to discover, compare, or rank paid API services (x402) or MCP servers within the agent economy by real usage signals — especially when the agent needs to find services by capability keyword and wants objective 30-day call volume and paying-wallet counts as quality signals rather than relying on self-reported marketing claims. Prefer this over generic API directories when the use case involves agent-to-agent or machine-to-machine payment-gated services on Base/EVM or MCP-compatible tooling.

## Known failure modes

- Missing required 'q' query parameter returns an error
- Query with more than 6 words may be rejected or truncated
- Invalid 'limit' value outside 1-25 range returns an error
- Invalid 'protocol' value (not 'x402' or 'mcp') returns an error
- Stale snapshot flag set to true if index has not refreshed recently
- No results returned if no services match the capability keywords
- Truncated response schema if worker response size limits are exceeded

## How this service works

Use when you need callable agent services for a capability across protocols: x402 listings ranked by relevance weighted by 30-day paying wallets, plus hosted MCP servers from the Official MCP Registry (a capped subset, count in coverage; those naming x402, L402, MPP or pay-per-call first; that registry publishes no prices). L402 and MPP listings are not covered. ?q= required. $0.002 USDC per call. Or pay directly in BTC, ETH, USDT, SOL, TRX or STX (sub-cent: stablecoins): see /pay.

## Output

A JSON object containing versioned results with: matched x402 service listings (URL, name, rail/chain, price in USD, 30-day calls and paying wallets, description) and MCP server listings (URL, name, title, last updated, payment hints, description); aggregate counts per protocol; coverage metadata explaining ranking methodology, index size, and completeness; source attribution with license terms; a snapshot staleness flag and snapshot age in seconds; and a note clarifying scoring methodology and cross-protocol comparability limits.

## 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",
      "HEAD"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "q"
     ],
     "properties": {
      "q": {
       "type": "string",
       "description": "capability words, e.g. weather or token prices (letters and digits; up to 6 words)"
      },
      "limit": {
       "type": "string",
       "description": "optional: results per protocol, 1-25 (default 10)"
      },
      "protocol": {
       "type": "string",
       "description": "optional: x402 or mcp; omitted = both"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "v",
      "generated_at",
      "query",
      "tokens",
      "protocol",
      "results",
      "counts",
      "coverage",
      "sources",
      "stale",
      "snapshot_age_s",
      "source",
      "source_url",
      "note"
     ],
     "properties": {
      "v": {
       "type": "number"
      },
      "note": {
       "type": "string"
      },
      "query": {
       "type": "string"
      },
      "stale": {
       "type": "boolean"
      },
      "counts": {
       "type": "object",
       "properties": {
        "mcp": {
         "type": "number"
        },
        "x402": {
         "type": "number"
        },
        "mcp_capped": {
         "type": "boolean"
        }
       }
      },
      "source": {
       "type": "string"
      },
      "tokens": {
       "type": "array",
       "items": {
        "type": "string"
       }
      },
      "results": {
       "type": "object",
       "properties": {
        "mcp": {
         "type": "array",
         "items": {
          "type": "object",
          "properties": {
           "url": {
            "type": "string"
           },
           "name": {
            "type": "string"
           },
           "title": {
            "type": "string"
           },
           "updated": {
            "type": "string"
           },
           "protocol": {
            "type": "string"
  
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "v": 1,
  "note": "Format sample: the protocol row and search coverage are our real computation of 2026-10-06; search cards, the Dune query and the gap are illustrative placeholders. Rankings are per protocol and not comparable across protocols. Words match as substrings. MCP results contain every query word; x402 results are ranked by relevance to any query word, weighted by 30-day paying wallets and calls, so an x402 result may match only some words. counts.mcp counts all matching indexed servers; counts.x402 is the number returned.",
  "query": "weather",
  "stale": false,
  "counts": {
   "mcp": 1,
   "x402": 1,
   "mcp_capped": false
  },
  "source": "P0 agent-economy index: agenteconomy.to (public on-chain data, free to reuse with attribution), the Official MCP Registry (CC0) and P0's own x402 Bazaar catalog and on-chain scans",
  "tokens": [
   "weather"
  ],
  "results": {
   "mcp": [
    {
     "url": "https://mcp.example.dev/mcp",
     "name": "dev.example/weather",
     "title": "Example Weather",
     "updated": "2026-10-01",
     "protocol": "mcp",
     "pay_hints": [
      "x402"
     ],
     "price_usd": null,
     "description": "Weather tools over MCP"
    }
   ],
   "x402": [
    {
     "url": "https://api.example-seller.dev/weather",
     "name": "Example weather API",
     "rail": "eip155:8453",
     "protocol": "x402",
     "calls_30d": 340,
     "price_usd": 0.001,
     "payers_30d": 12,
     "description": "Forecast by coordinates"
    }
   ]
  },
  "sources": [
   {
    "id": "agenteconomy",
    "name": "agent economy (agenteconomy.to)",
    "urls": [
     "https://agenteconomy.to/data.json"
    ],
    "terms_url": "https://agenteconomy.to/about",
    "attribution": "Data: agenteconomy.to by @realdora_eth",
    "terms_quote": "Take it, cite it, build on it.",
    "terms_checked": "2026-10-06"
   }
  ],
  "coverage": {
   "mcp": {
    "order": "servers whose registry text names x402, L402, MPP or pay-per-call first, then those mentioning Stripe, USDC or Lightning, then most recently updated",
    "indexed": 6717,
    "built_at": "2026-10-05T23:05:42Z",
    "complete": false,
    "pay_hints": "self-described in registry text, not verified; the registry publishes no prices",
    "hosted_total": 24764,
    "payment_hinted_total": 1454
   },
   "x402": {
    "ranking": "relevance weighted by 30-day paying wallets, then calls (Coinbase CDP x402 Bazaar catalog)",
    "listings": 34598,
    "searched": tru
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/p0-agent-economy-index-economy-search-28aeabce/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)
