# PayForAPI Crypto Price — Live & Historical Token Prices

> PayForAPI Crypto Price — Live & Historical Token Prices is a paid API for AI agents from funding.payforapi.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-11).

Fetches live and historical cryptocurrency token prices by symbol, CoinGecko ID, or on-chain contract address, paid in USDC on Base via x402

## Facts

- Endpoint: POST https://funding.payforapi.com/crypto-price?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/payforapi-crypto-price-live-historical-token-prices-b708ab97
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Tbm3J69nGuLk0YyFab4OY

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 payforapi-crypto-price-live-historical-token-prices-b708ab97 -d '<json body>'
```

Example prompt: What's the current price of ETH right now, and can you also pull the historical price of BTC on March 15th, 2024?

## When to prefer this

Choose this endpoint when you need real-time or historical crypto token prices and want to query by flexible identifiers — ticker symbol, CoinGecko ID, or on-chain contract address. Especially useful when pricing obscure or newly listed DeFi tokens by contract address that may not be easily found by symbol alone. Paid per-call via x402/USDC on Base, suitable for agent-native micropayment workflows.

## Known failure modes

- Unknown or unsupported token symbol returns an error or null price
- Invalid contract address format causes a lookup failure
- Historical date out of supported range may return no data
- Network or upstream CoinGecko API unavailability causes timeout
- Malformed chain:0x address format rejected

## How this service works

Pay-per-call data services for AI agents, settled in USDC on Base via x402 (HTTP 402). No account, no API key. [Платные данные для ИИ-агентов по x402, без аккаунта и ключа.]

## Output

Returns the current or historical price of the requested cryptocurrency token in USD, along with any available token metadata such as name, symbol, and market data, keyed to the requested identifier (symbol, CoinGecko ID, or contract address).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "required": [],
   "properties": {
    "at": {
     "type": [
      "string",
      "array",
      "integer"
     ],
     "description": "Unix seconds for a historical price snapshot; omit for current prices"
    },
    "coins": {
     "type": [
      "string",
      "array",
      "integer"
     ],
     "description": "Comma-separated symbols (BTC,ETH), CoinGecko ids (coingecko:solana) or chain:address (base:0x…) — up to 50 coins"
    }
   },
   "additionalProperties": true
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "asOf": 1758188400,
  "prices": [
   {
    "price": 61250.42,
    "symbol": "BTC",
    "decimals": 8,
    "confidence": 1
   },
   {
    "price": 2410.87,
    "symbol": "ETH",
    "decimals": 18,
    "confidence": 1
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/payforapi-crypto-price-live-historical-token-prices-b708ab97/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from funding.payforapi.com](https://www.zero.xyz/host/funding.payforapi.com/llms.txt)
