# api.api-agent-ia.ch Real-Time Token Price

> api.api-agent-ia.ch Real-Time Token Price is a paid API for AI agents from api.api-agent-ia.ch, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-23).

Returns the current USD price of a blockchain token given its contract address or symbol.

## Facts

- Endpoint: GET https://api.api-agent-ia.ch/prix-token?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-api-agent-ia-ch-real-time-token-price-6397d8ae
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gxWcrn2IpF6mYJzXqfgz7

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-api-agent-ia-ch-real-time-token-price-6397d8ae
```

Example prompt: What's the current USD price of the token at contract address 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48?

## When to prefer this

Choose this endpoint when you need a quick, real-time USD price lookup for a specific blockchain token by contract address or symbol, especially within an agentic workflow that already uses the api.api-agent-ia.ch suite of blockchain tools. It is well-suited for lightweight, per-call pricing queries where you do not need historical OHLCV data, order book depth, or multi-token batch pricing in a single call.

## Known failure modes

- Unknown or unsupported token address returns an error or empty price
- Malformed token address in query parameter causes a 400-level error
- Network or upstream price feed outage may return stale or unavailable data
- Missing required 'token' query parameter results in a validation error
- Token with no active market or very low liquidity may return null or zero price

## How this service works

What is this token worth in USD? Returns the current DefiLlama price of a token on Base (contract address, or eth / weth / usdc) with symbol, confidence and timestamp ($0.005 per call).

## Output

A JSON object containing the token identifier (address or symbol) and its current price in USD as a floating-point number, e.g. {"token": "0x...", "prix_usd": 1.5}.

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "token": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
  "reseau": "base",
  "source": "defillama",
  "symbole": "USDC",
  "prix_usd": 0.9995782267624443,
  "confiance": 0.99,
  "horodatage": 1792761063
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-api-agent-ia-ch-real-time-token-price-6397d8ae/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.api-agent-ia.ch](https://www.zero.xyz/host/api.api-agent-ia.ch/llms.txt)
