> ## Documentation Index
> Fetch the complete documentation index at: https://docs.codex.io/llms.txt
> Use this file to discover all available pages before exploring further.

# getNetworkStats

> Returns metadata for a given network supported on Codex. Reference for the getNetworkStats query in the Codex API: arguments, response fields, and usage.

## GraphQL

```
type Query {
  getNetworkStats(
    networkId: Int!
    exchangeAddress: String
  ): GetNetworkStatsResponse
}

type GetNetworkStatsResponse {
  volume24: Float!
  volume12: Float!
  volume4: Float!
  volume1: Float!
  volume5m: Float!
  volumeChange24: Float!
  volumeChange12: Float!
  volumeChange4: Float!
  volumeChange1: Float!
  volumeChange5m: Float!
  liquidity: Float!
  swaps24: Int!
  swaps12: Int!
  swaps4: Int!
  swaps1: Int!
  swaps5m: Int!
}
```

### Example

[Test this query in the Explorer →](https://docs.codex.io/explore.md)

```graphql theme={null}
{
  getNetworkStats(networkId: 1399811149) {
    volume24
    volumeChange24
    liquidity
    swaps24
    swaps1
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.