# AllTheBot Token Price (USD)

> AllTheBot Token Price (USD) is a paid API for AI agents from api.zkrobotics.fr, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-12).

Returns the live USD price of any Base network token (ETH, BTC, DAI, AERO, or custom address) sourced from on-chain DEX pools (Uniswap v3, Aerodrome) with best-route routing.

## Facts

- Endpoint: GET https://api.zkrobotics.fr/x402/crypto/price?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/allthebot-token-price-usd-7a7e9c30
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_doLAU9enfFti5czhlMWec

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 allthebot-token-price-usd-7a7e9c30
```

Example prompt: What's the current on-chain USD price of WETH on Base — check Uniswap v3 and Aerodrome pools and give me the best route price.

## When to prefer this

Choose this endpoint when you need a real-time, on-chain USD price for any Base network token — especially for tokens not listed on centralized exchanges, or when you want DEX-sourced pricing (Uniswap v3 / Aerodrome) rather than CEX data. It requires no API key, supports custom contract addresses, and automatically finds the best routing path (direct or via WETH). Prefer it over CEX price APIs when Base-native or long-tail DeFi token pricing is needed.

## Known failure modes

- Unknown or unsupported token symbol returns an error or empty result
- Invalid contract address format (>42 chars or non-hex) rejected by schema validation
- Token with no liquidity pool on Base DEX returns no price data
- Network congestion may cause slight staleness in quoted price
- Request without required 'token' query parameter returns a validation error

## How this service works

Pay-per-call APIs for AI agents over x402: token safety reports, Base and Ethereum on-chain reads, crypto prices, domain checks (DNS, WHOIS, SSL, email), finance data (FX, SEC), worldwide weather forecasts, France alerts, text AI, fun content. USDC on Base, no account, no API key.

## Output

Returns a JSON object with the token's live USD price (as a string), its symbol, contract address, network (Base), the DEX venue(s) used (Uniswap v3 or Aerodrome), pool fee percentage, routing method (direct or via WETH), the quoted amount, and any alternative pricing routes. The price reflects what selling the quoted amount would return in USDC before gas and slippage — no swap is executed.

## 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",
       "maxLength": 42
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "note": "Indicative on-chain price on Base DEX pools (Uniswap v3, Aerodrome): what selling the quoted amount returns in USDC, before gas and slippage. Read-only: no swap is executed.",
  "pools": [
   {
    "venue": "Uniswap v3",
    "pool_fee_pct": 0.01
   }
  ],
  "route": "direct",
  "token": "0x4200000000000000000000000000000000000006",
  "symbol": "WETH",
  "network": "base",
  "price_usd": "2533.298715",
  "alternatives": [],
  "quoted_amount": "1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/allthebot-token-price-usd-7a7e9c30/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.zkrobotics.fr](https://www.zero.xyz/host/api.zkrobotics.fr/llms.txt)
