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

# usageHistoryV2

> Get customer's usage history for a feature



**query** `usageHistoryV2(input: UsageHistoryV2Input!): UsageHistoryV2!`

## Arguments

**`input`**: `UsageHistoryV2Input!` (required)

Input parameters for retrieving usage history

## Returns

`UsageHistoryV2!`

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

Markers for events that affecting feature usage

---

**`pageInfo`**: `PageInfo`

Cursor pagination info for series groups; present only when paging input is provided.

---

**`series`**: `[UsageHistorySeries!]!`

Series of usage history

## Examples

```graphql Query
query UsageHistoryV2($input: UsageHistoryV2Input!) {
  usageHistoryV2(input: $input) {
    markers {
      timestamp
      type
    }
    pageInfo {
      endCursor
      hasNextPage
      hasPreviousPage
      startCursor
    }
    series {
      points {
        isResetPoint
        timestamp
        value
      }
      tags {
        key
        value
      }
    }
  }
}
```

```json Variables
{
  "input": {
    "customerId": "string",
    "featureId": "string",
    "startDate": "value"
  }
}
```

```json Response
{
  "data": {
    "usageHistoryV2": {
      "markers": [
        {
          "timestamp": "value",
          "type": "PERIODIC_RESET"
        }
      ],
      "pageInfo": {
        "endCursor": "value",
        "hasNextPage": true,
        "hasPreviousPage": true,
        "startCursor": "value"
      },
      "series": [
        {
          "points": [
            {
              "isResetPoint": true,
              "timestamp": "value",
              "value": 1.5
            }
          ],
          "tags": [
            {
              "key": "string",
              "value": "string"
            }
          ]
        }
      ]
    }
  }
}
```


## Related topics

- [UsageHistoryV2](https://docs.stigg.io/graphql-reference/types/UsageHistoryV2.md)
- [UsageHistoryV2Input](https://docs.stigg.io/graphql-reference/types/UsageHistoryV2Input.md)
- [UsageHistory](https://docs.stigg.io/graphql-reference/types/UsageHistory.md)
- [usageHistory](https://docs.stigg.io/graphql-reference/queries/usageHistory.md)
- [UsageV2](https://docs.stigg.io/graphql-reference/types/UsageV2.md)


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