# AgentsTools On-Chain Token USD Price

> AgentsTools On-Chain Token USD Price is a paid API for AI agents from api.agentstools.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Returns the current USD spot price of a crypto token sourced from Chainlink oracle feeds or the most-liquid Base DEX pool

## Facts

- Endpoint: GET https://api.agentstools.dev/price
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentstools-on-chain-token-usd-price-0f2b1236
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WhYc69BYP41TxClqu0tQq

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 agentstools-on-chain-token-usd-price-0f2b1236
```

Example prompt: What is the current on-chain USD spot price of ETH — pull it from Chainlink or the most liquid Base DEX pool?

## When to prefer this

Choose this endpoint when you need a reliable, on-chain USD price for a crypto token — particularly tokens on Base — and want Chainlink oracle data as the primary source with DEX pool pricing as a fallback. Prefer this over CEX-based price APIs when you need trustless, verifiable on-chain pricing rather than exchange order book prices.

## Known failure modes

- Unknown or unsupported token symbol returns an error or empty result
- Token not listed on Chainlink or any liquid Base DEX pool may return no price
- Network latency or chain RPC issues may cause delayed or failed responses
- Malformed token symbol parameter results in a 400 bad request

## How this service works

On-chain USD spot price for 50+ assets from Chainlink feeds or the most-liquid Base DEX pool (computed from public chain state): crypto majors, stablecoins, Base-native tokens, forex currencies and precious metals.

## Output

Returns the current USD spot price of the requested token, computed from Chainlink oracle feeds or the most-liquid Base DEX pool liquidity, as a numeric value reflecting live on-chain state.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "token"
     ],
     "properties": {
      "token": {
       "type": "string",
       "description": "Symbol to price. Crypto e.g. ETH, BTC, SOL, XRP, DEGEN. Stablecoin e.g. USDT, USDC, USDe. Forex e.g. EUR, GBP, JPY. Metal e.g. XAU (gold), XAG (silver)."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentstools-on-chain-token-usd-price-0f2b1236/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.agentstools.dev](https://www.zero.xyz/host/api.agentstools.dev/llms.txt)
