# x402 Crypto Price Lookup

> x402 Crypto Price Lookup is a paid API for AI agents from x402tap.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-11).

Returns current price, 24-hour percentage change, and market cap for one or more cryptocurrencies in a chosen quote currency

## Facts

- Endpoint: GET https://x402tap.com/api/crypto-price?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-crypto-price-lookup-f454c895
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_CO1hR9tQ791yaUZ-mZ90Q

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-crypto-price-lookup-f454c895
```

Example prompt: What are the current prices, 24h changes, and market caps for bitcoin and ethereum in USD?

## When to prefer this

Use this endpoint when you need a fast, lightweight price check with 24h change and market cap for one or more cryptocurrencies and cost-per-call efficiency matters. Prefer this over the sibling 'x402 Crypto Market Data' endpoint when you don't need extended data like ATH, 24h high/low, or trading volume — this endpoint is simpler and cheaper for basic price lookups.

## Known failure modes

- Invalid or unrecognized CoinGecko coin ID returns an error or empty result
- Unsupported quote currency may return an error or fall back to USD
- Payment failure (insufficient USDC) results in a 402 response
- Rate limiting or upstream CoinGecko unavailability may cause transient errors
- Missing required 'ids' query parameter results in a validation error

## How this service works

Look up current price, 24h change, and market cap for one or more cryptocurrencies

## Output

A JSON object containing the quote currency and an array of coin objects, each with the coin's CoinGecko ID, current price (in the requested quote currency), 24-hour percentage price change, and market capitalization.

## 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": [
      "ids"
     ],
     "properties": {
      "vs": {
       "type": "string",
       "description": "Quote currency, e.g. \"usd\", \"eur\" (default usd)"
      },
      "ids": {
       "type": "string",
       "description": "Comma-separated CoinGecko coin ids, e.g. \"bitcoin,ethereum\""
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "vs": "usd",
  "prices": [
   {
    "id": "bitcoin",
    "price": 63151,
    "marketCap": 1267177736333,
    "change24hPct": -0.2
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-crypto-price-lookup-f454c895/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402tap.com](https://www.zero.xyz/host/x402tap.com/llms.txt)
