Table

提供对统计数据的访问,包括报告中可用的数据。 返回结果以表格形式显示。

Request

GET

https://api.appmetrica.yandex.net/stat/v1/data

Query parameters

Name

Description

params

Type: object

access_filter_id

Type: integer

accuracy

Type: string

Example: example

callback

Type: string

Example: example

confidence_level

Type: string

Default: 0.95

date_dimension

Type: string

Example: example

date1

Type: string

Default: 6daysAgo

date2

Type: string

Default: today

dimensions

Type: string

Example: example

direct_client_ids

Type: integer[]

Example
[
  0
]

direct_client_logins

Type: string[]

Example
[
  "example"
]

exclude_insignificant

Type: boolean

filters

Type: string

Example: example

ids

Type: integer[]

Example
[
  0
]

include_meta

Type: boolean

include_undefined

Type: boolean

lang

Type: string

Example: example

limit

Type: string

Default: 100

max_deviation

Type: string

Default: 0.1

metrics

Type: string

Example: example

offset

Type: string

Default: 1

preset

Type: string

Example: example

pretty

Type: string

Default: false

proposed_accuracy

Type: boolean

reference_row_id

Type: string[]

Example
[
  "example"
]

request_domain

Type: string

Example: example

require_metric_values

Type: string

Default: false

sort

Type: string

Example: example

timezone

Type: string

Example: example

with_confidence

Type: boolean

Example: ``

statGroupParams

Type: object

label_id

Type: integer

Min value: 1

org_id

Type: integer

Min value: 1

Example: ``

Responses

200 OK

OK

Body

application/json
{
  "query": {
    "timezone": "example",
    "preset": "example",
    "dimensions": [
      "example"
    ],
    "metrics": [
      "example"
    ],
    "sort": [
      "example"
    ],
    "date1": "example",
    "date2": "example",
    "filters": "example",
    "limit": 0,
    "offset": 0
  },
  "data": [
    {
      "dimensions": [
        {}
      ],
      "metrics": [
        0.5
      ]
    }
  ],
  "total_rows": 0,
  "total_rows_rounded": true,
  "sampled": true,
  "contains_sensitive_data": true,
  "sample_share": 0.5,
  "sample_size": 0,
  "sample_space": 0,
  "data_lag": 0,
  "totals": [
    0.5
  ],
  "min": [
    0.5
  ],
  "max": [
    0.5
  ]
}

Name

Description

contains_sensitive_data

Type: boolean

表示是否可以从响应中省略敏感数据。 这些数据包括由 Yandex 算法计算出的数据:人口统计数据(性别、年龄等)、登录页地址、搜索词语以及机器人信息。 如果值是true,当样本少于10个用户时,响应不会显示这些数据。 Possible values: 真, 假.

data

Type: object[]

dimensions

Type: object[]

[additional]

Type: string

Example: example

该行的维度值数组。 每个维度值都是一个对象。 它必须有名称字段,该字段为文本值。 但它还可能有额外的字段,例如id.

Example
[
  {}
]

metrics

Type: number[]

Example
[
  0.5
]
Example
[
  {
    "dimensions": [
      {}
    ],
    "metrics": [
      0.5
    ]
  }
]

data_lag

Type: integer

数据更新延迟,以秒为单位。

max

Type: number[]

Example
[
  0.5
]

min

Type: number[]

Example
[
  0.5
]

query

Type: object

date1

Type: string

报告期的开始日期,格式为 YYYY-MM-DD。

Example: example

date2

Type: string

报告期末日期,格式为YYYY-MM-DD。

Example: example

dimensions

Type: string[]

Example
[
  "example"
]

filters

Type: string

Segmentation filter.

Example: example

limit

Type: integer

结果页上的项目数量。

metrics

Type: string[]

Example
[
  "example"
]

offset

Type: integer

请求数据第一行的索引,从1开始。

preset

Type: string

报告预设。

Example: example

sort

Type: string[]

Example
[
  "example"
]

timezone

Type: string

选择期间的时区,格式为 ±hh:mm。

Example: example

Original request. 包含请求参数,包括模板中的详细参数和属性参数化的参数。

Example
{
  "timezone": "example",
  "preset": "example",
  "dimensions": [
    "example"
  ],
  "metrics": [
    "example"
  ],
  "sort": [
    "example"
  ],
  "date1": "example",
  "date2": "example",
  "filters": "example",
  "limit": 0,
  "offset": 0
}

sample_share

Type: number

用于计算的数据百分比。 可用的值范围是 0 到 1。

sample_size

Type: integer

请求数据中的行数。

sample_space

Type: integer

数据行数。

sampled

Type: boolean

Sampling flag. 表示是否应用了采样。 Possible values: 真, 假.

total_rows

Type: integer

响应中整个数据集(过滤后)的总行数。

total_rows_rounded

Type: boolean

表示总行数已被四舍五入。

totals

Type: number[]

Example
[
  0.5
]
上一篇
下一篇