List Charts
curl --request GET \
--url https://api.blockworks.com/v1/charts \
--header 'X-Blockworks-API-Key: <api-key>'import requests
url = "https://api.blockworks.com/v1/charts"
headers = {"X-Blockworks-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Blockworks-API-Key': '<api-key>'}};
fetch('https://api.blockworks.com/v1/charts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.blockworks.com/v1/charts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Blockworks-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.blockworks.com/v1/charts"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Blockworks-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.blockworks.com/v1/charts")
.header("X-Blockworks-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.blockworks.com/v1/charts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Blockworks-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"page": 1,
"total": 2,
"data": [
{
"id": 4821,
"title": "Stablecoin Supply by Issuer",
"dashboards": [
"Stablecoins",
"Market Overview"
]
},
{
"id": 5107,
"title": "Stablecoin Transfer Volume by Chain",
"dashboards": [
"Stablecoins"
]
}
]
}{
"statusCode": 400,
"message": [
"limit must not be greater than 100"
],
"error": "Bad Request"
}{
"statusCode": 401,
"message": "Unauthorized"
}{
"statusCode": 503,
"message": "Service Unavailable"
}Charts
List Charts
Returns one page of the Blockworks Charts your key can read, each with the chart id, its title, and the Blockworks Dashboards it appears on.
GET
/
v1
/
charts
List Charts
curl --request GET \
--url https://api.blockworks.com/v1/charts \
--header 'X-Blockworks-API-Key: <api-key>'import requests
url = "https://api.blockworks.com/v1/charts"
headers = {"X-Blockworks-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Blockworks-API-Key': '<api-key>'}};
fetch('https://api.blockworks.com/v1/charts', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.blockworks.com/v1/charts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Blockworks-API-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.blockworks.com/v1/charts"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Blockworks-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.blockworks.com/v1/charts")
.header("X-Blockworks-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.blockworks.com/v1/charts")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Blockworks-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"page": 1,
"total": 2,
"data": [
{
"id": 4821,
"title": "Stablecoin Supply by Issuer",
"dashboards": [
"Stablecoins",
"Market Overview"
]
},
{
"id": 5107,
"title": "Stablecoin Transfer Volume by Chain",
"dashboards": [
"Stablecoins"
]
}
]
}{
"statusCode": 400,
"message": [
"limit must not be greater than 100"
],
"error": "Bad Request"
}{
"statusCode": 401,
"message": "Unauthorized"
}{
"statusCode": 503,
"message": "Service Unavailable"
}Authorizations
API key sent in the X-Blockworks-API-Key header. Send it on its own: the charts endpoints reject a request that carries a second credential.
Query Parameters
Page number, starting at 1.
Required range:
x >= 1Charts per page.
Required range:
1 <= x <= 100Case-insensitive substring matched against the chart title and the titles of the dashboards it appears on.