API
On this page, you can find our different endpoints and some examples of how to quickly connect them to your favorite data analytics tool.
Our API endpoint can be found at https://api.growthepie.xyz/
Master endpoint
This endpoint contains info on all supported chains and metrics. It is mostly static meta data like chain names, important links, etc.
Contracts endpoint
We are moving all contract labeling logic to the Open Labels Initiative standard. As a first step, we released labels.growthepie.xyz and are currently working on better API endpoints. Please reach out to us via our Discord or X if you need API access to the new labels dataset - your input will be very valuable for scoping our API endpoints)
DEPRECATED (not updated anymore)! This endpoint returns all labeled contracts for all our covered chains. It includes contract address, contract name, project name, sub category key, and origin key (which is the chain)
Sample Reponse
Metric endpoint
These are multiple endpoints, one for each metric that we list.
It is currently available for the following metrics:
daa, fdv, fees, market_cap, profit, rent_paid, stables_mcap, throughput, tvl, txcosts, txcount
Example
Sample Response
Metrics that represent values in currencies like USD or ETH always contain 2 metric keys (i.e. tvl and tvl_eth)
Fundamentals endpoint
This is a very powerful endpoint for analytics and tracking. It returns all Layer 2 metrics for all chains on a daily aggregation level. The data updates daily at 5 a.m. UTC.
v1/fundamentals_full.json
This endpoint will grow in size and will return >10MB of data. We also created a filtered endpoint (only last 365 days and no eth values) which can be used in Google Sheets and other applications that limit the input data to 10MB.
v1/fundamentals.json
Sample Response
Example Python
You can quickly load data on all Layer 2s into a Pandas dataframe using the following code snippet:
If you want to quickly visualize the data points you can use the dataframe plot function. Here filtered down to Arbitrum and transaction count:
Example Excel
Excel is still the most widely used tool for data analytics. Using our API, you can build this neat dashboard in less than 2 minutes:
Here is a quick guide on how to pull data from our API and visualize it
Example PowerBI
PowerBI is a powerful BI and data visualization tool. If you want to load all Layer 2 data into a PowerBI dashboard follow these steps:
Open a new PowerBI file
Load data using the "Web" data connector
Paste the API endpoint in the URL field
Make sure the "value" column is formatted as decimal
Load the data into your report and have fun exploring.
Here is a quick video walkthrough: https://x.com/web3_data/status/1697573767751548953?s=20
Example Google Sheets
Sometimes it can be useful to have up-to-date Layer 2 data in Google Sheets. With our endpoint, it is very simple.
Create app script for ImportJson function (code: https://gist.github.com/paulgambill/cacd19da95a1421d3164)
Paste function in cell
Last updated