Simple REST API to get all your statistics and transactions programmatically.
Authorization
For your authorization, you need a token. In order to receive a token please read advanced API - Get an access token.
Endpoints
/statistics
Get a list of all statistics parameter.
* HTTP GET
* Querystring
* page: number
* siteId: number
* startDate: string (YYYY-MM-DD)
* endDate: string (YYYY-MM-DD)
* programId?: number
* format?: 'json' | 'csv' = 'json'
* size?: number (size <= 100) (page size)
Example request:
Header:
"authorization: ACCESS_TOKEN",
"content-type: application/vnd.api+json“
https://advanced-store.cloud/function/api/statistics?startDate=2022-08-01&endDate=2022-08-22&siteId=SITE_ID&page=1&size=10&format=json
Get a list of all statistics.
Example response:
{
"data": {
"data": [
{
"date": "2023-03-14",
"totalImpressions": 14360,
"totalClicks": 70,
"ctr": 0.02,
"totalTransactions": 1,
"transactionsPc": 0,
"transactionsPv": 1,
"eCpm": 0.03,
"totalCommission": 5.89,
"confirmationRate": 0,
"totalPendingCommission": 5.89,
"pendingTransactionCount": 1,
"totalRevokedCommission": null,
"revokedTransactionCount": 0,
"totalConfirmedCommission": 0,
"confirmedTransactionCount": 0
},
{
"date": "2023-01-02",
"totalImpressions": 80456,
"totalClicks": 12,
"ctr": 0,
"totalTransactions": 1,
"transactionsPc": 0,
"transactionsPv": 1,
"eCpm": 0.05,
"totalCommission": 34.31,
"confirmationRate": 0,
"totalPendingCommission": 34.31,
"pendingTransactionCount": 1,
"totalRevokedCommission": null,
"revokedTransactionCount": 0,
"totalConfirmedCommission": 0,
"confirmedTransactionCount": 0
}
]
},
"errors": null,
"success": true
}