Downloading data
Downloads a CSV file containing the data of a single window.
- Quotas
- No more than ten parallel downloads are permitted.
- Compressed data
- We recommend passing the
Accept-Encoding: gzip
request header to speed up the network transfer for large files compressed usinggzip
.
Request format
GET https://api.appmetrica.yandex.ru/datastream/v1/application/{id}/data
? data_type=<string>
& stream_window_timestamp=<string>
|
App ID |
|
Specifies which stream data to load. Possible values:
|
|
Unix timestamp in seconds pointing to the data window. You can find out which data windows are available using the Stream status operation. |
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. |
Example
Request:
curl -X GET 'https://api.appmetrica.yandex.ru/datastream/v1/application/1111/data?data_type=event&stream_window_timestamp=1670202610' \
-o events1670202610.csv \
-H 'Authorization: OAuth oauth_token' \
-H 'Accept-Encoding: gzip'
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.
Was the article helpful?
Previous
Next