# fastapi.online — DEX Volume Lookup

> fastapi.online — DEX Volume Lookup is a paid API for AI agents from api.fastapi.online, paid per call via x402, $0.0015/call, status unknown (last checked 2026-10-12).

Retrieves decentralized exchange (DEX) trading volume data for a specified token or trading pair

## Facts

- Endpoint: POST https://api.fastapi.online/dex-volume?utm_source=zero.xyz
- Price: $0.0015/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fastapi-online-dex-volume-lookup-5c8d4a17
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JnPuKrYAy4IRyKkCRkYmm

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-volume-lookup-5c8d4a17 -d '<json body>'
```

Example prompt: Can you pull the DEX trading volume for the USDC/ETH pair right now? I want to see how much has been traded on decentralized exchanges.

## When to prefer this

Choose this endpoint when you need on-chain DEX volume data without signing up for a traditional API key, especially useful for pay-per-call crypto-native workflows. Prefer it over centralized exchange APIs when you specifically need decentralized exchange volume figures.

## Known failure modes

- Invalid or unrecognized token address returns an error or empty result
- Unsupported trading pair returns no data
- Network or blockchain data unavailability causes timeout or 503 error
- Malformed request body returns 422 validation error
- Insufficient payment (x402) results in 402 Payment Required response

## 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 DEX trading volume data including total volume figures, potentially broken down by time period or trading pair, sourced from on-chain decentralized exchange activity.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [],
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fastapi-online-dex-volume-lookup-5c8d4a17/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)
