ItemStatistics Object
Description
Aggregated statistics for an item over a given date range.
Declaration
type ItemStatistics {
granularity: StatisticsGranularity!
pageViews: Int!
sold: Int!
series: [StatisticsDataPoint!]!
campaignEvents: [StatisticsCampaignEvent!]!
stockHistory: [StatisticsStockPoint!]!
lastSoldAt: Date
countrySales: [StatisticsCountryPoint!]!
}
Fields
| Name | Type | Description |
|---|---|---|
granularity | StatisticsGranularity! | Bucket granularity chosen for the series based on the date range. |
pageViews | Int! | Total page views in the period. |
sold | Int! | Total units sold in the period. |
series | [StatisticsDataPoint!]! | Time series of page views and sales. |
campaignEvents | [StatisticsCampaignEvent!]! | Newsletter campaigns that featured this item during the period. |
stockHistory | [StatisticsStockPoint!]! | Raw stock quantity update events extracted from item logs. |
lastSoldAt | Date | Date of the most recent sale for this item (null if never sold). |
countrySales | [StatisticsCountryPoint!]! | Top countries by order count for this item. |