|
|
Line 1: |
Line 1: |
| === '''POST /api/stat/data''' === | | == Как запросить статистику == |
| {| class="wikitable mw-collapsible" | | Чтобы получить данные по статистике, воспользуйтесь URL: |
| |+Request
| | {| class="wikitable" |
| !Key | | ! Method !! Path |
| !Type | |
| !Description | |
| |- | | |- |
| |id | | | POST || /api/stat/data |
| |String | |
| | | |
| |-
| |
| |name
| |
| |String
| |
| |
| |
| |-
| |
| |perPage
| |
| |Number
| |
| |Значение по умолчанию 50
| |
| |-
| |
| |page
| |
| |Number
| |
| |Значение по умолчанию 1
| |
| |-
| |
| |metrics
| |
| |[String]
| |
| |'''Допустимые значения:'''
| |
| summary_totalVisits, summary_uniqUsers, summary_uniqUsersPc, summary_validVisits, summary_validVisitsPc, summary_techLosses, summary_techLossesPc, bots_total, bots_totalPc, bots_crawler, bots_crawlerPc, bots_spoofing, bots_spoofingPc, bots_automated, bots_automatedPc, bots_iFrame, bots_iFramePc, bots_badReputationIp, bots_badReputationIpPc, bots_blocked, bots_blockedPc, lowQuality_total, lowQuality_totalPc, lowQuality_proxy, lowQuality_proxyPc, lowQuality_spoofing, lowQuality_spoofingPc, lowQuality_automated, lowQuality_automatedPc, lowQuality_trafficCheats, lowQuality_trafficCheatsPc, feature_adBlock, feature_adBlockPc, feature_isMobile, feature_isMobilePc, feature_webView, feature_webViewPc, feature_iFrame, feature_iFramePc, feature_pushNotifications, feature_pushNotificationsPc. ''Эти значения доступны только если на вашей интеграции включена опция [[Behavioral analysis|Behavioral analysis]]'': beAn_pageVisibility, beAn_pageVisibilityPc, beAn_pageActivity, beAn_pageActivityPc, beAn_pageAcceptance, beAn_pageAcceptancePc
| |
| |-
| |
| | colspan="3" |filters
| |
| |-
| |
| |dateFrom
| |
| |String
| |
| |Дата в формате Y-m-d
| |
| |-
| |
| |dateTo
| |
| |String
| |
| |Дата в формате Y-m-d
| |
| |-
| |
| |filters.filters
| |
| |'''<filters>'''
| |
| |
| |
| |-
| |
| |period
| |
| |<nowiki>today | yesterday | currentWeek | 7days| month | null</nowiki>
| |
| |
| |
| |-
| |
| |timezone
| |
| |Number
| |
| |От -12 до +12
| |
| |-
| |
| |groups
| |
| |[String]
| |
| |'''Допустимые значения:'''
| |
| time_hour, time_day, time_week, time_month, time_dateTime, sub_integration, sub_botType, sub_referer, sub_1, sub_2, sib_3, sub_4, sub_5, sub_6, sub_7, geo_language, geo_timezone, geo_country, geo_city, geo_provider, device_browser, device_browserEngine, device_os, device_realOs, device_device, device_type, device_connectionType, device_useragent, screen_width, screen_height, screen_orientation, screen_pixelDensity
| |
| |-
| |
| |compare
| |
| |'''<compare>'''
| |
| |
| |
| |}
| |
| {| class="wikitable mw-collapsible"
| |
| |+Описание <filters>
| |
| !Key
| |
| !Type
| |
| !Description
| |
| |-
| |
| |id
| |
| |String
| |
| |'''Допустимые значения:'''
| |
| time_hour, time_day, time_week, time_month, sub_integration, sub_botType, sub_referer, sub_1, sub_2, sib_3, sub_4, sub_5, sub_6, sub_7, geo_language, geo_timezone, geo_country, geo_city, geo_provider, device_browser, device_browserEngine, device_os, device_realOs, device_device, device_type, device_connectionType, device_useragent, screen_width, screen_height, screen_orientation, screen_pixelDensity, summary_totalVisits, summary_uniqUsers, summary_uniqUsersPc, summary_validVisits, summary_validVisitsPc, summary_techLosses, summary_techLossesPc, bots_total, bots_totalPc, bots_crawler, bots_crawlerPc, bots_spoofing, bots_spoofingPc, bots_automated, bots_automatedPc, bots_iFrame, bots_iFramePc, bots_badReputationIp, bots_badReputationIpPc, bots_blocked, bots_blockedPc, lowQuality_total, lowQuality_totalPc, lowQuality_proxy, lowQuality_proxyPc, lowQuality_spoofing, lowQuality_spoofingPc, lowQuality_automated, lowQuality_automatedPc, lowQuality_trafficCheats, lowQuality_trafficCheatsPc, feature_adBlock, feature_adBlockPc, feature_isMobile, feature_isMobilePc, feature_webView, feature_webViewPc, feature_iFrame, feature_iFramePc, feature_pushNotifications, feature_pushNotificationsPc. ''Эти значения доступны только если на вашей интеграции включена опция [[Behavioral analysis|Behavioral analysis]]'': beAn_pageVisibility, beAn_pageVisibilityPc, beAn_pageActivity, beAn_pageActivityPc, beAn_pageAcceptance, beAn_pageAcceptancePc
| |
| |-
| |
| |type
| |
| |String
| |
| |
| |
| |-
| |
| |range
| |
| |{from: Number, to: Number}
| |
| |
| |
| |}
| |
| {| class="wikitable mw-collapsible"
| |
| |+Описание <compare>
| |
| !Key
| |
| !Type
| |
| !Description
| |
| |-
| |
| |dateFrom
| |
| |String
| |
| |Дата в формате Y-m-d
| |
| |-
| |
| |dateTo
| |
| |String
| |
| |Дата в формате Y-m-d
| |
| |-
| |
| |mode
| |
| |<nowiki>compare_value | diff | percent</nowiki>
| |
| |
| |
| |-
| |
| |sort
| |
| |Boolean
| |
| |
| |
| |}
| |
| {| class="wikitable mw-collapsible"
| |
| |+Response
| |
| !Key
| |
| !Type
| |
| !Description
| |
| |-
| |
| |success
| |
| |Boolean
| |
| |
| |
| |-
| |
| |code
| |
| |
| |
| |
| |
| |-
| |
| |msg
| |
| |
| |
| |
| |
| |-
| |
| | colspan="3" |data
| |
| |-
| |
| |data.rows
| |
| |['''<row>''']
| |
| |Описание строк таблицы
| |
| |-
| |
| |data.totalRows
| |
| |Number
| |
| |Общее количество элементов в таблице
| |
| |-
| |
| |data.total
| |
| |'''<row>'''
| |
| |Сумма по каждой колонке с учётом невидимых строк
| |
| |-
| |
| |data.page
| |
| |Number
| |
| |Текущая страница
| |
| |-
| |
| |data.perPage
| |
| |Number
| |
| |Количество элементов на странице
| |
| |-
| |
| |data.columns
| |
| |['''<column>''']
| |
| |Описание столбцов
| |
| |}
| |
| {| class="wikitable mw-collapsible"
| |
| |+
| |
| Описание <row>
| |
| !Key
| |
| !Type
| |
| !Description
| |
| |-
| |
| |value
| |
| |String
| |
| |
| |
| |-
| |
| |diff
| |
| |<nowiki>String | null</nowiki>
| |
| |
| |
| |-
| |
| |percent
| |
| |<nowiki>Number | null</nowiki>
| |
| |
| |
| |-
| |
| |compare_value
| |
| |<nowiki>String | null</nowiki>
| |
| |
| |
| |}
| |
| {| class="wikitable mw-collapsible"
| |
| |+
| |
| Описание <column>
| |
| !Key
| |
| !Type
| |
| !Description
| |
| |-
| |
| |field
| |
| |String
| |
| |ID метрики или группировки
| |
| |-
| |
| |type
| |
| |<nowiki>string | number | float</nowiki>
| |
| |
| |
| |-
| |
| |sortable
| |
| |Boolean
| |
| |Можно сортировать или нет
| |
| |-
| |
| |unit
| |
| |<nowiki>String | null</nowiki>
| |
| |Единица измерения.
| |
| Например, % у процентных столбцов.
| |
| |} | | |} |