List of segments for the tag
Returns a list of segments created via the API and associated with the specified tag.
Request syntax
counterId
: Tag ID.
GET https://api-metrika.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 | Tag ID. |
name | Segment name. |
expression | An expression that matches the value of the "filters" parameter. |
segment_source | Segment source. Indicates its creation method. Accepts the value api — uses segments created through the API. |
Parameters | Description |
---|---|
segments | Segment. |
segments | |
segment_id | Segment ID. |
counter_id | Tag ID. |
name | Segment name. |
expression | An expression that matches the value of the "filters" parameter. |
segment_source | Segment source. Indicates its creation method. Accepts the value api — uses segments created through the API. |