# Legible Check DEX Quote

> Legible Check DEX Quote is a paid API for AI agents from legible-check.ezealfa.workers.dev, paid per call via x402, $0.003/call, status unknown (last checked 2026-11-19).

Returns real-time DEX trading pair quotes including price, liquidity, and 24h volume for a given token, settled via x402 micropayment on Base

## Facts

- Endpoint: GET https://legible-check.ezealfa.workers.dev/dex/quote?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/legible-check-dex-quote-2ea4c937
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_aBZSRP6_FOTFBbc5oKP-L

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 legible-check-dex-quote-2ea4c937
```

Example prompt: What's the current DEX price for WETH in USDC on Base, including liquidity and 24-hour volume?

## When to prefer this

Choose this endpoint when you need live DEX price, liquidity, and volume data for tokens on Base without signing up for an API key or account. It is ideal for AI agents that can handle x402 micropayments natively and need on-chain DeFi market data on demand. Prefer over centralized exchange APIs when you specifically need DEX liquidity data or are building on Base. Best for low-frequency spot checks at $0.002 per call.

## Known failure modes

- HTTP 402 returned if payment header is missing or insufficient — response includes the price ($0.002 USDC) and receiving wallet address
- Empty pairs array if the queried token symbol is not found on any supported DEX
- Stale or unavailable data if DexScreener upstream is experiencing issues
- Invalid query parameter may return an error or empty result

## How this service works

Pay-per-call data endpoints on Base, settled in USDC over x402. No account, no API key, no signup. Unpaid calls answer HTTP 402 with the price and the receiving wallet.

## Output

A JSON object containing an array of trading pairs with fields: dex name (e.g. 'uniswap'), base token symbol, quote token symbol, chain (e.g. 'base'), price in USD as a string, liquidity in USD as a number, 24h volume in USD as a number, and the data source (e.g. 'dexscreener'). Also includes the original query string.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object"
    }
   }
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "pairs": [
   {
    "dex": "uniswap",
    "base": "WETH",
    "chain": "base",
    "quote": "USDC",
    "price_usd": "3400.12",
    "liquidity_usd": 1200000,
    "volume_24h_usd": 450000
   }
  ],
  "query": "USDC",
  "source": "dexscreener"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/legible-check-dex-quote-2ea4c937/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from legible-check.ezealfa.workers.dev](https://www.zero.xyz/host/legible-check.ezealfa.workers.dev/llms.txt)
