# Anchor X402 Token Price Lookup

> Anchor X402 Token Price Lookup is a paid API for AI agents from api.anchor-x402.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Returns the current USD price for any major cryptocurrency token, identified by symbol or by chain+contract address

## Facts

- Endpoint: POST https://api.anchor-x402.com/v1/price/token
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-anchor-x402-com-66077b88
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EZyoiT8oPdNpevXkLA9q_

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 api-anchor-x402-com-66077b88 -d '<json body>'
```

Example prompt: What's the current USD price of ETH? Also, can you grab the price of the USDC token on Base using its contract address 0x833589fcd6edb6e08f4c7c32d4f71b54bda02913?

## When to prefer this

Use this endpoint when you need a quick, low-cost ($0.001 USDC) spot USD price for a specific token identified by either its well-known symbol or its on-chain contract address. Prefer this over general financial APIs when working in a crypto-native, agent-driven pipeline that supports x402 micropayments, or when you need contract-level precision across multiple chains including Base, Ethereum, Solana, Polygon, Arbitrum, Optimism, BSC, and Avalanche.

## Known failure modes

- Symbol not recognized — returns error if the token symbol is unknown or unsupported
- Missing required parameter combination — chain provided without contract or vice versa returns validation error
- Unsupported chain slug — unrecognized chain identifier returns an error
- Token contract not found on specified chain — returns error if the contract address does not exist or is not indexed
- Rate or payment failure — x402 payment not accepted results in 402 response

## How this service works

USD token price (POST wrapper, body: {symbol} or {chain, contract}) — $0.001 USDC

## Output

A USD price value for the requested token, returned as a structured JSON object. The caller provides either a token symbol (e.g. BTC, ETH, SOL) or a chain slug plus contract address, and receives the current market price in USD.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "symbol": "ETH"
  }
 }
}
```

## Request schema (JSON Schema)

```json
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string",
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ]
    },
    "bodyType": {
     "type": "string",
     "enum": [
      "json",
      "form-data",
      "text"
     ]
    },
    "body": {
     "properties": {
      "symbol": {
       "type": "string",
       "description": "Token symbol (BTC, ETH, SOL, USDC, …). Mutually exclusive with chain+contract."
      },
      "chain": {
       "type": "string",
       "description": "Chain slug: base, ethereum, solana, polygon, arbitrum, optimism, bsc, avalanche."
      },
      "contract": {
       "type": "string",
       "description": "Token contract address. Required with chain."
      }
     }
    }
   },
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   },
   "required": [
    "type"
   ]
  }
 },
 "required": [
  "input"
 ]
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "usd": 3120.55,
  "name": "Ethereum",
  "chain": null,
  "source": "coingecko",
  "symbol": "ETH",
  "contract": null,
  "fetched_at": 1746820000,
  "age_seconds": 0,
  "market_cap_usd": 375000000000,
  "usd_24h_change_pct": 1.23
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-anchor-x402-com-66077b88/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.anchor-x402.com](https://www.zero.xyz/host/api.anchor-x402.com/llms.txt)
