# x402 Bazaar Token Price

> x402 Bazaar Token Price is a paid API for AI agents from api.relai.fi, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Returns current USD price, 24h change, liquidity, and volume for a Base chain token by contract address, sourced from DexScreener's highest-liquidity pair.

## Facts

- Endpoint: POST https://api.relai.fi/relay/1782567677091/api/x402/token-price
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-bazaar-token-price-a9f73931
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ch57vp_U2QGzRDRq0EInp

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 x402-bazaar-token-price-a9f73931 -d '<json body>'
```

Example prompt: What's the current USD price, 24-hour change, liquidity, and volume for the Base token at contract address 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913?

## When to prefer this

Use this endpoint when you need real-time DEX price data for a token on the Base chain by contract address, without requiring a DexScreener API key. It auto-selects the highest-liquidity pair, making it more reliable than manual pair lookups. Prefer this over Ethereum mainnet DEX endpoints when the token is specifically on Base. The x402 micropayment model means no API key provisioning is needed.

## Known failure modes

- 402 Payment Required returned on first call — agent must pay $0.01 USDC on Base and retry
- Invalid or non-Base contract address returns an error or empty result
- Token has no DexScreener pairs — returns empty or null price data
- Low-liquidity tokens may have unreliable price data
- Network or upstream DexScreener outage causes timeout or 5xx error

## How this service works

Pass a Base token contract address and get the current USD price, 24h change, liquidity, and volume from DexScreener (highest-liquidity pair auto-selected). No API key required. Paid via x402: $0.01 in USDC on Base (eip155:8453) to 0x973a31858f4d2125f48c880542da11a2796f12d6. Returns 402 with payment requirements; pay and retry.

## Output

Returns the current USD price, percentage 24h price change, total liquidity in USD, and 24h trading volume for the specified Base token, auto-selected from the highest-liquidity DexScreener pair.

## 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"
    },
    "pathParams": {
     "type": "object"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "address"
     ],
     "properties": {
      "address": {
       "type": "string",
       "description": "Token contract address"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-bazaar-token-price-a9f73931/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.relai.fi](https://www.zero.xyz/host/api.relai.fi/llms.txt)
