# x402-gateway Crypto Price API

> x402-gateway Crypto Price API is a paid API for AI agents from x402-gateway-production.up.railway.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Returns real-time cryptocurrency prices for a specified coin in a specified fiat or crypto currency

## Facts

- Endpoint: GET https://x402-gateway-production.up.railway.app/api/crypto/price
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-gateway-production-up-railway-app-7ebbf648
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EGH4AcbUi8mMOtxcMssWn

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-gateway-production-up-railway-app-7ebbf648
```

Example prompt: What's the current price of Ethereum in USD? Also check what Bitcoin is going for right now in EUR.

## When to prefer this

Use this endpoint when you need a quick, real-time spot price for a specific cryptocurrency in a specific fiat currency and are operating in an x402 payment-enabled agent context. Prefer this over scraping exchanges or using heavier financial data APIs when cost-per-call efficiency matters at $0.001 USDC.

## Known failure modes

- Unknown or unsupported coin symbol returns an error
- Unsupported fiat currency code returns an error
- Downstream price feed unavailable causes timeout or 503
- Missing required fields in POST body returns 400 bad request
- Payment not attached or insufficient USDC causes 402 Payment Required

## How this service works

Real-time cryptocurrency prices for any coin in any fiat currency

## Output

Returns the real-time spot price of the requested cryptocurrency expressed in the specified fiat currency, likely including the coin symbol, currency code, and current price value.

## Example request

```json
{
 "ids": "bitcoin,ethereum",
 "vs_currencies": "usd,eur"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "ids",
  "vs_currencies"
 ],
 "properties": {
  "ids": {
   "type": "string"
  },
  "vs_currencies": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "bitcoin",
  "ethereum"
 ],
 "properties": {
  "bitcoin": {
   "type": "object",
   "required": [
    "usd",
    "usd_24h_change"
   ],
   "properties": {
    "usd": {
     "type": "number"
    },
    "usd_24h_change": {
     "type": "number"
    }
   }
  },
  "ethereum": {
   "type": "object",
   "required": [
    "usd",
    "usd_24h_change"
   ],
   "properties": {
    "usd": {
     "type": "number"
    },
    "usd_24h_change": {
     "type": "number"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-gateway-production-up-railway-app-7ebbf648/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-gateway-production.up.railway.app](https://www.zero.xyz/host/x402-gateway-production.up.railway.app/llms.txt)
