List of actions

Returns information about counter actions.

  1. Request syntax
  2. Response format

Request syntax

counterId — counter ID, the information about the actions which you want to get.

https://api-metrica.yandex.net/management/v1/counter/{counterId}/operations
 ? [callback=<string>]
Query parameters
callbackCallback function which returns an API response.

Response format


{
    "operations" : [ {
        "id" :  < int > ,
        "action" :  < operation_type > ,
        "attr" :  < operation_attribute > ,
        "value" :  < string > ,
        "status" :  < operation_status > 
    }, ... ]
}
Parameters Description
operations Counter action.
operations
id

Action ID (needs to be specified while changing a counter action).

action Action type.

Possible values:

  • cut_parameter — remove specific parameter from URL;
  • replace_domain — replace domain.
  • to_lower — convert to lower case;
  • merge_https_and_http — replace https:// with http://;
  • cut_fragment — remove anchor from URL;
  • cut_all_parameters — cut all parameters from URL;
attr Field for filtration.

Possible values:

  • referer — referrer;
  • url — page URL.
value Value for replacement.
status Action status.

Possible values:

  • active — action is used;
  • disabled — action disabled (without deletion).