Skip to main content

Total Analytic Report

This API shows your zones’ total usage details.

Parameters

Parameter

Type

Required

Description

user_key

string

Yes

API User Token

user_secret

string

Yes

API User Secret Token

from

string

Yes

Y-m-d date format.

to

string

Yes

Y-m-d date format.

type

string

No

stream or progressive. Default null

zone_ids

array

No

Int value. It can be multiple.

Return Values

Variable

Type

hit

integer

traffic

float

bandwidth

float

timezone

string

Example PHP Code

CODE
<?php

$data = array(
   "user_key": "user_key",
    "user_secret": "user_secret",
    "from": date,
  “to”:date
      );
$curl = curl_init();

curl_setopt_array($curl, array(
  CURLOPT_URL => "https://api.medianova.com/v1/report/total",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_ENCODING => "",
  CURLOPT_MAXREDIRS => 10,
  CURLOPT_TIMEOUT => 30,
  CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
  CURLOPT_CUSTOMREQUEST => "GET",
  CURLOPT_HTTPHEADER => json_encode($data),
  ),
));

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
  echo "cURL Error #:" . $err;
} else {
  echo $response;
}

Example Output

CODE
{
  "status": true,
  "data": {
    "hit": 0,
    "traffic": 0,
    "bandwidth": 0,
    "timezone":"GMT+3"
  }
}

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.