# x402 Crypto Market Data

> x402 Crypto Market Data 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 rich market data (rank, 24h high/low, volume, ATH, and more) for one or more cryptocurrencies by CoinGecko coin ID

## Facts

- Endpoint: GET https://agentx402pay.com/api/crypto-market?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-market-data-56119b2a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fwXNyvWuT2tv6wikBEDOE

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-market-data-56119b2a
```

Example prompt: Can you pull up the full market data for Bitcoin and Ethereum right now — I want to see their 24h high/low, trading volume, market rank, and all-time highs, priced in USD?

## When to prefer this

Choose this endpoint when you need detailed market statistics (rank, ATH, 24h high/low, volume) for one or more specific cryptocurrencies identified by CoinGecko ID. It is better than a simple price ticker when you need multi-field market context in a single call, and better than a trending endpoint when you already know which coins you want data for.

## Known failure modes

- Invalid or unrecognized CoinGecko coin ID returns an error or empty result
- Unsupported quote currency causes a bad request response
- Missing required 'ids' query parameter results in a validation error
- Rate limiting or upstream CoinGecko downtime may cause 5xx errors
- Payment failure (insufficient USDC balance) blocks the request via x402 protocol

## How this service works

Rich market data for one or more cryptocurrencies: rank, 24h high/low, volume, ATH, and more

## Output

A structured JSON object containing per-coin market data including price, market cap, market rank, 24h price high and low, 24h trading volume, all-time high (ATH) and ATH date, and related metrics — keyed by CoinGecko coin ID, denominated in the requested quote currency.

## 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-market-data-56119b2a/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)
