Get statistics and historical chart data for the bitcoin network. View full API documentation.
var statistics = require('blockchain.info/statistics');All method options can include an apiCode property to prevent hitting request limits.
Usage:
statistics.get(options);Responds with a json object containing an overview of many Bitcoin statistics (view an example response here), unless the stat option is specified.
Options (optional):
stat- get only one specific stat, rather than the entire json object response, ex:"n_btc_mined"(string)
Usage:
statistics.getChartData(chartType, options);Responds with a json object that has a values property set to an array of chart coordinate objects in the form: {x:<number>,y:<number>}.
Parameters:
chartType- specifies which chart you want to get, ex: "total-bitcoin" (string, required)