Skip to main content
GET
/
metrics
/
v2
/
protocols
List all protocols
curl --request GET \
  --url https://api.messari.io/metrics/v2/protocols \
  --header 'X-Messari-API-Key: <api-key>'
import requests

url = "https://api.messari.io/metrics/v2/protocols"

headers = {"X-Messari-API-Key": "<api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {'X-Messari-API-Key': '<api-key>'}};

fetch('https://api.messari.io/metrics/v2/protocols', 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.messari.io/metrics/v2/protocols",
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-Messari-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.messari.io/metrics/v2/protocols"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("X-Messari-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.messari.io/metrics/v2/protocols")
.header("X-Messari-API-Key", "<api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://api.messari.io/metrics/v2/protocols")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["X-Messari-API-Key"] = '<api-key>'

response = http.request(request)
puts response.read_body
{
  "error": null,
  "data": {
    "data": [
      {
        "id": "1eaf063a-b8dd-4cfb-95dd-a06338565720",
        "name": "Tether",
        "slug": "tether",
        "activity": {
          "tvl24HourUsd": 189897138186.01645,
          "activeAddresses24Hour": 1060654,
          "fees24HourUsd": 14624148.950597258
        }
      },
      {
        "id": "9e46405d-d9e8-4dd3-8dc6-0cd2d81ffedc",
        "name": "Circle",
        "slug": "circle-usdc",
        "activity": {
          "tvl24HourUsd": 75331149501.26874,
          "activeAddresses24Hour": 481093,
          "fees24HourUsd": 7518154.914472456
        }
      },
      {
        "id": "675b85dc-85a1-4096-9600-212e90a56e9a",
        "name": "Aave",
        "slug": "aave",
        "activity": {
          "tvl24HourUsd": 54964415837.89591,
          "activeAddresses24Hour": 13456,
          "fees24HourUsd": 2423233.7748409403
        }
      },
      {
        "id": "8b8a7fe3-65ad-41ed-9a0c-3292d3db50e0",
        "name": "Dai",
        "slug": "dai",
        "activity": {
          "tvl24HourUsd": 16518660202.05622,
          "activeAddresses24Hour": 41266,
          "fees24HourUsd": null
        }
      },
      {
        "id": "aa76e4fd-e785-4656-ab3c-b3c133242cae",
        "name": "Spark",
        "slug": "spark-bot",
        "activity": {
          "tvl24HourUsd": 12412872654.134151,
          "activeAddresses24Hour": 58,
          "fees24HourUsd": 244397.8248833879
        }
      }
    ],
    "metadata": {
      "pageSize": 100,
      "page": 1,
      "totalRows": 208,
      "totalPages": 3
    }
  }
}
{
"data": "<unknown>",
"error": "<string>"
}
{
"data": "<unknown>",
"error": "<string>"
}
{
"data": "<unknown>",
"error": "<string>"
}

Authorizations

X-Messari-API-Key
string
header
required

Query Parameters

page
integer<int64>
default:1

Page number (1-indexed)

Example:

1

limit
integer<int64>
default:10

Number of results per page

Example:

10

sort
enum<string>
default:tvl_usd

Column to sort by (default: tvl_usd)

Available options:
tvl_usd,
active_addresses,
fees_usd,
fees_supply_side_usd,
expenses_usd,
dex_volume_usd,
borrowed_usd,
treasury_usd
order
enum<string>
default:desc

Sort direction: asc or desc (default: desc)

Available options:
asc,
desc

Response

Default response

data
array
required
error
string