---
title: "A chart series as data"
method: GET
path: "/charts/{network}/{series}/{interval}"
tags: ["Charts"]
---

# A chart series as data

`GET /charts/{network}/{series}/{interval}`

## Request

- Base URL: `https://sochain.com/api/v3`
- URL: `https://sochain.com/api/v3/charts/{network}/{series}/{interval}`
- Auth: one of:
  - none
  - API key in header `API-KEY`
  - API key in query parameter `api_key`

Price, fees, activity, mining and supply per block, hour, day or minute. One request per call; cached until the network's next block (minute series about 10 seconds).

## Path parameters

- `network` 'BTC' | 'LTC' | 'DOGE' | 'ZEC' | 'BTCTEST' | 'LTCTEST' | 'DOGETEST' | 'ZECTEST', required
- `series` 'tx_count' | 'fees_total' | 'fees_median' | 'block_size' | 'difficulty' | 'hashrate' | 'supply' | 'price_usd' | 'tx_per_min' | 'block_interval' | 'pool_share' | 'lookalikes' | 'mempool_txs' | 'mempool_bytes' | 'holder_share' | 'new_addresses' | 'active_addresses' | 'transfers' | 'mweb_pool' | 'mweb_flows' | 'zcash_pools', required
- `interval` 'block' | 'hour' | 'day' | 'minute', required

## Query parameters

- `from` integer
- `to` integer
- `currency` 'AUD' | 'BRL' | 'CAD' | 'CHF' | 'CNY' | 'CZK' | 'DKK' | 'EUR' | 'GBP' | 'HKD' | 'HUF' | 'IDR' | 'ILS' | 'INR' | 'ISK' | 'JPY' | 'KRW' | 'MXN' | 'MYR' | 'NOK' | 'NZD' | 'PHP' | 'PLN' | 'RON' | 'SEK' | 'SGD' | 'THB' | 'TRY' | 'USD' | 'ZAR'

## Response `200`

The series.

- object
  - `status` 'success', required
  - `data` Chart, required
    - `series` 'tx_count' | 'fees_total' | 'fees_median' | 'block_size' | 'difficulty' | 'hashrate' | 'supply' | 'price_usd' | 'tx_per_min' | 'block_interval' | 'pool_share' | 'lookalikes' | 'mempool_txs' | 'mempool_bytes' | 'holder_share' | 'new_addresses' | 'active_addresses' | 'transfers' | 'mweb_pool' | 'mweb_flows' | 'zcash_pools', required
    - `interval` 'block' | 'hour' | 'day' | 'minute', required
    - `points` ChartPoint[], required: Oldest first.
      - `t` integer, required: Block time (block interval) or the start of the hour, day or minute (Unix time).
      - `v` union, required: A string for amounts (fees_total, fees_median, supply, price_usd), an object for pool_share, transfers, holder_share, lookalikes, mweb_flows and zcash_pools (mweb_pool is an amount string), otherwise a number; null where there is no data.
        - string
        - number
        - object
      - `height` integer: Block height (block interval only).
      - `provisional` boolean: Only on the newest hour of price_usd: true while v is the latest price, until that hour's opening price is settled. Absent otherwise, never false.

## Other responses

- `400`: A bad parameter or body; the message says which.
- `401`: An invalid key, no key where one is needed (buckets, webhooks, /account_info), a locked account or expired plan, or both the month's requests and the keyless rate used up. Kept as 401, with this message, for v3 compatibility.
- `404`: Unknown network code.
- `429`: Without a key, past the day's 2,500 lookups from this IP while SoChain is busy (Retry-After: 60), or past the day's most (Retry-After: seconds to 00:00 UTC). With or without one, too many requests in flight at once (Retry-After: 1, not counted).
- `503`: Briefly unavailable; retry with backoff. May carry Retry-After.

---

[API](https://skmtc.dev/sochain/apis/sochain-api.md) · [All operations](https://skmtc.dev/sochain/apis/sochain-api/llms.txt) · [OpenAPI document](https://skmtc.dev/sochain/apis/sochain-api/revisions/80682797b38f?raw)
