Get Data Analysis

Retrieve analytical data for the specified time range and dimensions.

🔒

Requires read_data access scope.

The Get Data Analysis API allows developers retrieve comprehensive analytical data for your store based on specified time ranges and dimensions.

This API is especially useful for:

  1. Tracking key e-commerce metrics and conversion funnels.
  2. Analyzing marketing campaign performance through UTM parameters.
  3. Generating custom reports with flexible dimension combinations.

Request Parameters

Public Request Parameters

📘


ParameterTypeRequiredDescriptionExample
begin_timestringYesStart time for data analysis (ISO 8601 format)"2025-01-01T00:00:00Z"
end_timestringYesEnd time for data analysis (ISO 8601 format)"2025-01-31T23:59:59Z"
indicatorarray of stringsYesMetrics to query (custom or UTM indicators)["pv","uv","orders"]
cursorstringNoPagination cursor for large result sets"next_page_token"
page_sizeint32NoNumber of results per page (default 10)20
time_zoneint32NoTimezone offset in hours (-12 to 14)8
sort_bystringNoField to sort results by"sales"
sort_directionstringNoSort direction (asc or desc)"desc"
dt_bystringNoTime aggregation granularity"dt_by_day"
dimensionarray of stringsNoDimensions for data segmentation["country_code","utm_source"]
filtersobjectNoAdditional filters for analysis{"utm_source": ["google","facebook"]}

Response Parameters

Public Response Parameters

📘

Successful Response

ParameterTypeExampleDescription
codestring"success"Status code of the API response
messagestring"Analysis data retrieved"Descriptive message about the response
data.analysisarray of objects-Array containing analysis results
data.analysis.time_periodstring"2025-01-01"Aggregated time period
data.analysis.pvint321500Page view count
data.analysis.uvint32800Unique visitor count
data.analysis.ordersint32120Completed orders
data.analysis.salesfloat5999.99Total sales amount
data.analysis.dimension_valuesobject{"country_code": "US"}Dimension values for this segment
data.next_cursorstring"next_page_token"Pagination token for next page

Error Response

FieldTypeExampleDescription
codestringInvalidParameterError http message
messagestring``Error message

API Structure Overview

Language
Credentials
Header
URL
Click Try It! to start a request and see the response here!