curl --request GET \
--url https://omnicommerce.sg/api/v1/analytics/traffic \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://omnicommerce.sg/api/v1/analytics/traffic', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omnicommerce.sg/api/v1/analytics/traffic"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"ok": true,
"apiVersion": "developer_v1",
"operationId": "<string>",
"status": "accepted",
"warnings": [
"<string>"
],
"recommendations": [
"<string>"
],
"links": {},
"data": {
"filters": {
"from": "<string>",
"to": "<string>",
"marketplace": "<string>",
"country": "<string>",
"store": "<string>",
"currency": "<string>",
"timeZone": "<string>"
},
"previousFrom": "<string>",
"previousTo": "<string>",
"kpis": {
"impressions": 123,
"impressionsChangePercent": 123,
"pageviews": 123,
"pageviewsChangePercent": 123,
"visitors": 123,
"visitorsChangePercent": 123,
"clicks": 123,
"atcUsers": 123,
"atcUsersChangePercent": 123,
"orders": 0,
"ordersChangePercent": 123,
"netSales": 123,
"ctr": 123,
"viewToOrderCvr": 123,
"viewToOrderCvrChangePercent": 123,
"visitToAtc": 123,
"revenuePerVisitor": 123,
"paidTrafficShare": 123,
"funnelMode": "visit",
"cvrDenominatorLabel": "<string>"
},
"funnel": [
{
"id": "<string>",
"label": "<string>",
"value": 123,
"covered": true,
"rateFromPrevious": 123,
"rateLabel": "<string>"
}
],
"dailyTrend": [
{
"date": "<string>",
"impressions": 123,
"pageviews": 123,
"visitors": 123,
"atcUsers": 123,
"clicks": 123,
"orders": 0
}
],
"products": [
{
"productId": "<string>",
"variantId": "<string>",
"productName": "<string>",
"platform": "<string>",
"externalProductId": "<string>",
"sku": "<string>",
"thumbnailUrl": "<string>",
"impressions": 123,
"pageviews": 123,
"visitors": 123,
"clicks": 123,
"atcUsers": 123,
"orders": 0,
"netSales": 123,
"ctr": 123,
"viewToOrderCvr": 123,
"visitToAtc": 123,
"viewToOrder": 123,
"netSalesPerVisitor": 123,
"diagnosis": "<string>",
"opportunityScore": 123,
"leak": "high_traffic_low_cvr"
}
],
"diagnostics": [
{
"id": "<string>",
"severity": "info",
"title": "<string>",
"summary": "<string>",
"metricLabel": "<string>",
"metricValue": "<string>"
}
],
"contentDrivers": [
{
"externalContentId": "<string>",
"contentType": "<string>",
"title": "<string>",
"platform": "<string>",
"productId": "<string>",
"externalProductId": "<string>",
"productName": "<string>",
"productThumbnailUrl": "<string>",
"views": 123,
"productClicks": 123,
"orders": 0,
"gmv": 123,
"clickRate": 123,
"orderRate": 123
}
],
"leakCount": 0,
"coverage": {
"sales": true,
"traffic": true,
"ads": true,
"content": true,
"inventory": true,
"profit": true,
"market": true
}
},
"jobId": "<string>",
"productId": "<string>"
}Get Traffic Analytics
Impressions, page views, visitors, add-to-cart, and conversion, with the funnel, a daily trend, products ranked by lost conversion, diagnostics, and the videos that drive traffic. Matches the Traffic page. Requires analytics:read.
Amounts are in data.filters.currency. Only orders in that currency are counted; nothing is converted. A range covers at most 366 days.
curl --request GET \
--url https://omnicommerce.sg/api/v1/analytics/traffic \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://omnicommerce.sg/api/v1/analytics/traffic', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://omnicommerce.sg/api/v1/analytics/traffic"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text){
"ok": true,
"apiVersion": "developer_v1",
"operationId": "<string>",
"status": "accepted",
"warnings": [
"<string>"
],
"recommendations": [
"<string>"
],
"links": {},
"data": {
"filters": {
"from": "<string>",
"to": "<string>",
"marketplace": "<string>",
"country": "<string>",
"store": "<string>",
"currency": "<string>",
"timeZone": "<string>"
},
"previousFrom": "<string>",
"previousTo": "<string>",
"kpis": {
"impressions": 123,
"impressionsChangePercent": 123,
"pageviews": 123,
"pageviewsChangePercent": 123,
"visitors": 123,
"visitorsChangePercent": 123,
"clicks": 123,
"atcUsers": 123,
"atcUsersChangePercent": 123,
"orders": 0,
"ordersChangePercent": 123,
"netSales": 123,
"ctr": 123,
"viewToOrderCvr": 123,
"viewToOrderCvrChangePercent": 123,
"visitToAtc": 123,
"revenuePerVisitor": 123,
"paidTrafficShare": 123,
"funnelMode": "visit",
"cvrDenominatorLabel": "<string>"
},
"funnel": [
{
"id": "<string>",
"label": "<string>",
"value": 123,
"covered": true,
"rateFromPrevious": 123,
"rateLabel": "<string>"
}
],
"dailyTrend": [
{
"date": "<string>",
"impressions": 123,
"pageviews": 123,
"visitors": 123,
"atcUsers": 123,
"clicks": 123,
"orders": 0
}
],
"products": [
{
"productId": "<string>",
"variantId": "<string>",
"productName": "<string>",
"platform": "<string>",
"externalProductId": "<string>",
"sku": "<string>",
"thumbnailUrl": "<string>",
"impressions": 123,
"pageviews": 123,
"visitors": 123,
"clicks": 123,
"atcUsers": 123,
"orders": 0,
"netSales": 123,
"ctr": 123,
"viewToOrderCvr": 123,
"visitToAtc": 123,
"viewToOrder": 123,
"netSalesPerVisitor": 123,
"diagnosis": "<string>",
"opportunityScore": 123,
"leak": "high_traffic_low_cvr"
}
],
"diagnostics": [
{
"id": "<string>",
"severity": "info",
"title": "<string>",
"summary": "<string>",
"metricLabel": "<string>",
"metricValue": "<string>"
}
],
"contentDrivers": [
{
"externalContentId": "<string>",
"contentType": "<string>",
"title": "<string>",
"platform": "<string>",
"productId": "<string>",
"externalProductId": "<string>",
"productName": "<string>",
"productThumbnailUrl": "<string>",
"views": 123,
"productClicks": 123,
"orders": 0,
"gmv": 123,
"clickRate": 123,
"orderRate": 123
}
],
"leakCount": 0,
"coverage": {
"sales": true,
"traffic": true,
"ads": true,
"content": true,
"inventory": true,
"profit": true,
"market": true
}
},
"jobId": "<string>",
"productId": "<string>"
}Authorizations
Bearer API key for server-to-server access. Session auth is also supported in first-party UI flows.
Query Parameters
Required for session auth. API keys already belong to one organization.
160First day of the range (YYYY-MM-DD). Defaults to 29 days before to.
^\d{4}-\d{2}-\d{2}$Last day of the range, inclusive (YYYY-MM-DD). Defaults to today.
^\d{4}-\d{2}-\d{2}$IANA time zone that defines each day, for example Asia/Kuala_Lumpur. Defaults to Asia/Singapore.
80Comma-separated marketplaces, for example shopee,lazada.
200Comma-separated countries. One country selects its currency.
200Comma-separated store (account) ids from GET /api/v1/marketplaces/connected.
1000ISO currency. Only orders in this currency are counted; amounts are not converted. Defaults to the single country's currency, otherwise SGD.
3Response
Get Traffic Analytics
"developer_v1"accepted, completed, failed Show child attributes
Show child attributes
Show child attributes
Show child attributes