# Blockchain.com Explorer Market Price Chart API

> Blockchain.com Explorer Market Price Chart API is a paid API for AI agents from api.blockchain.info, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-02).

Returns historical Bitcoin market price chart data over a configurable timespan with optional rolling average smoothing

## Facts

- Endpoint: POST https://api.blockchain.info/explorer-gateway-kt/x402/charts/market-price?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/blockchain-com-explorer-market-price-chart-api-e6b14a01
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wAW3HxMjHCed9pKAl9pT4

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 blockchain-com-explorer-market-price-chart-api-e6b14a01 -d '<json body>'
```

Example prompt: Pull the Blockchain.com market price chart for Bitcoin over the last year in JSON format with an 8-hour rolling average applied.

## When to prefer this

Use this endpoint when you need historical Bitcoin market price data specifically from Blockchain.com's Explorer, with built-in rolling average smoothing and flexible timespan selection. Prefer this over generic crypto APIs when you want Blockchain.com's proprietary market price series with sampling and averaging built in, and when you need both JSON and CSV output options in a single endpoint.

## Known failure modes

- Invalid timespan format returns 400 error
- Invalid rollingAverage window string returns 400 error
- Invalid format enum value returns 400 error
- Payment not completed (x402) returns 402 Payment Required
- Network timeout for large timespans with high granularity
- Rate limiting if called excessively in short succession

## How this service works

Paid AI-agent access to Blockchain.com Explorer API

## Output

Returns structured JSON (or CSV) containing historical Bitcoin market price data points with timestamps and price values. JSON mode includes optional metadata about the chart. Rolling average smoothing and sampling are applied based on parameters. Covers the requested timespan (e.g. 24h, 7d, 1y, 3y) at the configured granularity.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "cors": {
   "type": "boolean",
   "default": false,
   "description": "Enable CORS headers"
  },
  "format": {
   "enum": [
    "json",
    "csv"
   ],
   "type": "string",
   "default": "json",
   "description": "Response format:\n- `json` — Returns structured JSON with metadata and values\n- `csv` — Returns raw CSV data with timestamp and value columns (no metadata)\n"
  },
  "sampled": {
   "type": "boolean",
   "default": true,
   "description": "Apply sampling to reduce data points"
  },
  "metadata": {
   "type": "boolean",
   "default": false,
   "description": "Include metadata in response"
  },
  "timespan": {
   "type": "string",
   "default": "1y",
   "example": "1y",
   "description": "Time period (e.g., \"24h\", \"7d\", \"1y\", \"3y\")"
  },
  "rollingAverage": {
   "type": "string",
   "default": "8h",
   "example": "8h",
   "description": "Rolling average window (e.g., \"8h\", \"24h\")"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "format": "application/json",
 "example": {
  "name": "Market Price (USD)",
  "unit": "USD",
  "period": "day",
  "status": "ok",
  "values": [
   {
    "x": 1704067200,
    "y": 94210.33
   },
   {
    "x": 1704153600,
    "y": 95880.17
   }
  ],
  "description": "Average USD market price across major bitcoin exchanges."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/blockchain-com-explorer-market-price-chart-api-e6b14a01/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.blockchain.info](https://www.zero.xyz/host/api.blockchain.info/llms.txt)
