# Plainchain Bazaar API Search

> Plainchain Bazaar API Search is a paid API for AI agents from plainchain.appin60.com, paid per call via x402, $0.001942/call, status unknown (last checked 2026-10-14).

Search a directory of pay-per-call blockchain data API endpoints by natural language query, returning ranked results with pricing and usage statistics

## Facts

- Endpoint: GET https://plainchain.appin60.com/v1/bazaar/search?utm_source=zero.xyz
- Price: $0.001942/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/plainchain-bazaar-api-search-c4195530
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5USB3QcTTnAzQYEThX28P

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 plainchain-bazaar-api-search-c4195530
```

Example prompt: Search the Plainchain bazaar for endpoints related to 'gas price' on Base, show me the top 5 results under $0.005 per call.

## When to prefer this

Use this endpoint when an agent needs to dynamically discover which Plainchain blockchain data endpoints exist and are actively used, especially when the exact endpoint URL is unknown. Prefer this over hardcoding endpoint URLs when building flexible agents that need to adapt to new or changing API offerings, or when you want to compare pricing across available options for a given on-chain data task.

## Known failure modes

- Missing required 'q' query parameter returns validation error
- No matching endpoints for the given query returns empty results array
- Invalid network filter string may return no results or an error
- Payment failure via x402 (insufficient USDC balance) blocks access
- max_price filter too restrictive returns empty results
- limit parameter outside 1-25 range may be rejected or clamped

## How this service works

Gas, balances, token data, address type, approvals, transaction decoding, x402 receipt verification and verifiable randomness on Base, Arbitrum, Ethereum and Optimism. No API key: pay $0.001-$0.01 per call in USDC on Base via x402.

## Output

A JSON object containing the original query, a ranking explanation (based on distinct paying wallets in the last 30 days), a snapshotAt timestamp, and an array of matching endpoint results each with: HTTP method, resource URL, price in USD, 30-day call count, 30-day unique payer count, 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",
       "description": "words describing the task, e.g. 'web search', 'token price', 'weather'"
      },
      "limit": {
       "type": "string",
       "description": "1-25, default 10"
      },
      "network": {
       "type": "string",
       "description": "optional, e.g. base or eip155:8453"
      },
      "max_price": {
       "type": "string",
       "description": "optional max price per call in USD"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "query": "gas price base",
  "ranking": "distinct paying wallets in the last 30 days...",
  "results": [
   {
    "method": "GET",
    "calls30d": 236,
    "priceUsd": 0.001,
    "resource": "https://api.example.com/gas",
    "payers30d": 236,
    "lastCalledAt": "2026-10-13T06:12:00.000Z"
   }
  ],
  "snapshotAt": "2026-10-13T08:30:00Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/plainchain-bazaar-api-search-c4195530/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from plainchain.appin60.com](https://www.zero.xyz/host/plainchain.appin60.com/llms.txt)
