# AgentEarn x402 — Token Market Data (Live)

> AgentEarn x402 — Token Market Data (Live) is a paid API for AI agents from x402-20260909-agent.projectk.org, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-15).

Returns live token market data (price in USD, ATH, name, symbol) for a specified cryptocurrency, paid per-call in USDC via x402 on Base mainnet with no API key required.

## Facts

- Endpoint: GET https://x402-20260909-agent.projectk.org/tokens
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agentearn-x402-token-market-data-live-28fb4de5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_nyReog3Hbwcv82GpiyBEb

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 agentearn-x402-token-market-data-live-28fb4de5
```

Example prompt: What's the current USD price and all-time high for Bitcoin? Use a pay-per-call data feed — no API key, just my wallet.

## When to prefer this

Prefer this endpoint when you need real-time token price data without API key registration, especially in autonomous agent workflows where wallet-based micropayments (x402/USDC on Base) are already supported. Ideal for one-off or low-frequency lookups where a subscription would be overkill, or when operating in a trustless, account-free environment.

## Known failure modes

- Invalid or unrecognized token ID returns an error or empty result
- Insufficient USDC balance in wallet causes payment failure and no data returned
- Network or Base mainnet congestion may delay payment settlement
- Token ID must match the provider's canonical slug (e.g. 'bitcoin' not 'BTC')
- x402 facilitator downtime may block payment and data delivery

## How this service works

Pay-per-call live data APIs settled in USDC on Base (Ethereum) mainnet via x402. No accounts, no API keys — just a wallet. Covers live crypto ticker prices, GitHub repo metrics, Base gas price, and token market data. Payment goes to the operator's Base address.

## Output

A JSON object containing the token's ID, current USD price, all-time high USD price, human-readable name, and ticker symbol (e.g. {id: 'bitcoin', usd: 60000, name: 'Bitcoin', symbol: 'btc', ath_usd: 70000}). Payment of $0.002 USDC is deducted per successful call via x402 on Base mainnet.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "id": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "id": "bitcoin",
  "usd": 60000,
  "name": "Bitcoin",
  "symbol": "btc",
  "ath_usd": 70000
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agentearn-x402-token-market-data-live-28fb4de5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-20260909-agent.projectk.org](https://www.zero.xyz/host/x402-20260909-agent.projectk.org/llms.txt)
