# ApiToll Crypto Price Lookup

> ApiToll Crypto Price Lookup is a paid API for AI agents from crypto.apitoll.cloud, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-12).

Returns real-time or historical spot prices for up to 50 crypto tokens by symbol, CoinGecko ID, or chain:address, sourced from DefiLlama, paid per call via USDC.

## Facts

- Endpoint: GET https://crypto.apitoll.cloud/v1/crypto/price?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/apitoll-crypto-price-lookup-474115a8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0kD-lB35RXWhNCAQmc6mS

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 apitoll-crypto-price-lookup-474115a8
```

Example prompt: What are the current prices of BTC, ETH, and SOL — and also pull the historical price of coingecko:solana as of Unix timestamp 1781516766?

## When to prefer this

Use this endpoint when you need real-time or point-in-time USD prices for one or many crypto tokens by flexible identifier (symbol, CoinGecko ID, or on-chain address) without a subscription or API key. Prefer it over subscription-based price APIs when running pay-per-call pipelines, or when you need multi-chain token resolution including long-tail DeFi tokens indexed by DefiLlama.

## Known failure modes

- Unrecognized token symbol or CoinGecko ID returns the token in the 'unresolved' array with resolved:false
- Invalid chain:address format causes the entry to go unresolved
- Requesting more than 50 tokens may result in truncation or error
- Historical timestamp too far in the past may return low-confidence or missing prices
- Payment failure (x402) blocks the response entirely

## How this service works

Latest crypto token prices by ticker symbol, CoinGecko id, or chain:address (BTC, ETH, SOL, or base:0x…): current spot price, token symbol, decimals, and a confidence score, for up to 50 coins in one call. Pass ?at=<unix> for the historical price at a point in time. Sourced from DefiLlama across every major chain.

## Output

A JSON object with an array of resolved token prices (each including the token symbol, price in USD, confidence score, and timestamp), a count of requested vs resolved tokens, a list of unresolved queries, the data source (DefiLlama), and whether the response is historical or current.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "coins": "BTC,ETH,coingecko:solana"
  }
 }
}
```

## 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": {
      "at": {
       "type": "integer",
       "description": "Unix seconds for a historical price snapshot. Omit for current."
      },
      "coins": {
       "type": "string",
       "description": "Comma-separated symbols (BTC,ETH), coingecko ids (coingecko:solana), or chain:address (base:0x833…). Up to 50."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": "string"
      },
      "count": {
       "type": "number"
      },
      "prices": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "key": {
          "type": "string"
         },
         "price": {
          "type": "number"
         },
         "query": {
          "type": "string"
         },
         "symbol": {
          "type": "string"
         },
         "decimals": {},
         "resolved": {
          "type": "boolean"
         },
         "timestamp": {
          "type": "number"
         },
         "confidence": {
          "type": "number"
         }
        }
       }
      },
      "source": {
       "type": "object",
       "properties": {
        "name": {
         "type": "string"
        }
       }
      },
      "requested": {
       "type": "number"
      },
      "historical": {
       "type": "boolean"
      },
      "unresolved": {
       "type": "array",
       "items": {
        "type": "object"
       }
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "asOf": "2026-06-15T08:00:00Z",
  "count": 3,
  "prices": [
   {
    "key": "coingecko:bitcoin",
    "price": 65517.56,
    "query": "BTC",
    "symbol": "BTC",
    "decimals": null,
    "resolved": true,
    "timestamp": 1781516766,
    "confidence": 0.99
   }
  ],
  "source": {
   "name": "DefiLlama"
  },
  "requested": 3,
  "historical": false,
  "unresolved": []
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/apitoll-crypto-price-lookup-474115a8/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from crypto.apitoll.cloud](https://www.zero.xyz/host/crypto.apitoll.cloud/llms.txt)
