# Blockchain.com NVT Chart API

> Blockchain.com NVT 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 Bitcoin Network Value to Transactions (NVT) ratio chart data over a configurable time period with optional rolling averages

## Facts

- Endpoint: POST https://api.blockchain.info/explorer-gateway-kt/x402/charts/nvt?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-nvt-chart-api-b57f4766
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_s9JtGNccHj1_tKkP3J4Fb

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-nvt-chart-api-b57f4766 -d '<json body>'
```

Example prompt: Pull the Bitcoin NVT ratio chart from Blockchain.com for the past 3 years in JSON format with a 24-hour rolling average so I can see if Bitcoin is currently over or undervalued.

## When to prefer this

Use this endpoint when you need on-chain Bitcoin NVT ratio data specifically from Blockchain.com's explorer, particularly when you want configurable rolling averages, flexible time spans, and a choice between JSON and CSV output formats. Prefer this over generic crypto price APIs when the goal is fundamental on-chain valuation analysis rather than spot price data.

## Known failure modes

- Invalid timespan format returns 400 bad request
- Invalid rollingAverage window format causes parsing error
- Payment failure or missing x402 payment header returns 402 Payment Required
- Rate limiting may return 429 Too Many Requests
- Requesting extremely granular data without sampling may timeout or return large payloads
- CSV format returns no metadata even if metadata=true is set

## How this service works

Paid AI-agent access to Blockchain.com Explorer API

## Output

Returns NVT ratio time-series data as either structured JSON (with optional metadata fields like name, description, unit, and an array of {x: timestamp, y: value} data points) or raw CSV with timestamp and value columns. Data can be sampled for efficiency and smoothed via a configurable rolling average window.

## 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": "Network Value to Transactions (NVT) Ratio",
  "unit": "Ratio",
  "period": "day",
  "status": "ok",
  "values": [
   {
    "x": 1704067200,
    "y": 34.82
   },
   {
    "x": 1704153600,
    "y": 35.41
   }
  ],
  "description": "The ratio of the market capitalisation of Bitcoin to the USD value transferred on the network."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/blockchain-com-nvt-chart-api-b57f4766/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)
