---
metadata:
  - name: generator
    content: Diplodoc Platform v5.50.6
alternate:
  - https://appmetrica.yandex.com.tr/docs/en/mobile-api/logs/ref/crashes.md
  - https://appmetrica.yandex.com.tr/docs/ru/mobile-api/logs/ref/crashes.md
---
> **Documentation Index:** Fetch the complete configuration index at https://appmetrica.yandex.com.tr/docs/en/llms.txt

# Crashes

Returns crash data for a specific date range.

## Request format {#request-format}

```
GET https://api.appmetrica.yandex.com/logs/v1/export/crashes.{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>]
```

#|
|| `application_id`* | Filtering by the app's numeric ID in AppMetrica ||
|| `date_since`* | Start of the date range in `yyyy-mm-dd hh:mm:ss` format. You can also define the date and time type that affects the data in the `date_dimension` query parameter. ||
|| `date_until`* | End of the date range in `yyyy-mm-dd hh:mm:ss` format. You can also define the date and time type that affects the data in the `date_dimension` query parameter. ||
|| `fields`* | A comma-separated [list of fields](https://appmetrica.yandex.com.tr/docs/en/mobile-api/logs/endpoints.md) for the sample.

A list that contains all available fields (for quick copy):

```objectivec translate=no
crash,crash_datetime,crash_group_id,crash_id,crash_json,crash_name,crash_receive_datetime,crash_receive_timestamp,crash_timestamp,appmetrica_device_id,city,connection_type,country_iso_code,device_ipv6,device_locale,device_manufacturer,device_model,device_type,google_aid,ios_ifa,ios_ifv,mcc,mnc,operator_name,os_name,os_version,profile_id,windows_aid,app_package_name,app_version_name,application_id
``` ||
|| `date_dimension` | This parameter defines the point to calculate the date range from:
- `default`: When the event occurred on the device.
- `receive`: When the server received information about the event.
 ||
|| `limit` | Limit on the number of items in the list. Takes the maximum value by default. There is no guarantee that results will match from request to request (there may be differences in results sorting). ||
|| `use_utf8_bom` | Parameter that enables the use of byte order mark. The default value is `false`.
 ||
|| `<any field name>` | Filtering by the value of one of the available fields. Only the equality check operation is supported. ||
|| `skip_unavailable_shards` | Used for [improving data accessibility](../request-procedure.md#availability). The default value is `false`.
 ||
|#

## Response format {#response-format}

If all available fields are requested:

{% list tabs %}

- JSON

  ```json translate=no
  {
    "data": [
      {
        "crash": "string",
        "crash_datetime": "string",
        "crash_group_id": "integer",
        "crash_id": "integer",
        "crash_json": "string",        
        "crash_name": "string",
        "crash_receive_datetime": "string",
        "crash_receive_timestamp": "integer",
        "crash_timestamp": "integer",
        "appmetrica_device_id": "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",
        "operator_name": "string",
        "os_name": "string",
        "os_version": "string",
        "profile_id": "string",
        "windows_aid": "string",
        "app_package_name": "string",
        "app_version_name": "string",
        "application_id": "integer"
      },
      ...
    ]
  }
  ```

- CSV

   ```
   application_id,ios_ifa,os_name,...
   1111,024AE7EB-4128-4237-9803-D24950323D4D,ios,...
   1111,3A86D5E8-1985-4A23-B147-5A1C0CF8781E,ios,...
   1111,,android
   ...
   ```

{% endlist %}

#|
|| `crash` | Stack trace. ||
|| `crash_datetime` | Date and time of the app crash in `yyyy-mm-dd hh:mm:ss` format. ||
|| `crash_group_id` | ID of a group of similar crashes. ||
|| `crash_id` | Crash ID. ||
|| `crash_json` | JSON with crash parameters. ||
|| `crash_name` | Crash name. ||
|| `crash_receive_datetime` | Date and time the crash message was received on the server side in `yyyy-mm-dd hh:mm:ss` format. It may differ from `crash_datetime` due to network delays or problems with the user's internet connection
 ||
|| `crash_receive_timestamp` | Time when the crash message was received on the server side in [Unix time](https://en.wikipedia.org/wiki/Unix_time) format. It may differ from `crash_timestamp` due to network delays or problems with the user's internet connection.
 ||
|| `crash_timestamp` | Time of the app crash in [Unix time](https://en.wikipedia.org/wiki/Unix_time) format.
 ||
|| `appmetrica_device_id` | A unique device identifier detected by the AppMetrica service. In Android from [AppSetId](https://developer.android.com/identity/app-set-id), in iOS from [IFV](https://developer.apple.com/documentation/uikit/uidevice/1620059-identifierforvendor). ||
|| `city` | The name of the city in English. ||
|| `connection_type` | Type of connection. Possible values: `wifi` \| `cell` \| `unknown`.
 ||
|| `country_iso_code` | ISO country code. ||
|| `device_ipv6` | The IP address at the time of the event in [IPv6](https://en.wikipedia.org/wiki/IPv6) format. For example, 2a02:6b8::40c:6676:baff:fea6:53d8, ::ffff:5.255.232.147.
 ||
|| `device_locale` | The language on the device. ||
|| `device_manufacturer` | The device manufacturer detected by the AppMetrica service (for example, Apple or Samsung). ||
|| `device_model` | The device model detected by the AppMetrica service (for example, Galaxy S6). ||
|| `device_type` | The device type detected by the AppMetrica service. Possible values: `phone` \| `tablet` \| `unknown`.
 ||
|| `google_aid` | The device's Google AID in the format received from the device. ||
|| `ios_ifa` | The device's IFA in the format received from the device. ||
|| `ios_ifv` | IFV for the app in the format received from the device. ||
|| `mcc` | Mobile country code. ||
|| `mnc` | Mobile network code. ||
|| `operator_name` | Name of the mobile operator.||
|| `os_name` | Operating system on the user's device: `ios` \| `android` \| `windows`.
 ||
|| `os_version` | The version of the operating system on the user's device. ||
|| `profile_id` | User profile ID. ||
|| `windows_aid` | The device's Windows AID in the format received from the device. ||
|| `app_package_name` | The package name for Android, or the Bundle ID for iOS (for example, ru.yandex.metro). ||
|| `app_version_name` | The app version in the format specified by the developer. ||
|| `application_id` | Unique numeric identifier for the application in AppMetrica. ||
|#

## Example {#example}

Request:

```bash translate=no
curl -X GET \
  'https://api.appmetrica.yandex.com/logs/v1/export/crashes.json?application_id=1111&date_since=2018-10-10&date_until=2018-10-11&fields=crash,crash_datetime,crash_group_id,crash_id,crash_json,crash_name,crash_receive_datetime,crash_receive_timestamp,crash_timestamp,appmetrica_device_id,city,connection_type,country_iso_code,device_ipv6,device_locale,device_manufacturer,device_model,device_type,google_aid,ios_ifa,ios_ifv,mcc,mnc,operator_name,os_name,os_version,profile_id,windows_aid,app_package_name,app_version_name,application_id' \
  -H 'Authorization: OAuth oauth_token'
```

Response:

```json translate=no
{
  "data": [
    {
      "crash": "Incident Identifier: 2BC150BD-6FBE-403E-A6EA-8BCBBB88D1FE\nCrashReporter Key: 45f8b76444af32746930a175a32f6ec4a3d34a81\nHardware Model: iPhone10,3,\n ... \"sessions_since_launch\": 1\n}\n",
      "crash_datetime": "yyyy-mm-dd hh:mm:ss",
      "crash_group_id": "2198476647264792568",
      "crash_id": "4076630759621469783",
      "crash_json": "{...}",      
      "crash_name": "crash_name__example",
      "crash_receive_datetime": "yyyy-mm-dd hh:mm:ss",
      "crash_receive_timestamp": "1556258667",
      "crash_timestamp": "1556258660",
      "appmetrica_device_id": "123456789012345678",
      "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",
      "operator_name": "MTS RUS",
      "os_name": "ios",
      "os_version": "12.2",
      "profile_id": "test",
      "windows_aid": "windows_aid__example",
      "app_package_name": "ru.yandex.metro",
      "app_version_name": "1.0",
      "application_id": "1111"
    }
  ]
}
```

<!-- source: en/_includes/feedback-button-3.md -->
If you didn't find the answer you were looking for, you can use the feedback form to submit your question. Please describe the problem in as much detail as possible. Attach a screenshot if possible.

<a href="../../../troubleshooting/feedback-new">
  <span class="button">Contact support</span>
</a>

<a href="../../../troubleshooting/feedback-docs">
  <span class="button">Suggest an improvement for documentation</span>
</a>
<!-- endsource: en/_includes/feedback-button-3.md -->
