List of segments for counter

Returns a list of segments created via the API and pertaining to the specified counter.

  1. Request syntax
  2. Response format

Request syntax

counterId — counter id.

https://api-metrica.yandex.net/management/v1/counter/{counterId}/apisegment/segments
 ? 

Response format


{
    "segments" : [ {
        "segment_id" :  < integer > ,
        "counter_id" :  < integer > ,
        "name" :  < string > ,
        "expression" :  < string > ,
        "segment_source" :  < segment_source > 
    }, ... ]
}
Parameters Description
segments Segment.
segments
segment_id Segment ID.
counter_id Counter ID.
name Segment name.
expression Выражение, которое соответствует значению параметра filters.
segment_source Segment source. Indicates the means of its creation. Accepts the value api — uses segments created through the API.