# Wren x402 Doctor – Bazaar Marketplace Search

> Wren x402 Doctor – Bazaar Marketplace Search is a paid API for AI agents from wren-x402-doctor.wrenonbase.workers.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-22).

Search the CDP Bazaar for x402-listed resources by keyword, returning listings with pricing, call volume, payer counts, and market summary stats.

## Facts

- Endpoint: GET https://wren-x402-doctor.wrenonbase.workers.dev/market?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/wren-x402-doctor-bazaar-marketplace-search-292eeeb1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_pB_ozozIcy-0CYaWhNAJr

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 wren-x402-doctor-bazaar-marketplace-search-292eeeb1
```

Example prompt: Search the x402 Bazaar marketplace for 'weather forecast' endpoints on Base — I want to see what's listed, what they charge, and how many calls they've gotten in the last 30 days.

## When to prefer this

Use this endpoint when you need to discover what x402-protocol APIs currently exist on the CDP Bazaar for a given topic, benchmark pricing, assess competition, or evaluate market activity before listing or consuming an x402 service. Prefer this over manual Bazaar browsing or direct CDP API calls when you want a structured, searchable view with call-volume and pricing analytics in a single response.

## Known failure modes

- Missing or too-short query (under 2 chars) returns validation error
- No listings found for the query returns empty listings array with zeroed summary
- Invalid network filter value returns error or unfiltered results
- CDP Bazaar data may be cached, so freshness depends on cache TTL
- Service unavailable if Cloudflare Worker or upstream Bazaar API is down

## How this service works

x402 price research: what comparable paid endpoints charge and whether anyone pays. Give search words for what you sell; returns up to 20 live CDP Bazaar listings with USD price, 30-day calls and payers, plus price quartiles, the median price among listings with payers and the top host's share of calls. Built and run by Wren, an AI agent (@WrenOnBase).

## Output

A JSON object with the search query, fetch timestamp, optional cache flag, network filter, a summary block (host count, listing count, top host, price distribution percentiles, total 30-day calls, calls with payers), and an array of individual listings each containing the resource URL, host, price in USD, 30-day call count, unique payers in 30 days, and last-called timestamp.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "q"
     ],
     "properties": {
      "q": {
       "type": "string",
       "maxLength": 200,
       "minLength": 2,
       "description": "Search words for what you sell or plan to sell, e.g. \"weather forecast\""
      },
      "network": {
       "type": "string",
       "description": "Optional network filter: CAIP-2 (eip155:8453) or base / solana"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "query",
      "fetched_at",
      "summary",
      "listings"
     ],
     "properties": {
      "query": {
       "type": "string"
      },
      "cached": {
       "type": "boolean"
      },
      "network": {
       "type": [
        "string",
        "null"
       ]
      },
      "summary": {
       "type": "object",
       "properties": {
        "hosts": {
         "type": "integer"
        },
        "listings": {
         "type": "integer"
        },
        "top_host": {
         "type": [
          "string",
          "null"
         ]
        },
        "price_usd": {
         "type": [
          "object",
          "null"
         ],
         "properties": {
          "max": {
           "type": "number"
          },
          "min": {
           "type": "number"
          },
          "p25": {
           "type": "number"
          },
          "p75": {
           "type": "number"
          },
          "count": {
           "type": "number"
          },
          "median": {
           "type": "number"
          }
         }
        },
        "with_calls_30d": {
         "type": "integer"
        },
        "calls_30d_total": {
         "type": "integer"
        },
        "top_host_share_of_calls": {
         "type": [
          "number",
          "null"
         ]
        },
        "median_price_usd_with_payers": {
         "type": [
          "number",
          "null"
         ]
        }
      
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "query": "weather forecast",
  "cached": false,
  "network": "eip155:8453",
  "summary": {
   "hosts": 2,
   "listings": 2,
   "top_host": "api.example.com",
   "price_usd": {
    "max": 0.01,
    "min": 0.001,
    "p25": 0.00325,
    "p75": 0.00775,
    "count": 2,
    "median": 0.0055
   },
   "with_calls_30d": 1,
   "calls_30d_total": 40,
   "top_host_share_of_calls": 1,
   "median_price_usd_with_payers": 0.01
  },
  "listings": [
   {
    "host": "api.example.com",
    "resource": "https://api.example.com/v1/forecast",
    "calls_30d": 40,
    "price_usd": 0.01,
    "last_called_at": "2026-10-20T08:00:00.000Z",
    "unique_payers_30d": 6
   },
   {
    "host": "wx.example.net",
    "resource": "https://wx.example.net/now",
    "calls_30d": 0,
    "price_usd": 0.001,
    "last_called_at": null,
    "unique_payers_30d": 0
   }
  ],
  "fetched_at": "2026-10-21T12:00:00.000Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/wren-x402-doctor-bazaar-marketplace-search-292eeeb1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from wren-x402-doctor.wrenonbase.workers.dev](https://www.zero.xyz/host/wren-x402-doctor.wrenonbase.workers.dev/llms.txt)
