Skip to main content

Get tag

Gets the tag by ID

Function GetTag(Val Token, Val TagID) Export

ParameterCLI optionTypeRequiredDescription
Token--tokenStringAuth token
TagID--labelStringTag ID

Returns: Map Of KeyAndValue - serialized JSON response from Yandex


tip

Method at API documentation: Tag information


1C:Enterprise/OneScript code example
    Token = "y0_AgAAAABdylaOAAy9KgAAAAEXh6i...";
TagID = "314158";

Result = OPI_YandexMetrika.GetTag(Token, TagID);
    oint metrika GetTag \
--token "***" \
--label "314175"
Result
{
"label": {
"id": 313496,
"name": "New tag title"
}
}