Downloading data

Downloads a CSV file containing the data of a single window.

Quotas

No more than 10 parallel downloads are permitted.

Compressed data

We recommend passing the Accept-Encoding: gzip header in the request to transfer large files compressed using the gzip codec faster over the network.

  1. Request format
  2. Response codes
  3. Example

Request format

GET /datastream/v1/application/{id}/data
 ? data_type=<string>
 & stream_window_timestamp=<string>
idApp ID.
idApp ID.
data_type *

Specifies which stream data to load.

Acceptable values:
  • event.
  • installation.
  • session_start.
  • push_token.
  • crash.
  • error.
stream_window_timestamp *Unix timestamp in seconds pointing to the data window. You can find out which data windows are available using the Stream status operation.
data_type *

Specifies which stream data to load.

Acceptable values:
  • event.
  • installation.
  • session_start.
  • push_token.
  • crash.
  • error.
stream_window_timestamp *Unix timestamp in seconds pointing to the data window. You can find out which data windows are available using the Stream status operation.

* Required

Response codes

Response code Description
404

No data. The value of the stream_window_timestamp parameter is currently missing in the response to the Stream status request.

500 Error on the AppMetrica server side. A repeat request won't be successful. Contact support.
503 Error on the AppMetrica server side. A repeat request may be successful.
Response code Description
404

No data. The value of the stream_window_timestamp parameter is currently missing in the response to the Stream status request.

500 Error on the AppMetrica server side. A repeat request won't be successful. Contact support.
503 Error on the AppMetrica server side. A repeat request may be successful.

Example

Request:
curl -X GET '/datastream/v1/application/1111/data?data_type=event&stream_window_timestamp=1670202610' \
-o events1670202610.csv \
-H 'Authorization: OAuth oauth_token' \
-H 'Accept-Encoding: gzip'
Copied to clipboard