# fastapi.online DEX Search

> fastapi.online DEX Search is a paid API for AI agents from api.fastapi.online, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-11).

Searches a decentralized exchange (DEX) index using a natural language or token query

## Facts

- Endpoint: POST https://api.fastapi.online/dex-search?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fastapi-online-dex-search-8cb55b8f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_k2HnHO-67sYM4SWgV6tGQ

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 fastapi-online-dex-search-8cb55b8f -d '<json body>'
```

Example prompt: Search the DEX index for USDC trading pairs and show me what exchanges and pools come up.

## When to prefer this

Use this endpoint when you need to search a self-hosted DEX index for token or trading pair information without signing up for a centralized data provider. Ideal for agents operating in a crypto-native, pay-per-call context using USDC with no API key required.

## Known failure modes

- Empty results if the token or pair is not indexed
- Malformed query string returns error or empty set
- Payment not fulfilled results in 402 response blocking the call
- Query too vague returns irrelevant or overly broad results

## How this service works

Chat, embeddings, OCR, speech-to-text, image editing, image understanding (captioning/Q&amp;A), text-to-speech, translation, writing tools, classification tools, developer tools, local utilities, format/checksum validators, encoding &amp; crypto utilities, date/time calculators, geo/coordinate math, math &amp; finance calculators, novelty tools, and business/social writing generators — 179 endpoints in all, across multiple specialized self-hosted models. Pay per call with crypto — no signup — or get an API key.

## Output

Returns a list of DEX search results matching the query, potentially including token names, trading pairs, exchange names, pool addresses, and related metadata from indexed decentralized exchange data.

## Request schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fastapi-online-dex-search-8cb55b8f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.fastapi.online](https://www.zero.xyz/host/api.fastapi.online/llms.txt)
