# DeFiLlama Crypto Price Lookup

> DeFiLlama Crypto Price Lookup is a paid API for AI agents from x402-seller-0ay3.onrender.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Returns the current USD price of one or more cryptocurrencies by CoinGecko ID or on-chain contract address, sourced from DefiLlama

## Facts

- Endpoint: GET https://x402-seller-0ay3.onrender.com/api/defi/price
- 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-crypto-price-lookup-a3c5d486
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uBbiKJ3nIwlNpYnuzUicX

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-crypto-price-lookup-a3c5d486
```

Example prompt: What are the current USD prices for Bitcoin and Ethereum? Also grab the price of USDT on Ethereum (contract 0xdac17f958d2ee523a2206206994597c13d831ec7) while you're at it.

## When to prefer this

Choose this endpoint when you need real-time USD prices for one or more cryptocurrencies and want DefiLlama as the data source. It supports both CoinGecko IDs (e.g. 'ethereum', 'bitcoin') and on-chain contract addresses via the 'chain:address' syntax, making it ideal for DeFi tokens that may not have a standard CoinGecko ID. Prefer it over generic price APIs when you need confidence scores alongside prices, or when querying obscure ERC-20 or cross-chain tokens by contract.

## Known failure modes

- Unknown coin ID returns a missing or null entry for that coin
- Malformed chain:address format results in a lookup failure for that token
- DefiLlama upstream outage causes the endpoint to return an error or stale data
- Empty or missing 'coins' query parameter results in a 400-level error
- Rate limiting or payment failure returns a 402 Payment Required response

## How this service works

Current USD price of one or more cryptocurrencies (ETH price, BTC price, any token by symbol or contract address), source DefiLlama. Parameter: ?coins=ethereum,bitcoin (comma-separated CoinGecko IDs, or 'chain:address' for a specific token, e.g. ethereum:0xdac17f958d2ee523a2206206994597c13d831ec7).

## Output

A JSON object mapping each requested coin identifier to its current USD price, token symbol, and a confidence score (0–1). Also includes the source URL (coins.llama.fi), the currency (USD), and an ISO timestamp of when the data was fetched.

## 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",
       "description": "Comma-separated list of identifiers (e.g. ethereum,bitcoin or base:0x...)."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "prices": {
   "bitcoin": {
    "price": 65000.12,
    "symbol": "BTC",
    "confidence": 0.99
   },
   "ethereum": {
    "price": 2400.5,
    "symbol": "ETH",
    "confidence": 0.99
   }
  },
  "source": "https://coins.llama.fi",
  "currency": "USD",
  "fetched_at": "2026-09-01T12:00:00.000Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/defillama-crypto-price-lookup-a3c5d486/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-seller-0ay3.onrender.com](https://www.zero.xyz/host/x402-seller-0ay3.onrender.com/llms.txt)
