---
metadata:
  - name: generator
    content: Diplodoc Platform v5.55.2
alternate:
  - https://yandex.com/support/metrica/en/uploading-data/api-reports.md
  - https://yandex.com/support/metrica/es/uploading-data/api-reports.md
  - https://yandex.com/support/metrica/pt/uploading-data/api-reports.md
  - https://yandex.com/support/metrica/ru/uploading-data/api-reports.md
  - https://yandex.com/support/metrica/tr/uploading-data/api-reports.md
  - https://yandex.com/support/metrica/zh/uploading-data/api-reports.md
  - href: zh/uploading-data/api-reports.md
    type: text/markdown
    title: Markdown version
  - href: ../llms.txt
    type: text/markdown
    title: llms.txt
title: 报表 API
description: 报表 API 无需使用 Yandex Metrica 界面即可提供有关网站会话统计数据及其他与报表数据对应的信息汇总。
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com/support/metrica/zh/llms.txt


# 报表 API

报表 API 无需使用 Yandex Metrica 界面即可提供有关网站会话统计数据及其他与报表数据对应的信息汇总。

向 API 发出请求时，请使用以下内容：

- 维度（dimensions）：会话或点击的属性，可据此对数据进行分组。
- 指标（metrics）：根据点击或会话的属性计算得出的数值。

API 支持两类维度和指标：会话与 hits。

在 API 请求中指定的指标和维度可让您创建所需的报表结构，例如按页面访问深度构建报表，并按类型和操作系统版本对数据进行分组。

API 以 UTF-8 编码返回响应。 响应采用 JSON 或 CSV 格式。

[报表 API](https://yandex.ru/dev/metrika/en/stat/)

<!-- source: zh/_includes/buttons/chat-button.md -->
[与我们聊天](https://yandex.com/chat/#/user/036e6a02-3620-9cdc-4c5e-a34667a7379e?utm_source=spravka){.button}

<!-- source: zh/_includes/styles/href-to-button.md -->

<!-- endsource: zh/_includes/styles/href-to-button.md -->
<!-- endsource: zh/_includes/buttons/chat-button.md -->

<!-- source: zh/_includes/pro/support-button.md -->
<div class="cut-button">

{% cut "发送电子邮件" %}

<!-- source: zh/_includes/popup/id-popup/wrong-sup.md -->
请注意：我们的支持团队永远不会主动给您打电话。 请勿按照自称为 Yandex Metrica 支持团队来电者的指示操作。
<!-- endsource: zh/_includes/popup/id-popup/wrong-sup.md -->

<div style="padding: 15px;
     margin: 10px 0;
     background: #FFFFFF;
     border-radius: 10px;
     border: 1px solid var(--g-color-line-generic);">
  <iframe style="background: #FFFFFF;"
        height="700"
        width="100%"
        frameborder="0"
        src="https://forms.yandex.com/surveys/13470764.a1e88715348b88bbfc3fe42a9f189f1ebd4b220d/?&iframe=1&lang=en">
  </iframe>
</div>

{% endcut %}

</div>

<!-- source: zh/_includes/styles/cut-button.md -->

<!-- endsource: zh/_includes/styles/cut-button.md -->
<!-- endsource: zh/_includes/pro/support-button.md -->

<!-- source: zh/_includes/footer-links.md -->
- - -

<div class="borderless-table">

#|
||
实用链接

- [演示计数器](https://metrica.yandex.com/r/dashboard?)
- [添加计数器](https://metrica.yandex.com/add/)
- [免费计数器设置](https://yandex.com/promo/freeservice/metrica?utm_source=help_metrica_en&utm_medium=cpc&utm_campaign=1)
- [Yandex Metrica API](https://tech.yandex.com/metrika/)
- [提出您的想法](https://yandex.com/support/metrica/troubleshooting/idea.html)
|
线上培训



- [参加培训课程](https://yandex.com/adv/edu/online/metrika?utm_source=metrika_help&utm_medium=web&utm_campaign=static&utm_content=useful_links)

||
|#

</div>

<!-- source: zh/_includes/styles/table-style.md -->

<!-- endsource: zh/_includes/styles/table-style.md -->
<!-- endsource: zh/_includes/footer-links.md -->
