# AgentOracle Top N Tokens by Market Cap

> AgentOracle Top N Tokens by Market Cap is a paid API for AI agents from aiagentoracle.ai, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Returns the top N on-chain crypto tokens ranked by market cap, with price, volume, liquidity, and 24h change data.

## Facts

- Endpoint: GET https://aiagentoracle.ai/api/v1/tokens/top
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/aiagentoracle-ai-6f6fc56a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_pBhtGUJ27kDkmt_ToqD7h

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 aiagentoracle-ai-6f6fc56a
```

Example prompt: Show me the top 50 on-chain crypto tokens by market cap from AgentOracle, including their price, 24h volume, liquidity, and price change percentage.

## When to prefer this

Use this endpoint when you need a ranked leaderboard of on-chain tokens by market cap — ideal for portfolio overviews, market dashboards, DeFi research, or when you want to scan the top N tokens without specifying a particular symbol. Prefer this over the single-token lookup when you need a broad market snapshot rather than details on one specific token.

## Known failure modes

- limit out of range (< 1 or > 100) returns a validation error
- payment not provided or insufficient USDC balance returns 402 Payment Required
- service temporarily unavailable returns 503
- empty result set if no tokens are tracked yet
- stale data if ingestion pipeline is lagging (check freshness field)

## How this service works

AgentOracle: top N on-chain crypto tokens by market cap. Pass `limit` (1..100, default 20). Same per-token shape as /tokens — price, 24h volume, market cap, liquidity, 24h price change.

## Output

A JSON object containing an array of up to 100 token records (id, symbol, name, chain, priceUsd, marketCap, volume24h, liquidityUsd, priceChange24hPercent, confidenceScore, lastUpdated), a total count, and a freshness timestamp indicating data recency.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "limit": 20
  }
 }
}
```

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "limit": {
       "type": "integer",
       "default": 20,
       "maximum": 100,
       "minimum": 1,
       "description": "Number of top tokens to return."
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "tokens",
      "total",
      "freshness"
     ],
     "properties": {
      "total": {
       "type": "integer",
       "minimum": 0
      },
      "tokens": {
       "type": "array",
       "items": {
        "type": "object",
        "required": [
         "id",
         "symbol",
         "name",
         "chain",
         "lastUpdated"
        ],
        "properties": {
         "id": {
          "type": "integer",
          "description": "Internal numeric identifier."
         },
         "name": {
          "type": "string"
         },
         "chain": {
          "type": "string",
          "description": "EVM chain slug (e.g. base, ethereum, arbitrum)."
         },
         "symbol": {
          "type": "string",
          "description": "Uppercase ticker symbol, e.g. ETH."
         },
         "imageUrl": {
          "type": [
           "string",
           "null"
          ],
          "format": "uri"
         },
         "priceUsd": {
          "type": [
           "number",
           "null"
          ],
          "description": "Spot price in USD."
         },
         "marketCap": {
          "type": [
           "number",
           "null"
          ],
          "description": "Fully-diluted market cap in USD."
         },
         "volume24h": {
          "type": [
           "number",
           "null"
          ],
          "description": "Trailing 24h trading volume in USD."
         },
         "lastUpdated": {
          "type": "string",
          "format": "date-time"
         },
         "liquidityUsd": {
          "type": [
           "number",

… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/aiagentoracle-ai-6f6fc56a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from aiagentoracle.ai](https://www.zero.xyz/host/aiagentoracle.ai/llms.txt)
