# Blockchain.info Bitcoin Transaction Fees USD Per Transaction Chart

> Blockchain.info Bitcoin Transaction Fees USD Per Transaction Chart 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 time-series data of average Bitcoin transaction fees denominated in USD per transaction from Blockchain.com Explorer

## Facts

- Endpoint: POST https://api.blockchain.info/explorer-gateway-kt/x402/charts/fees-usd-per-transaction?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-info-bitcoin-transaction-fees-usd-per-transaction-chart-76193df1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JUnPJO83e6-fYlHem4-C5

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-info-bitcoin-transaction-fees-usd-per-transaction-chart-76193df1 -d '<json body>'
```

Example prompt: Pull the Blockchain.com Explorer chart for Bitcoin fees in USD per transaction over the last year, using an 8-hour rolling average, and give me the data as JSON.

## When to prefer this

Choose this endpoint when you need authoritative Bitcoin transaction fee data in USD denomination from Blockchain.com Explorer, particularly when you want flexible time ranges (hours to years), rolling average smoothing, and a choice between JSON and CSV output. Prefer this over generic crypto data APIs when you specifically need Blockchain.com's fee-per-transaction USD metric with chart-quality time-series resolution.

## Known failure modes

- Invalid timespan format (e.g. unsupported string) returns a 400 error
- Invalid rollingAverage window string returns a 400 or empty result
- Payment not received or x402 payment failure results in 402 response
- Network timeout or upstream Blockchain.com data unavailability returns 5xx
- Requesting a CSV format but parsing as JSON causes client-side errors
- Very short timespans (e.g. 1h) may return sparse or empty data sets

## How this service works

Paid AI-agent access to Blockchain.com Explorer API

## Output

Returns a time-series dataset of average Bitcoin transaction fees in USD per transaction. In JSON format, includes structured metadata (if requested) and an array of {timestamp, value} data points with optional rolling average applied. In CSV format, returns raw comma-separated rows of timestamp and value columns. The data can be sampled to reduce the number of points returned.

## 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": "Fees per Transaction (USD)",
  "unit": "USD",
  "period": "day",
  "status": "ok",
  "values": [
   {
    "x": 1704067200,
    "y": 2.58
   },
   {
    "x": 1704153600,
    "y": 2.91
   }
  ],
  "description": "A chart showing the total transaction fees paid to miners divided by the number of transactions."
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/blockchain-info-bitcoin-transaction-fees-usd-per-transaction-chart-76193df1/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)
