# fastapi.online — Token Price Onchain Lookup

> fastapi.online — Token Price Onchain Lookup is a paid API for AI agents from api.fastapi.online, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-29).

Returns the current on-chain token price for a given wallet address and blockchain platform

## Facts

- Endpoint: POST https://api.fastapi.online/token-price-onchain?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fastapi-online-token-price-onchain-lookup-0744ee8b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5G366bZTzv8OzkiObzM40

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 fastapi-online-token-price-onchain-lookup-0744ee8b -d '<json body>'
```

Example prompt: What is the current on-chain token price for the address 0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48 on the Ethereum platform?

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call on-chain token price lookup without requiring an API key signup. Useful for agents needing real-time DeFi or blockchain token prices by contract address and platform, especially when integrating with crypto-native workflows that already use x402/USDC micropayments.

## Known failure modes

- Invalid or malformed address returns an error or empty result
- Unsupported platform name returns an error
- Address not found on the specified chain returns null or zero price
- Network or RPC connectivity issues may cause timeouts
- Rate limiting or payment failure returns 402 or 429 status

## How this service works

Chat, embeddings, OCR, speech-to-text, image editing, image understanding (captioning/Q&amp;A), text-to-speech, translation, writing tools, classification tools, developer tools, local utilities, format/checksum validators, encoding &amp; crypto utilities, date/time calculators, geo/coordinate math, math &amp; finance calculators, novelty tools, and business/social writing generators — 179 endpoints in all, across multiple specialized self-hosted models. Pay per call with crypto — no signup — or get an API key.

## Output

Returns the current on-chain price of a token associated with the provided wallet or contract address on the specified blockchain platform, likely as a numeric price value with associated metadata such as currency denomination or timestamp.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "address": {
   "type": "string"
  },
  "platform": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fastapi-online-token-price-onchain-lookup-0744ee8b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.fastapi.online](https://www.zero.xyz/host/api.fastapi.online/llms.txt)
