---
metadata:
  - name: generator
    content: Diplodoc Platform v5.64.0
alternate:
  - https://boost.yandex.com/doc/en/analytics/content/mobile-api/intro/quotas.md
  - https://boost.yandex.com/doc/ru/analytics/content/mobile-api/intro/quotas.md
  - https://boost.yandex.com/doc/zh/analytics/content/mobile-api/intro/quotas.md
  - href: https://boost.yandex.com/doc/zh/analytics/content/mobile-api/intro/quotas.md
    type: text/markdown
    title: Markdown version
  - href: https://boost.yandex.com/doc/zh/llms.txt?revision=r21738064
    rel: describedby
---
> **Documentation Index:** Fetch the complete configuration index at https://boost.yandex.com/doc/zh/llms.txt?revision=r21738064

# Quotas

为了确保服务的最大可用性，Analytics module 对用户的 API 请求频率进行了限制。

同时使用两种限制：

- 按 IP — 定义从单个 IP 地址每秒最多允许的请求数，设置为 30。
- 由 `user_login` — 限制单个用户每天的请求数量，设定为 5000。

每个以下 API 方法组的请求率是分别计算的：

- `client_read` — 读取应用或Analytics module用户账户的参数。 此组包含 Management API 中的所有方法。
- `client_write` — 保存应用或Analytics module用户账户的参数。
- `报告读取` — 从Analytics module报告获取数据。 此组包含报告 API 方法。

## 超出配额 {#exceed-quota}

如果配额被超出，用户的所有后续操作将被暂时阻止。 在这种情况下，API会返回一个HTTP状态为`420 请求过多`的响应。 消息正文包含关于超出配额类型的信息。

当IP配额超出时，用户将在上一秒的API请求数少于30时解除限制。

当用户超出`user_login`配额时，将在GMT 00:00自动解锁。

<!-- source: zh/analytics/content/_includes/feedback-button-2.md -->
如果您没有找到所需答案，可以通过反馈表单提交您的问题。 请尽可能详细地描述问题。 如果可能，请附上截图。

<a href="../troubleshooting/feedback-new">
  <span class="button">联系支持</span>
</a>

<a href="../troubleshooting/feedback-docs">
  <span class="button">建议改进文档</span>
</a>
<!-- endsource: zh/analytics/content/_includes/feedback-button-2.md -->
