Get the customer insights report
GET
/cms/analytics/customer-insights
const url = 'https://api.example.com/cms/analytics/customer-insights?visitor_type=0&unit=day';const options = {method: 'GET', headers: {'API-Key': '<API-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.example.com/cms/analytics/customer-insights?visitor_type=0&unit=day' \ --header 'API-Key: <API-Key>'Returns active-subscriber insights for a date range.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”date_from
string format: date
Start date (YYYY-MM-DD). Defaults to 7 days ago.
date_to
string format: date
End date (YYYY-MM-DD). Defaults to today.
group
string
Subscription group ID
payment_method
string
Payment method. Defaults to all non-free methods.
product
string
Product ID
product_item
string
Product item ID
visitor_type
string
0=Any, 1=Individual, 2=Company
unit
string
Responses
Section titled “Responses”Active subscribers visits data
Invalid date range
Admin authorization required
Insufficient permissions