---
metadata:
  - name: generator
    content: Diplodoc Platform v5.64.0
alternate:
  - https://boost.yandex.com/doc/en/analytics/content/mobile-api/post/about.md
  - https://boost.yandex.com/doc/ru/analytics/content/mobile-api/post/about.md
  - https://boost.yandex.com/doc/zh/analytics/content/mobile-api/post/about.md
  - href: https://boost.yandex.com/doc/zh/analytics/content/mobile-api/post/about.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

# Post API

允许您通过 HTTP 请求向 Analytics module 服务器发送事件。 上传的数据会显示在[Analytics module报告中](https://boost.yandex.com/doc/zh/analytics/content/mobile-reports/index.md)。

您可以将事件上传到请求参数中，或者在请求体中（以 `csv` 格式）。 通过 SDK 和 API 传递的数据会合并，如果您传递了相同的 [profile_id](*profile_id) 或 [appmetrica_device_id](*appmetrica_device_id) 值。

上传的数据会添加到从 SDK 收到的数据中。 通过 Post API 上传的数据每 4 小时与其他数据同步一次。

## 访问 API {#access}

要使用 Post API，你需要在应用程序的_设置_部分获取**Post API 密钥**。

您需要在每次API请求中通过`post_api_key`参数传递令牌。

了解更多内容，请参见[示例](https://boost.yandex.com/doc/zh/analytics/content/mobile-api/post/post-import-events.md)。

## Hosts {#hosts}

您应该将请求发送到 `https://api.boost.yandex.com` 主机。 例如：

```httpget translate=no
https://api.boost.yandex.com/logs/v1/import/events
```

或

```httpget translate=no
https://api.boost.yandex.com/logs/v1/import/events.csv
```

## API 资源 {#resources}

- [上传事件](https://boost.yandex.com/doc/zh/analytics/content/mobile-api/post/post-import-events.md)
- [上传应用内收入事件](https://boost.yandex.com/doc/zh/analytics/content/mobile-api/post/post-revenue.md)
- [上传广告收入事件](https://boost.yandex.com/doc/zh/analytics/content/mobile-api/post/post-adrevenue.md)
- [上传电商事件](https://boost.yandex.com/doc/zh/analytics/content/mobile-api/post/post-ecommerce.md)
- [个人属性](https://boost.yandex.com/doc/zh/analytics/content/mobile-api/post/post-profile-attributes.md)

<!-- 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 -->

[*profile_id]: 用户个人资料 ID。

[*appmetrica_device_id]: 由 Analytics module 设置的设备唯一标识符的哈希.