# CortexCloud DEX Pairs Data

> CortexCloud DEX Pairs Data is a paid API for AI agents from api.cortexcloud.org, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Retrieves decentralized exchange (DEX) trading pair data via a pay-per-call x402 endpoint

## Facts

- Endpoint: GET https://api.cortexcloud.org/x402/v1/data/dex/pairs
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/cortexcloud-dex-pairs-data-23b9eca0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__mh0eNERX6CmYCjEo1Ycv

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 cortexcloud-dex-pairs-data-23b9eca0
```

Example prompt: Can you pull up all the DEX trading pairs for the USDC/ETH pool on Base — I want to see liquidity and volume data for that pair right now?

## When to prefer this

Choose this endpoint when you need on-chain DEX pair data and want to pay per call without managing API keys or subscriptions. Ideal for AI agents operating autonomously with USDC on Base via x402. Best for one-off or infrequent pair lookups in DeFi workflows where traditional subscription APIs are overkill.

## Known failure modes

- No pairs found for specified token address — returns empty result set
- Invalid token address format — returns 400 error
- Unsupported chain ID — endpoint may return error or empty results
- Payment failure via x402 — 402 response if USDC balance insufficient
- Rate limiting or network timeout on high-traffic queries
- Stale or delayed data if underlying DEX data source is lagging

## How this service works

OpenAI-compatible AI and data API for agents. Pay per call in USDC on Base via x402 — no API keys, no subscriptions, no lock-in.

## Output

Returns a list of DEX trading pairs matching the query, including token symbols, pair contract addresses, liquidity amounts, trading volumes, price data, and associated DEX/protocol identifiers. Structured JSON response suitable for on-chain analytics and DeFi research.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "required": {
   "type": "string"
  },
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "format": "application/json",
 "example": {
  "pairs": []
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cortexcloud-dex-pairs-data-23b9eca0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.cortexcloud.org](https://www.zero.xyz/host/api.cortexcloud.org/llms.txt)
