# x402 Price API – Price History

> x402 Price API – Price History 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 historical price data for a specified cryptocurrency (e.g. Bitcoin, Ethereum) via a pay-per-call x402 endpoint

## Facts

- Endpoint: GET https://x402-api-production-bd43.up.railway.app/price-history?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-price-api-price-history-914e0676
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jOnqKeUwl5jp-fmmh46Pm

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-price-api-price-history-914e0676
```

Example prompt: Can you pull the price history for Bitcoin using the x402 Price API?

## When to prefer this

Choose this endpoint when you need historical price data for a specific cryptocurrency and are already operating within the x402 micropayment ecosystem. It is cost-effective at $0.01 per call and is Coinbase-curated, making it a trusted source. Prefer it over scraping or free-tier APIs when you need reliable, pay-as-you-go access without API key management overhead.

## Known failure modes

- Missing or invalid 'coin' parameter returns an error or empty result
- Unsupported coin ID returns a not-found or validation error
- Payment failure (insufficient USDC or x402 protocol error) blocks access with a 402 response
- Rate limiting or service downtime returns 5xx errors
- Misspelled coin ID (e.g. 'btc' instead of 'bitcoin') may return no results

## How this service works

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

## Output

A time-series dataset of historical prices for the requested cryptocurrency, likely including timestamps and price values in USD or equivalent fiat, returned as structured JSON.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "coin": {
   "type": "string",
   "description": "Coin ID (e.g. bitcoin, ethereum)"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-price-api-price-history-914e0676/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)
