# CortexCloud DEX Search

> CortexCloud DEX Search 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-15).

Searches decentralized exchange (DEX) data, returning token pairs, liquidity pools, or trading activity matching a query

## Facts

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

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-search-209fa9a1
```

Example prompt: Search the DEX data for WETH/USDC trading pairs and show me the available liquidity pools and their volumes.

## When to prefer this

Choose this endpoint when you need to discover or look up token trading pairs, liquidity pools, or market activity on decentralized exchanges. Prefer this over centralized exchange APIs when the asset is only listed on-chain, or when you need DeFi-native data like pool addresses and on-chain liquidity. Useful for agents building DeFi dashboards, routing token swaps, or researching newly launched tokens.

## Known failure modes

- Token or pair not found on any indexed DEX — returns empty results
- Invalid or malformed contract address input — returns error
- DEX data indexer lag may cause recently created pools to be missing
- Query too broad returns too many results with no useful ranking
- Payment failure in USDC on Base blocks the request before execution

## 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 search results matching the query, including token pair names, pool addresses, liquidity amounts, trading volumes, and the DEX protocol hosting each pool.

## 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-search-209fa9a1/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)
