Type description log_request

Logs request

Attention.

Access tokens will not be accepted in URL parameters starting February 13, 2019. To continue working with the Yandex.Metrica API, set up authorization by passing the token in the HTTP header.

The outdated authorization method will be temporarily disabled on January 23, January 30, and February 6 for maintenance. Authorization using URL parameters will be unavailable on these dates.

Response format

Logs request


{
    "log_request" : {
        "request_id" :  < int > ,
        "counter_id" :  < int > ,
        "source" :  < log_request_source > ,
        "date1" :  < string > ,
        "date2" :  < string > ,
        "fields" : [  < string > , ... ],
        "status" :  < log_request_status > ,
        "size" :  < big_integer > ,
        "parts" : [ {
            "part_number" :  < int > ,
            "size" :  < long > 
        }, ... ]
    }
}
Parameters Description
request_id Logs request ID.
counter_id Counter ID.
source Logs source.

Possible values

  • hits — pageviews.
  • visits — sessions.
date1 First day.
date2 Last day.
fields List of fields.
status Request status.

Possible values

  • processed — processed.
  • canceled — canceled.
  • processing_failed — error while processing.
  • created — created.
  • cleaned_by_user — cleared by user.
  • cleaned_automatically_as_too_old — cleared automatically.
size Size of logs request in bytes.
parts Parts of the response.
Parameters Description
part_number Number of the part.
size Size in bytes.