> ## 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.

# usageData

> Returns the compute units charged for the current request, broken down by component, so you can see what a query costs before running it at volume.

## GraphQL

```
type Query {
  usageData: UsageData!
}

type UsageDataMetrics {
  count: String!
  bytes: String!
  durationMs: String!
  computeUnits: String!
}

type UsageDataItem {
  resource: String!
  entityType: String
  metrics: UsageDataMetrics!
}

type UsageData {
  items: [UsageDataItem!]!
  total: UsageDataMetrics!
}
```


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