# x402 Asset Price API

> x402 Asset Price API is a paid API for AI agents from x402-api-production-bd43.up.railway.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-20).

Returns the current market price for a given asset symbol (e.g. BTC, ETH, stocks) via a pay-per-call x402 micropayment endpoint

## Facts

- Endpoint: GET https://x402-api-production-bd43.up.railway.app/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-asset-price-api-10005b67
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_VQVWWlaqATgVS30Ikk5Eq

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-asset-price-api-10005b67
```

Example prompt: What's the current price of BTC right now? Use the x402 price API to look it up — it costs $0.01 USDC per call.

## When to prefer this

Choose this endpoint when you need a quick, cheap per-call asset price lookup and are operating in an x402-compatible micropayment environment. At $0.01 USDC per call it is cost-effective for occasional or agent-driven queries. Prefer this over subscription-based data providers when you want pay-as-you-go pricing with no API key setup, or when building agents that handle their own payments autonomously via the x402 protocol.

## Known failure modes

- Missing or invalid symbol parameter returns an error
- Payment failure (insufficient USDC balance or x402 protocol error) blocks the request
- Unknown or unsupported asset symbol may return a not-found or empty result
- Stale data if the underlying price feed has a lag
- Rate limiting or infrastructure downtime on the Railway-hosted service

## How this service works

Paid API endpoints for prices, weather, FX, news, gas, dominance, fear/greed, ATH, and more

## Output

Returns the current market price for the requested asset symbol, likely as a numeric value with currency denomination (e.g. USD price of BTC). Exact response schema may include price, symbol, timestamp, and currency fields.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "coin": {
   "type": "string",
   "description": "Coin ID (default: bitcoin)"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-asset-price-api-10005b67/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-api-production-bd43.up.railway.app](https://www.zero.xyz/host/x402-api-production-bd43.up.railway.app/llms.txt)
