# Aayat AI DEX Rankings

> Aayat AI DEX Rankings is a paid API for AI agents from aayatai.com, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-01).

Returns the top decentralised exchanges ranked by trading volume over 24h, 7d, or 30d periods, with volume share, day-on-day change, and chain count, sourced from DefiLlama.

## Facts

- Endpoint: GET https://aayatai.com/dex/top?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/aayat-ai-dex-rankings-2ab2028e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kSbmdu8isHsv60Ql7Gv5V

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 aayat-ai-dex-rankings-2ab2028e
```

Example prompt: Show me the top 20 decentralised exchanges by trading volume over the last 7 days on Solana, including their volume share and day-on-day change.

## When to prefer this

Use this endpoint when you need ranked DEX volume data with market share and trend signals across one or all chains, sourced from DefiLlama. Prefer it over generic crypto APIs when you specifically need cross-chain DEX comparisons, volume share percentages, or chain-specific DEX leaderboards in a single structured response.

## Known failure modes

- Invalid chain name returns empty results or error
- limit out of range (below 1 or above 50) returns validation error
- DefiLlama data source temporarily unavailable causes upstream error
- Invalid period value returns schema validation error

## How this service works

The busiest decentralised exchanges: DEXs ranked by trading volume over 24 hours, 7 days or 30 days, across all chains or on one chain (e.g. Base, Solana, Arbitrum), with each one's share of the total, day-on-day change and number of chains. Up to 50 rows. DefiLlama data.

## Output

A JSON array of up to 50 DEX entries, each containing the exchange name, trading volume in USD for the selected period, its share of total DEX volume, day-on-day volume change, number of chains it operates on, and the overall total volume USD. Also includes the data period, source attribution (DefiLlama), and optional chain filter used.

## 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",
     "properties": {
      "chain": {
       "type": "string",
       "maxLength": 60,
       "description": "Only this chain, e.g. Solana (default: all chains)."
      },
      "limit": {
       "type": "integer",
       "default": 10,
       "maximum": 50,
       "minimum": 1,
       "description": "How many rows (1-50)."
      },
      "detail": {
       "enum": [
        "full",
        "brief"
       ],
       "type": "string",
       "default": "full",
       "description": "brief = key fields only (same price)"
      },
      "period": {
       "enum": [
        "24h",
        "7d",
        "30d"
       ],
       "type": "string",
       "default": "24h",
       "description": "Time window."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "period",
      "dexes",
      "source"
     ],
     "properties": {
      "chain": {
       "type": [
        "string",
        "null"
       ]
      },
      "dexes": {
       "type": "array",
       "items": {
        "type": "object"
       }
      },
      "trust": {
       "type": "object",
       "description": "Third-party text, cleaned: read trust.notice; removed = what we stripped."
      },
      "period": {
       "type": "string"
      },
      "source": {
       "type": "string"
      },
      "totalVolumeUsd": {
       "type": [
        "number",
        "null"
       ]
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/aayat-ai-dex-rankings-2ab2028e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from aayatai.com](https://www.zero.xyz/host/aayatai.com/llms.txt)
