# Sundial Exchange Trending Tokens API

> Sundial Exchange Trending Tokens API is a paid API for AI agents from sundial.exchange, paid per call via x402, $0.1/call, status unknown (last checked 2026-09-15).

Returns a list of trending Solana tokens with current prices, 24-hour price changes, and historical price data for a configurable lookback window

## Facts

- Endpoint: GET https://sundial.exchange/api/trending
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sundial-exchange-trending-tokens-api-ae4f7cf9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_aoZAhChjtw3xUuMtKkzl7

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 sundial-exchange-trending-tokens-api-ae4f7cf9
```

Example prompt: What tokens are trending on Sundial Exchange right now? Show me price changes and historical price data for the last 12 hours.

## When to prefer this

Use this endpoint when you need a ranked or filtered list of currently trending Solana tokens with price history and 24h change data — especially useful for monitoring market momentum, building watchlists, or surfacing trading opportunities on a Solana DEX. Prefer this over generic crypto market APIs when Solana-specific DEX trending data is required.

## Known failure modes

- Invalid hours parameter type returns a 400 error
- Payment not included or rejected returns a 402 Payment Required response
- Upstream Solana RPC or DEX data unavailable returns a 503 or 500 error
- Empty array returned if no trending tokens detected in the lookback window
- Rate limiting or quota exceeded may return a 429 error

## How this service works

Access /api/trending - Sundial Exchange API (Base) for $0.10

## Output

An array of trending token objects, each containing the token symbol, current USD price, 24-hour percentage price change, and an array of historical price data points with price and timestamp values for the requested lookback window.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "hours": {
   "type": "number",
   "description": "Number of hours to look back (default: 24)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "array",
 "items": {
  "type": "object",
  "properties": {
   "prices": {
    "type": "array",
    "items": {
     "type": "object",
     "properties": {
      "price": {
       "type": "number"
      },
      "timestamp": {
       "type": "number"
      }
     }
    },
    "description": "Historical price data points"
   },
   "symbol": {
    "type": "string",
    "description": "Token symbol"
   },
   "change24h": {
    "type": "number",
    "description": "24h price change percentage"
   },
   "currentPrice": {
    "type": "number",
    "description": "Current price in USD"
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sundial-exchange-trending-tokens-api-ae4f7cf9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from sundial.exchange](https://www.zero.xyz/host/sundial.exchange/llms.txt)
