# x402 Bazaar DEX Pair Info

> x402 Bazaar DEX Pair Info 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 price, liquidity, 24h volume, buy/sell transaction counts, and FDV for a given Base DEX pool address via DexScreener data

## Facts

- Endpoint: POST https://api.relai.fi/relay/1782567677091/api/x402/pair-info
- 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-dex-pair-info-6a4c4ed4
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Sg-nF6NKrLbXoESLlUw5W

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-dex-pair-info-6a4c4ed4 -d '<json body>'
```

Example prompt: Pull the price, liquidity, 24h volume, and buy/sell transaction counts for the Base DEX pool at address 0x4c36388be6f416a29c8d8eee81c771ce6be14b18.

## When to prefer this

Use this endpoint when an AI agent needs on-chain DEX pool analytics — specifically price, liquidity depth, volume, and buy/sell pressure — for a known Base network pool address. Prefer this over general token price APIs when pool-level granularity (liquidity and transaction counts) is required rather than just a spot price.

## Known failure modes

- 402 Payment Required — agent must pay $0.01 USDC on Base to the specified address and retry
- Invalid or unrecognized pool address returns an error or empty result
- Pool address is on a network other than Base — only Base pairs are supported
- Rate limiting or relay unavailability causing 5xx errors

## How this service works

Given a Base DEX pair (pool) address, returns price, liquidity, 24h volume, buy/sell transaction counts and FDV from DexScreener. For agents analysing a specific pool's depth and activity. Paid via x402: $0.01 in USDC on Base (eip155:8453) to 0x973a31858f4d2125f48c880542da11a2796f12d6. Returns 402 with payment requirements; pay and retry.

## Output

Returns a JSON object with current token price, total liquidity in USD, 24-hour trading volume, number of buy and sell transactions in the last 24 hours, and fully diluted valuation (FDV) for the specified Base DEX pool as sourced from DexScreener.

## 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": [
      "pair"
     ],
     "properties": {
      "pair": {
       "type": "string",
       "description": "Pair (pool) address"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-bazaar-dex-pair-info-6a4c4ed4/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)
