Admin APIAnalytics
Get traffic totals
Visitors, sessions, pageviews, events and attributed conversions in the window.
Authorization
bearer_auth AuthorizationBearer <token>
Authorization: Bearer <token>. Either a session access token from POST /auth/login (refresh it with POST /auth/refresh) or a store API token (mobi_st_…). A store API token works only for the store it was issued in, and can do at most what its issuing user can there, narrowed to the scopes it was issued with.
In: header
Path Parameters
store_id*string
Store id
Format
uuidQuery Parameters
from?string
Start of the window (inclusive). Defaults to 30 days ago.
Format
date-timeto?string
End of the window (inclusive). Defaults to now.
Format
date-timeResponse Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/stores/497f6eca-6276-4993-bfeb-53cbbbba6f08/marketing/stats"{
"avg_pages_per_session": 0.1,
"conversion_revenue_cents": 0,
"conversions": 0,
"custom_events": 0,
"from": "2019-08-24T14:15:22Z",
"identifies": 0,
"pageviews": 0,
"sessions": 0,
"to": "2019-08-24T14:15:22Z",
"visitors": 0
}{
"code": "not_found",
"details": {},
"error": "Order not found"
}{
"code": "not_found",
"details": {},
"error": "Order not found"
}{
"code": "not_found",
"details": {},
"error": "Order not found"
}{
"code": "not_found",
"details": {},
"error": "Order not found"
}