# DefiLlama Current Token Prices

> DefiLlama Current Token Prices is a paid API for AI agents from defillama.use.x402atlas.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Returns the latest USD price, symbol, and decimals for one or more crypto tokens identified by chain:address or coingecko:id

## Facts

- Endpoint: GET https://defillama.use.x402atlas.com/prices-current
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/defillama-current-token-prices-be047dbd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jkhpc0H1q5MPsJocynXzq

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 defillama-current-token-prices-be047dbd
```

Example prompt: What's the current USD price of WETH on Ethereum (0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2) and USDC on Arbitrum (arbitrum:0xaf88d065e77c8cC2239327C5EDb3A432268e5831)? Use DefiLlama prices.

## When to prefer this

Use this endpoint when you need real-time or near-real-time USD prices for specific on-chain tokens identified by their contract addresses or CoinGecko IDs, especially across multiple chains simultaneously. Prefer it over CoinGecko direct API when you want DefiLlama's aggregated multi-chain price feed via a simple pay-per-call model without API key management.

## Known failure modes

- Invalid or unrecognized coin identifier returns missing or empty data for that coin
- Malformed comma-separated coins string causes request failure
- Token not tracked by DefiLlama returns no price data
- Rate limiting or payment failure (402) if USDC micropayment not processed
- searchWidth value in wrong format may be ignored or cause error

## How this service works

Current token prices by DefiLlama — latest USD price, symbol and decimals for one or many coins by chain:address or coingecko:id.

## Output

A JSON object keyed by coin identifier containing the latest USD price, token symbol, number of decimals, and a confidence/timestamp indicator for each requested token.

## 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",
     "required": [
      "coins"
     ],
     "properties": {
      "coins": {
       "type": "string",
       "pattern": "^[A-Za-z0-9:,_.-]+$",
       "maxLength": 3000,
       "minLength": 1,
       "description": "Comma-separated coins as {chain}:{address} or coingecko:{id}"
      },
      "searchWidth": {
       "type": "string",
       "maxLength": 200,
       "description": "Optional time range to search for the price (e.g. 4h)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "queried_at",
      "data"
     ],
     "properties": {
      "data": {
       "type": "object",
       "properties": {
        "coins": {
         "type": "object",
         "description": "Map keyed by the requested coin id (e.g. coingecko:ethereum)",
         "additionalProperties": {
          "type": "object",
          "properties": {
           "price": {
            "type": "number",
            "description": "Latest USD price"
           },
           "symbol": {
            "type": "string"
           },
           "decimals": {
            "type": "integer"
           }
          }
         }
        }
       }
      },
      "queried_at": {
       "type": "string",
       "format": "date-time",
       "description": "Time the upstream was queried"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "coins": {
    "coingecko:ethereum": {
     "price": 3500,
     "symbol": "ETH",
     "decimals": 18
    }
   }
  },
  "queried_at": "2026-07-01T12:00:00Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/defillama-current-token-prices-be047dbd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from defillama.use.x402atlas.com](https://www.zero.xyz/host/defillama.use.x402atlas.com/llms.txt)
