# x402 Crypto Price Lookup

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

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

## Facts

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

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-4253c6ad
```

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

## When to prefer this

Choose this endpoint when you need a lightweight, low-cost real-time price check with 24h change and market cap for one or more coins. Prefer the sibling 'x402 Crypto Market Data' endpoint when you need richer data such as 24h high/low, trading volume, all-time-high, or rank. This endpoint is ideal for quick portfolio checks, price alerts, or feeding current prices into downstream computations.

## Known failure modes

- Invalid or misspelled CoinGecko coin ID returns empty result or error
- Unsupported quote currency falls back to USD or returns an error
- Missing required 'ids' query parameter causes a 400 bad request
- Network or upstream CoinGecko outage may cause 500 or timeout
- Payment failure (insufficient USDC balance) blocks the request via x402 protocol

## How this service works

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

## Output

A JSON object keyed by CoinGecko coin ID, each containing the current price in the requested quote currency, the 24-hour percentage change, and the market cap. Data is fetched live from CoinGecko and reflects real-time market conditions.

## 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"
    }
   }
  }
 }
}
```

## More

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