Search…
⌃K
Links
ℹ

Get project info

TL;DR

You can fetch project's metadata information with this endpoint. You can use the following examples in cURL and Python to get started within seconds. The query fetches Aave's project information.
cURL
Python
1
# Set your API Key here.
2
API_TOKEN="d3adb33f-c123-45b6-7890-c0ff33"
3
curl \
4
-H "content-type: application/json" \
5
-H "authorization: Bearer $API_TOKEN" \
6
"https://api.tokenterminal.com/v2/projects/aave"
1
import requests, json
2
# Set your API Key here.
3
API_TOKEN="d3adb33f-c123-45b6-7890-c0ff33"
4
headers = {"Authorization": f"Bearer {API_TOKEN}"}
5
r = requests.get("https://api.tokenterminal.com/v2/projects/aave", headers=headers)
6
print(r.json())

Deep dive

This endpoint gives relevant metadata information about a project. It acts as a single source of truth for determining which metrics are supported for a given project. The available metrics for each project are broken down further by business lines, business models, chains and versions.
GET v2/projects/:project_id
The slug on the Project dashboard should be used as the Path parameter. Alternatively you can use the Get projects endpoint to get the project_id.

Response

Attributes:

metric_availability array of metric objects: Metrics that are available for a given project. The breakdowns for each available metric can be found under each metric's object:
  1. 1.
    business_line array of strings: project's supported business lines, e.g. lending, exchange_amm .
  2. 2.
    business_model array of strings: project's supported business models, currently interest or transaction-based.
  3. 3.
    chain array of strings: chains where project has been deployed.
  4. 4.
    version array of strings: different on-chain deployment versions.
{
"data": {
"metric_availability": {
"fees": {
"business_line": [
"lending"
],
"business_model": [
"interest"
],
"chain": [
"ethereum",
"avalanche",
"polygon",
"optimism",
"arbitrum",
"fantom"
],
"version": [
"v2",
"v3"
]
}
}
}
}