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

# usageHistory

> Get usage istory



**query** `usageHistory(usageHistoryInput: UsageHistoryInput!): UsageHistory!`

> Deprecated: usage usageHistoryV2 instead

## Arguments

**`usageHistoryInput`**: `UsageHistoryInput!` (required)

Input parameters for retrieving usage history

## Returns

`UsageHistory!`

**`endDate`**: `DateTime`

The end date of the usage history period

---

**`groups`**: `[GroupUsageHistory!]`

Groups included in the usage history

---

**`markers`**: `[UsageMarker!]!`

Markers indicating events that affect feature usage

---

**`startDate`**: `DateTime!`

The start date of the usage history period

---

**`usageMeasurements`**: `[UsageMeasurementPoint!]!`

List of usage measurements within the period

## Examples

```graphql Query
query UsageHistory($usageHistoryInput: UsageHistoryInput!) {
  usageHistory(usageHistoryInput: $usageHistoryInput) {
    endDate
    groups {
      groupInfo {
        key
        value
      }
      usageMeasurements {
        date
        isResetPoint
        value
      }
    }
    markers {
      timestamp
      type
    }
    startDate
    usageMeasurements {
      date
      isResetPoint
      value
    }
  }
}
```

```json Variables
{
  "usageHistoryInput": {
    "customerRefId": "string",
    "featureRefId": "string",
    "startDate": "value"
  }
}
```

```json Response
{
  "data": {
    "usageHistory": {
      "endDate": "value",
      "groups": [
        {
          "groupInfo": [
            {
              "key": "string",
              "value": "string"
            }
          ],
          "usageMeasurements": [
            {
              "date": "value",
              "isResetPoint": true,
              "value": 1.5
            }
          ]
        }
      ],
      "markers": [
        {
          "timestamp": "value",
          "type": "PERIODIC_RESET"
        }
      ],
      "startDate": "value",
      "usageMeasurements": [
        {
          "date": "value",
          "isResetPoint": true,
          "value": 1.5
        }
      ]
    }
  }
}
```


## Related topics

- [UsageHistory](https://docs.stigg.io/graphql-reference/types/UsageHistory.md)
- [Get usage history](https://docs.stigg.io/api-reference/usage/get-usage-history.md)
- [UsageHistoryV2](https://docs.stigg.io/graphql-reference/types/UsageHistoryV2.md)
- [UsageHistoryPoint](https://docs.stigg.io/graphql-reference/types/UsageHistoryPoint.md)
- [UsageHistorySeries](https://docs.stigg.io/graphql-reference/types/UsageHistorySeries.md)


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