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 > 
        }, ... ]
    }
}
ParametersDescription
request_idLogs request ID.
counter_idCounter ID.
sourceLogs source.

Possible values

  • hits — pageviews.
  • visits — sessions.
date1First day.
date2Last day.
fieldsList of fields.
statusRequest 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.
sizeSize of logs request in bytes.
partsParts of the response.
ParametersDescription
part_numberNumber of the part.
sizeSize in bytes.