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

# 通过深链打开应用

返回特定日期范围内通过深链打开的数据。

## 请求格式 {#request-format}

```
获取 https://api.boost.yandex.com/logs/v1/export/deeplinks.{csv | json}
  ? application_id=<int>
  & date_since=<string>
  & date_until=<string>
  & fields=<string>
  & [date_dimension=<string>]
  & [limit=<string>]
  & [use_utf8_bom=<bool>]
  & [<any field name>=<string>]
  & [skip_unavailable_shards=<bool>]
```

#|
|| `应用ID`* | 按应用在 Analytics module 中的数字 ID 过滤。 ||
|| `date_since`* | 日期范围的开始，格式为 `yyyy-mm-dd hh:mm:ss`。 您还可以定义影响 `date_dimension` 查询参数中数据的日期和时间类型。 ||
|| `date_until`* | 日期范围的结束，格式为 `yyyy-mm-dd hh:mm:ss`。 您还可以定义影响 `date_dimension` 查询参数中数据的日期和时间类型。 ||
|| `字段`* | 用逗号分隔的[字段列表](https://boost.yandex.com/doc/zh/analytics/content/mobile-api/logs/endpoints.md)，用于示例。

一个包含所有可用字段的列表（便于快速复制）：

```objectivec translate=no
deeplink_url_host,deeplink_url_parameters,deeplink_url_path,deeplink_url_scheme,event_datetime,event_receive_datetime,event_receive_timestamp,event_timestamp,is_reengagement,profile_id,publisher_id,publisher_name,session_id,tracker_name,tracking_id,android_id,appmetrica_device_id,appmetrica_sdk_version,city,connection_type,country_iso_code,device_ipv6,device_locale,device_manufacturer,device_model,event_datetime,google_aid,ios_ifa,ios_ifv,mcc,mnc,original_device_model,os_version,windows_aid,app_build_number,app_package_name,app_version_name
``` ||
|| `date_dimension` | 此参数定义计算日期范围的起点：
- `default`：事件在设备上发生时。
- `receive`：服务器收到事件信息时。
 ||
|| `限制` | 列表中项目数量的限制。 默认取最大值。 不保证请求之间的结果一致（结果排序可能存在差异）。 ||
|| `使用 UTF-8 BOM` | 启用字节顺序标记使用的参数。 默认值为 `false`。
 ||
|| `<any field name>` | 按可用字段之一的值过滤。 仅支持相等检查操作。 ||
|| `跳过不可用的分片` | 用于[提高数据可用性](../request-procedure.md#availability)。 默认值为 `false`。
 ||
|#

## 响应格式 {#response-format}

如果请求了所有可用的字段：

{% list tabs %}

- JSON

  ```json translate=no
  {
    "data": [
      {
        "deeplink_url_host": "string",
        "deeplink_url_parameters": "string",
        "deeplink_url_path": "string",
        "deeplink_url_scheme": "string",
        "event_datetime": "string",
        "event_receive_datetime": "string",
        "event_receive_timestamp": "integer",
        "event_timestamp": "integer",
        "is_reengagement": "boolean",
        "profile_id": "string",
        "publisher_id": "integer",
        "publisher_name": "string",
        "session_id": "integer",
        "tracker_name": "string",
        "tracking_id": "integer",
        "android_id": "string",
        "appmetrica_device_id": "integer",
        "appmetrica_sdk_version": "integer",
        "city": "string",
        "connection_type": "string",
        "country_iso_code": "string",
        "device_ipv6": "string",
        "device_locale": "string",
        "device_manufacturer": "string",
        "device_model": "string",
        "device_type": "string",
        "google_aid": "string",
        "ios_ifa": "string",
        "ios_ifv": "string",
        "mcc": "integer",
        "mnc": "integer",
        "original_device_model": "string",
        "os_version": "string",
        "windows_aid": "string",
        "app_build_number": "integer",
        "app_package_name": "string",
        "app_version_name": "string"
      },
      ...
    ]
  }
  ```

- CSV

   ```
   应用程序ID,ios_ifa,操作系统名称,...
   1111,024AE7EB-4128-4237-9803-D24950323D4D,iOS,...
   1111,3A86D5E8-1985-4A23-B147-5A1C0CF8781E,iOS,...
   1111,,安卓
   ...
   ```

{% endlist %}

#|
|| `deeplink_url_host` | 深链域名。 例如，对于格式为 `[scheme]:[//host][/path][?parameters]` 的链接，它返回 `host`。 ||
|| `deeplink URL 参数` | 传递给深链的参数。 关于传递参数的更多信息，请参见[跟踪 URL 参数](https://boost.yandex.com/doc/zh/analytics/content/mobile-tracking/tracking-specification.md#to-deeplink)。 ||
|| `深度链接 URL 路径` | 深链的 URL 路径。 例如，对于格式为 `[scheme]:[//host][/path][?parameters]` 的链接，它返回 `path`。
 ||
|| `深度链接 URL 方案` | 深链的 URL 方案。 例如，对于格式为 `[scheme]:[//host][/path][?parameters]` 的链接，它返回 `scheme`。
 ||
|| `event_datetime` | 事件的日期和时间，格式为 `yyyy-mm-dd hh:mm:ss`。 ||
|| `事件接收日期时间` | 服务器端收到事件的日期和时间。 由于网络延迟或用户设备在事件发生时未连接，可能与 `event_datetime` 不同。 ||
|| `事件接收时间戳` | 服务器端收到事件的时间，格式为 [Unix time](https://en.wikipedia.org/wiki/Unix_time)。 由于网络延迟或用户设备在事件发生时未连接，可能与 `event_timestamp` 不同。
 ||
|| `event_timestamp` | 事件的时间，格式为 [Unix time](https://en.wikipedia.org/wiki/Unix_time)。

使用 Post API，您只能在事件日期（event_timestamp）与上传日期之间的差异不超过 14 天时上传事件。 API 期望以秒为单位的值。
 ||
|| `is_reengagement` | 指示跟踪器是为再营销活动创建的。 ||
|| `profile_id` | 用户个人资料 ID。 ||
|| `publisher_id` | Analytics 发布者的 ID。 ||
|| `出版商名称` | Analytics 合作伙伴的名称。 ||
|| `session_id` | 会话 ID。 `installation_id`、`session_id` 和平台设备 ID（`google_aid` / `ios_ifa`）的值集允许您唯一标识用户的会话。 ||
|| `tracker_name` | 添加到 Analytics module 界面的跟踪器名称。 ||
|| `tracking_id` | Analytics 跟踪器的 ID。 ||
|| `android_id` | Android 设备 ID。 ||
|| `appmetrica_device_id` | Analytics 服务检测到的唯一设备标识符。 在 Android 中来自 [AppSetId](https://developer.android.com/identity/app-set-id)，在 iOS 中来自 [IFV](https://developer.apple.com/documentation/uikit/uidevice/1620059-identifierforvendor)。 ||
|| `appmetrica SDK 版本` | Analytics SDK 的版本。 ||
|| `城市` | 城市名称（英文）。 ||
|| `连接类型` | 连接类型。 可能的值：`wifi` \| `cell` \| `unknown`。
 ||
|| `country_iso_code` | ISO 国家代码。 ||
|| `device_ipv6` | 事件时的 IP 地址，格式为 [IPv6](https://en.wikipedia.org/wiki/IPv6)。 例如，2a02:6b8::40c:6676:baff:fea6:53d8, ::ffff:5.255.232.147。
 ||
|| `device_locale` | 设备上的语言。 ||
|| `设备制造商` | Analytics 服务检测到的设备制造商（例如，Apple 或 Samsung）。 ||
|| `设备型号` | Analytics 服务检测到的设备型号（例如，Galaxy S6）。 ||
|| `device_type` | Analytics 服务检测到的设备类型。 可能的值：`phone` \| `tablet` \| `unknown`。
 ||
|| `google_aid` | 设备的 Google AID，格式为从设备接收的格式。 ||
|| `ios_ifa` | 设备的 IFA，格式为从设备接收的格式。 ||
|| `ios_ifv` | 应用的 IFV，格式为从设备接收的格式。 ||
|| `mcc` | 移动国家代码。 ||
|| `mnc` | 移动网络代码。 ||
|| `原始设备型号` | 设备的出厂型号（例如，对于 Galaxy S8，可能的值有：SM-G9550、SM-G9558 等）。
 ||
|| `os_version` | 用户设备上的操作系统版本。 ||
|| `windows_aid` | 设备的 Windows AID，格式为从设备接收的格式。 ||
|| `应用构建号` | 应用构建号。 ||
|| `app_package_name` | Android 的包名，或 iOS 的 Bundle ID（例如，ru.yandex.metro）。 ||
|| `应用版本名称` | 开发者指定的应用版本格式。 ||
|#

## Example {#example}

请求

```bash translate=no
curl -X GET \
  'https://api.boost.yandex.com/logs/v1/export/deeplinks.json?application_id=1111&date_since=2018-10-10&date_until=2018-10-11&fields=deeplink_url_host,deeplink_url_parameters,deeplink_url_path,deeplink_url_scheme,event_datetime,event_receive_datetime,event_receive_timestamp,event_timestamp,is_reengagement,profile_id,publisher_id,publisher_name,session_id,tracker_name,tracking_id,android_id,appmetrica_device_id,appmetrica_sdk_version,city,connection_type,country_iso_code,device_ipv6,device_locale,device_manufacturer,device_model,device_type,google_aid,ios_ifa,ios_ifv,mcc,mnc,original_device_model,os_version,windows_aid,app_build_number,app_package_name,app_version_name' \
  -H 'Authorization: OAuth oauth_token'
```

响应:

```json translate=no
{
  "data": [
    {
      "deeplink_url_host": "deeplink_url_host__example",
      "deeplink_url_parameters": "custom_parameter=value1&another_param=value2",
      "deeplink_url_path": "deeplink_url_path__example",
      "deeplink_url_scheme": "myscheme",
      "event_datetime": "yyyy-mm-dd hh:mm:ss",
      "event_receive_datetime": "yyyy-mm-dd hh:mm:ss",
      "event_receive_timestamp": "1556258667",
      "event_timestamp": "1556258660",
      "is_reengagement": "false",
      "profile_id": "test",
      "publisher_id": "39",
      "publisher_name": "AdColony",
      "session_id": "10000000049",
      "tracker_name": "Advertising iOS campaign",
      "tracking_id": "12345678901234567890",
      "android_id": "android_id__example",
      "appmetrica_device_id": "123456789012345678",
      "appmetrica_sdk_version": "3001000",
      "city": "Moscow",
      "connection_type": "wifi",
      "country_iso_code": "RU",
      "device_ipv6": "::ffff:5.255.232.147",
      "device_locale": "ru_RU",
      "device_manufacturer": "Apple",
      "device_model": "iPhone X",
      "device_type": "phone",
      "google_aid": "google_aid__example",
      "ios_ifa": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
      "ios_ifv": "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
      "mcc": "250",
      "mnc": "1",
      "original_device_model": "iPhone10,3",
      "os_version": "12.2",
      "windows_aid": "windows_aid__example",
      "app_build_number": "1",
      "app_package_name": "ru.yandex.metro",
      "app_version_name": "1.0"
    }
  ]
}
```

<!-- source: zh/analytics/content/_includes/feedback-button-3.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-3.md -->
