Dashboard Stats

Operations to fetch the Dashboard Stats

Dashboard Summary

POST /v1/affiliates/dashboard/summary

This endpoint is used to generate the cards at the top of the Everflow dashboard page in the UI. It lists comparative data for standard reporting metrics such as payout, revenue, number of clicks, etc. over time.

For every metric, values for current month vs total of last month and today vs total of yesterday are listed.

Performance values are computed by comparing yesterday value at the same moment of the day as now.

The endpoint takes a single parameter in the request body : a timezone id. Find all timezones here

cURL
curl --request POST 'https://api.eflow.team/v1/affiliates/dashboard/summary' \
--header 'X-Eflow-API-Key: <INSERT API KEY>' \
--header 'Content-Type: application/json' \
--data '{
    "timezone_id": 80
  }'
Response
{
    "revenue": {
        "today": 4,
        "yesterday": 5.6,
        "current_month": 23.20,
        "last_month": 0,
        "trending_percentage": -28.6
    },
    "click": {
        "today": 46,
        "yesterday": 9,
        "current_month": 74,
        "last_month": 0,
        "trending_percentage": 411.1
    },
    "conversion": {
        "today": 5,
        "yesterday": 7,
        "current_month": 29,
        "last_month": 0,
        "trending_percentage": -28.6
    },
    "cvr": {
        "today": 10.87,
        "yesterday": 77.778,
        "current_month": 39.189,
        "last_month": 0
    },
    "events": {
        "today": 0,
        "yesterday": 0,
        "current_month": 0,
        "last_month": 0,
        "trending_percentage": 0
    },
    "evr": {
        "today": 0,
        "yesterday": 0,
        "current_month": 0,
        "last_month": 0
    },
    "redirect_revenue": {
        "today": 0,
        "yesterday": 0,
        "current_month": 0,
        "last_month": 0,
        "trending_percentage": 0
    },
    "impression": {
        "today": 0,
        "yesterday": 0,
        "current_month": 0,
        "last_month": 0,
        "trending_percentage": 0
    }
}