# x402-web-Extract Token Price Lookup

> x402-web-Extract Token Price Lookup is a paid API for AI agents from x402-web-extract.senpi-agent.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-10).

Returns the real-time USDC spot price for any EVM token on supported chains, paid per-call via x402 micropayment on Base mainnet.

## Facts

- Endpoint: GET https://x402-web-extract.senpi-agent.workers.dev/price?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-web-extract-token-price-lookup-9c9da1e7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ztGol7VPLwfwe4Wb-SGPw

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 x402-web-extract-token-price-lookup-9c9da1e7
```

Example prompt: What's the current USDC spot price of WETH (contract 0x4200000000000000000000000000000000000006) on the Base chain?

## When to prefer this

Choose this endpoint when you need a no-account, no-API-key real-time USDC price for any EVM token and your agent already operates on Base mainnet with USDC via the x402 payment protocol. Ideal for AI agents that need to pay micropayments autonomously per call rather than managing subscriptions or rate limits. Prefer this over centralized price APIs when you want permissionless, pay-as-you-go access with x402 compatibility.

## Known failure modes

- HTTP 402 returned if the agent's wallet has insufficient USDC balance to pay the $0.01 fee
- Invalid or unrecognized token contract address returns an error or empty result
- Unsupported chain ID returns a validation error
- No price data available for illiquid or newly deployed tokens
- Network or Cloudflare Worker downtime results in 5xx errors

## How this service works

Real-time USDC-denominated spot price for any EVM token by contract address or common symbol. Pass ?address=0x... (or ?symbol=ETH) and ?chain=base|ethereum|polygon|arbitrum|optimism|avalanche. Returns price, symbol, decimals, chain, and a timestamp.

## Output

A JSON object containing the chain identifier, token symbol, and the token's current spot price denominated in USDC (e.g. {"chain":"base","symbol":"WETH","priceUsdc":"3117.42"}). Payment of $0.01 USDC is deducted automatically via x402 before the response is returned.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "address",
      "chain"
     ],
     "properties": {
      "chain": {
       "type": "string",
       "description": "Chain id: base, ethereum, polygon, arbitrum, optimism, avalanche."
      },
      "address": {
       "type": "string",
       "description": "Token contract address (EVM)."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "chain": "base",
  "symbol": "WETH",
  "priceUsdc": "3117.42"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-web-extract-token-price-lookup-9c9da1e7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-web-extract.senpi-agent.workers.dev](https://www.zero.xyz/host/x402-web-extract.senpi-agent.workers.dev/llms.txt)
