List of actions

Returns information about counter actions.

Request

GET

https://api-metrica.yandex.net/management/v1/counter/{counterId}/operations

Path parameters

Name

Description

counterId*

Type: integer<int32>

ID of the counter for which you want to get action information.
Example: 2215573

Query parameters

Name

Description

callback

Type: string

Callback function that processes the API response.

Responses

200 OK

OK

Body

application/json
{
    "operations": [
        {
            "id": 0,
            "action": "string",
            "attr": "string",
            "value": "string",
            "status": "string"
        }
    ]
}

Name

Description

operations

Type: OperationE[]

Counter actions.
List of structures with information on counter actions.

OperationE

List of structures with information on counter actions.

Name

Description

action*

Type: string

Action type:

  • cut_fragment: Remove anchor from URL.
  • cut_parameter: Remove specific parameter from URL.
  • cut_all_parameters: Cut all parameters from URL.
  • merge_https_and_http: Replace https:// with http://.
  • to_lower: Convert to lower case.
  • replace_domain: Replace domain.

attr*

Type: string

Field for filtering:

  • referer: Referrer.
  • url: Page URL.

status*

Type: string

Action status:

  • active: Action is used.
  • disabled: Action is disabled (without deletion).

id

Type: integer<int32>

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

value

Type: string

Value for replacement.