Dashboard Summary
curl --request GET \
--url https://api.launchmystore.io/api/v1/analytics/summary \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.launchmystore.io/api/v1/analytics/summary"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.launchmystore.io/api/v1/analytics/summary', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.launchmystore.io/api/v1/analytics/summary",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.launchmystore.io/api/v1/analytics/summary"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.launchmystore.io/api/v1/analytics/summary")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.launchmystore.io/api/v1/analytics/summary")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": 200,
"state": "success",
"message": null,
"data": {
"grossSale": 0,
"averageOrderValue": 0,
"conversionRate": 0,
"avgSalePerDay": 0,
"avgOrders": 0,
"totalCustomers": 0,
"returningCustomers": 0,
"returningCustomerRate": 0,
"cancelOrdersCount": 0,
"canceledOrdersAmount": 0,
"ordersData": { "totalOrders": 0, "ordersByDay": {} },
"orderStatusesCount": {},
"viewDataByDays": 0,
"viewsByDate": {},
"sourceCount": {},
"topProductsByUnitSold": []
},
"pagination": null
}
Analytics
Dashboard Summary
Get aggregated KPIs for the requested range (sales, orders, customers).
GET
/
api
/
v1
/
analytics
/
summary
Dashboard Summary
curl --request GET \
--url https://api.launchmystore.io/api/v1/analytics/summary \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.launchmystore.io/api/v1/analytics/summary"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.launchmystore.io/api/v1/analytics/summary', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.launchmystore.io/api/v1/analytics/summary",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.launchmystore.io/api/v1/analytics/summary"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.launchmystore.io/api/v1/analytics/summary")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.launchmystore.io/api/v1/analytics/summary")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": 200,
"state": "success",
"message": null,
"data": {
"grossSale": 0,
"averageOrderValue": 0,
"conversionRate": 0,
"avgSalePerDay": 0,
"avgOrders": 0,
"totalCustomers": 0,
"returningCustomers": 0,
"returningCustomerRate": 0,
"cancelOrdersCount": 0,
"canceledOrdersAmount": 0,
"ordersData": { "totalOrders": 0, "ordersByDay": {} },
"orderStatusesCount": {},
"viewDataByDays": 0,
"viewsByDate": {},
"sourceCount": {},
"topProductsByUnitSold": []
},
"pagination": null
}
Aggregated KPIs for the requested date range — gross sale, orders, customers,
returning rate, conversion rate, top products by unit sold. Backs the merchant
admin dashboard.
Required scope:
read_analytics
Query Parameters
Predefined range. One of:
today, yesterday, last_7_days,
last_30_days, last_90_days, this_month, last_month,
this_year. Ignored if start and end are provided.Custom range start (ISO 8601 /
YYYY-MM-DD). Pair with end.Custom range end (ISO 8601 /
YYYY-MM-DD). Pair with start.Response
HTTP status code.
success or error.Show summary
Show summary
Total gross sales (store currency).
AOV across the range.
Sessions → orders rate (%).
Average daily sales.
Average daily orders.
Distinct customers.
Customers with prior orders.
Returning-customer rate (%).
Orders cancelled in range.
Cancelled order value.
{ totalOrders, ordersByDay }.Map of status → count.
Total session/view count.
Map of date → views.
Map of traffic source → views.
Top sellers by units (preview).
{
"status": 200,
"state": "success",
"message": null,
"data": {
"grossSale": 0,
"averageOrderValue": 0,
"conversionRate": 0,
"avgSalePerDay": 0,
"avgOrders": 0,
"totalCustomers": 0,
"returningCustomers": 0,
"returningCustomerRate": 0,
"cancelOrdersCount": 0,
"canceledOrdersAmount": 0,
"ordersData": { "totalOrders": 0, "ordersByDay": {} },
"orderStatusesCount": {},
"viewDataByDays": 0,
"viewsByDate": {},
"sourceCount": {},
"topProductsByUnitSold": []
},
"pagination": null
}
⌘I