# Token Price by Contract Address

> Token Price by Contract Address is a paid API for AI agents from api.marketintelligenceapi.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-11).

Returns the live USD price of any ERC-20 token on Base, Ethereum, Arbitrum, Optimism, or Polygon by simulating a $100 buy/sell on the best DEX route, with buy/sell prices, round-trip spread, total supply, and FDV.

## Facts

- Endpoint: GET https://api.marketintelligenceapi.com/api/v1/intelligence/token-price/:address?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/token-price-by-contract-address-f8f88fd3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VRFESAOEHGQh0pD_UsBP6

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 token-price-by-contract-address-f8f88fd3
```

Example prompt: What's the current live price of the token at contract address 0x940181a94a35a4569e4529a3cdfb74e38fd98631 on Base — including buy price, sell price, and fully diluted value?

## When to prefer this

Choose this endpoint when you need the live on-chain price of any ERC-20 token — especially newly launched tokens not yet indexed by aggregators like CoinGecko or CoinMarketCap. Prefer this over traditional price APIs when you need real DEX-sourced prices with liquidity context (buy/sell spread, round-trip cost) rather than aggregated last-trade prices. It is especially valuable for DeFi agents, trading bots, and portfolio tools that must handle tokens across Base, Ethereum, Arbitrum, Optimism, and Polygon by their raw contract addresses.

## Known failure modes

- Contract address not found on the specified chain — returns error or empty result
- Token has no liquidity pool on any supported DEX — price simulation fails
- Invalid or malformed contract address (non-0x or wrong length) — returns validation error
- Unsupported chain specified — returns 400-level error
- Network or RPC outage causes stale or failed simulation — returns error or timeout

## How this service works

Token price by contract address, live from the chain ($0.001): USD price of any ERC-20 on Base, Ethereum, Arbitrum, Optimism or Polygon from a simulated $100 buy and sale on the best DEX route (Uniswap v2/v3/v4, Aerodrome), with buy and sell price, round-trip cost as a liquidity gauge, total supply and fully diluted value. Use for the current price of any token, including ones too new for price APIs.

## Output

Returns the live USD buy price, USD sell price, round-trip cost (as a liquidity gauge), the DEX route used (Uniswap v2/v3/v4 or Aerodrome), total token supply, and fully diluted value — all derived from a simulated $100 buy and sell on-chain.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object",
     "required": [
      "address"
     ],
     "properties": {
      "address": {
       "type": "string",
       "examples": [
        "0x940181a94a35a4569e4529a3cdfb74e38fd98631"
       ],
       "description": "ERC-20 contract address (0x...) on the chain given by ?chain."
      }
     },
     "additionalProperties": false
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "chain": {
       "enum": [
        "base",
        "ethereum",
        "arbitrum",
        "optimism",
        "polygon"
       ],
       "type": "string",
       "default": "base",
       "description": "Chain the token lives on. Not the payment network."
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "description": "Example JSON response returned by this endpoint"
    }
   },
   "additionalProperties": true
  }
 },
 "additionalProperties": false
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/token-price-by-contract-address-f8f88fd3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.marketintelligenceapi.com](https://www.zero.xyz/host/api.marketintelligenceapi.com/llms.txt)
