Skip to main content
What is the Metrics API?
L
Written by Lavinia Talpas
Updated over a week ago

The Metrics API provides web3 developers with robust tools for accessing and analyzing on-chain activity across Avalanche’s primary network, L1s, and other supported EVM chains. From tracking transactions and gas consumption to monitoring staking data, this API delivers comprehensive metrics for seamless integration into blockchain applications.

The Metrics API powers the graphs and data visualizations on the Avalanche Explorer, offering both real-time and historical insights that are crucial for building data-driven blockchain products.

Key Features

  • Chain Throughput:

    • Gas consumption metrics: Tracks the amount of gas used per second for network operations.

    • Transactions Per Second (TPS): Measures how many transactions are processed per second.

    • Gas prices over time: Shows the average and peak gas prices at different times.

  • Cumulative Metrics:

    • Address growth: Total number of active addresses on the network.

    • Contract deployments: The number of smart contracts deployed over time.

    • Transaction counts: Cumulative count of all transactions on the network.

  • Staking Information:

    • Validator and delegator data: Number of active validators and delegators on the network.

    • Staking weights across subnets: Total staked amounts by validators and delegators in the network.

  • Blockchain and Subnet Info:

    • EVM Chain IDs: Identifiers for different EVM-compatible chains.

    • Blockchain IDs: Unique identifiers for each blockchain on the Avalanche network.

    • Subnet associations: Information on which subnet a blockchain is associated with.

  • Advanced Queries:

    • Customizable metric combinations: Ability to combine multiple metrics for in-depth analysis.

    • Filtered, detailed data retrieval: Perform queries with filters to retrieve specific data sets.

Test the APIs

The API Playground within the documentation allows users to easily test and interact with the Metrics API. It provides an environment to execute API calls directly from the docs, helping developers explore the endpoints and see live responses in a user-friendly interface.

Getting Started

For users looking to get started with the Data API, detailed guides are available to assist in setting up accounts, obtaining API keys, and making the first query.


For any additional questions, please view our other knowledge base articles or contact a support team member via the chat button. Examples are for illustrative purposes only.

Did this answer your question?