集成HTTP报告API请求汇总数据

Receiving summary data

Summary data are single final metric values for a specific period, for example, a number of website visits within the last week. Such data can be used in widgets, indicators, counters, etc.

Request format #

To get summary data, execute the GET request:

GET https://content.mql5.com/api/v1/reports/website/{WEBSITE_ID}/total
 ?metrics=<string>
 &date_from=<unixtime>
 &date_to=<unixtime>

Set the website ID as {WEBSITE_ID}. It can be obtained in the website settings (ID field) of the Finteza panel.

Request parameters #

Parameter

Type

Description

metrics *

string

List of metrics (comma-separated), for example, metrics=visits,events.

date_from *

unixtime

Data request initial date. Specified in seconds since 1970.01.01, for example, date_from=1549027860.

date_to *

unixtime

Data request end date. Specified in seconds since 1970.01.01, for example, date_from=1549027860.

* ― required parameters.

Sample request #

GET https://content.mql5.com/v1/reports/website/dxnnhxrwpcwsgwowveipxmslrznjfhzarp/total
 ?metrics=webvisits,events
 &date_from=1549027860
 &date_to=1549632660

Sample response #

{
    data: {
        "date_from": 1549027860,
        "date_to": 1549632660,
        "webvisits": 10542,
        "events": 523
    }
}

 

Finteza可防止您丢失分析数据

与免费分析系统不同,Finteza会在您的网站上录入100%访问者数据。

现在就注册,获得30天免费访问。

注册即表示您同意服务协议条款
恭喜您!您的账户已创建成功
  • 访问
    finteza.com
  • 创建
    账户
  • 确认
    电子邮件
  • 安装
    代码

我们已将电子邮件发送至{email}。请查收邮件并激活您的账户。

然后,您只需登录账户并在网站上安装跟踪代码。非常简单: