Documentation Sweet Pricing API

GET / apps / :appId / analytics

This endpoint returns an array of product groups, along with the analytical data for each group.

URL

https://api.sweetpricing.com/v1.0/apps/:appId/analytics

Header

Field Type Description
Authorization String

Header of form api-key <API key>

Authorization: api-key <API Key>

200

Field Type Description
productgroupanalytics Object[]
productgroupanalytics.grp String

Value of the group critera.

Size: ..255

productgroupanalytics.numViews Number

Number of views

productgroupanalytics.numUniqueViews Number

Number of unique views

productgroupanalytics.numSales Number

Number of sales

productgroupanalytics.revenueUsd Number

Revenue in USD

productgroupanalytics.revenuePerUniqueViewUsd Number

Revenue per unique view, in USD

{
	"productgroupanalytics": [{
		"grp": 1,
		"numViews": 1000,
		"numUniqueViews": 500,
		"numSales": 10,
		"revenueUsd": 19.9,
		"revenuePerUniqueViewUsd": 0.0398
	}]
}

401

Name Description
401

You are not authenticated to perform the request.

403

Name Description
403

You are not allowed to view/modify this resource.

404

Name Description
404

Resource not found.