---
sidebar_position: 6
description: Get counters list and other functions to work with Yandex Metrika in the Open Integration Package, a free open-source integration library for 1C:Enterprise 8, OneScript and CLI
keywords: [1C, 1С, 1С:Enterprise, 1С:Enterprise 8.3, API, Integration, Services, Exchange, OneScript, CLI, Yandex Metrika]
---

import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';

# Get counters list
 Gets a list of available counters with or without filtering



`Function GetCountersList(Val Token, Val Filter = Undefined) Export`

  | Parameter | CLI option | Type | Required | Description |
  |-|-|-|-|-|
  | Token | --token | String | &#x2714; | Auth token |
  | Filter | --filter | Structure Of KeyAndValue | &#x2716; | List filter. See GetCounterFilterStructure |

  
  Returns:  Map Of KeyAndValue - serialized JSON response from Yandex

:::tip
Method at API documentation: [List of available counters](https://yandex.ru/dev/metrika/en/management/openapi/counter/counters)
:::
<br/>


```bsl title="1C:Enterprise/OneScript code example"
    Token     = "y0_AgAAAABdylaOAAy9KgAAAAEXh6i...";
    CounterID = "105780896";

    Result = OPI_YandexMetrika.GetCountersList(Token);

    // filter by IDs list

    Filter = New Structure;

    CountersArray = New Array;
    CountersArray.Add(CounterID);

    Filter.Insert("counter_ids", CountersArray);

    Result = OPI_YandexMetrika.GetCountersList(Token, Filter);
```
 

 <Tabs>
  
    <TabItem value="bash" label="Bash" default>
        ```bash
            # JSON data can also be passed as a path to a .json file
            
            oint metrika GetCountersList \
             --token "***" \
             --filter "{'counter_ids':['105781505']}"
        ```
    </TabItem>
  
    <TabItem value="bat" label="CMD/Bat" default>
        ```batch
            :: JSON data can also be passed as a path to a .json file
            
            oint metrika GetCountersList ^
             --token "***" ^
             --filter "{'counter_ids':['105781505']}"
        ```
    </TabItem>
</Tabs>


```json title="Result"
{
 "rows": 4,
 "counters": [
  {
   "id": 105781505,
   "status": "Active",
   "owner_login": "bayselonarrend",
   "code_status": "CS_ERR_UNKNOWN",
   "activity_status": "low",
   "type": "simple",
   "favorite": 0,
   "hide_address": 0,
   "pro": 0,
   "permission": "own",
   "webvisor": {
    "arch_enabled": 0,
    "arch_type": "none",
    "load_player_type": "proxy",
    "wv_version": 2,
    "allow_wv2": true,
    "wv_forms": 1
   },
   "code_options": {
    "async": 0,
    "informer": {
     "enabled": 1,
     "type": "ext",
     "size": 2,
     "indicator": "uniques",
     "color_start": "EEEEEEEE",
     "color_end": "EFEFEFFE",
     "color_text": 0,
     "color_arrow": 1
    },
    "visor": 1,
    "track_hash": 1,
    "xml_site": 0,
    "clickmap": 1,
    "in_one_line": 0,
    "ecommerce": 1,
    "alternative_cdn": 1,
    "ecommerce_object": "dataLayer",
    "ytm": false,
    "ssr": true
   },
   "create_time": "2025-12-10T20:11:02+00:00",
   "time_zone_name": "Europe/Moscow",
   "time_zone_offset": 180,
   "partner_id": 0,
   "site": "openintegrations.dev",
   "site2": {
    "site": "openintegrations.dev",
    "domain": "openintegrations.dev"
   },
   "gdpr_agreement_accepted": 1
  },
  {
   "id": 104954469,
   "status": "Active",
   "owner_login": "bayselonarrend",
   "code_status": "CS_ERR_UNKNOWN",
   "activity_status": "low",
   "type": "simple",
   "favorite": 0,
   "hide_address": 0,
   "pro": 0,
   "permission": "own",
   "webvisor": {
    "arch_enabled": 0,
    "arch_type": "none",
    "load_player_type": "proxy",
    "wv_version": 2,
    "allow_wv2": true,
    "wv_forms": 1
   },
   "code_options": {
    "async": 0,
    "informer": {
     "enabled": 1,
     "type": "ext",
     "size": 2,
     "indicator": "uniques",
     "color_start": "EEEEEEEE",
     "color_end": "EFEFEFFE",
     "color_text": 0,
     "color_arrow": 1
    },
    "visor": 1,
    "track_hash": 1,
    "xml_site": 0,
    "clickmap": 1,
    "in_one_line": 0,
    "ecommerce": 1,
    "alternative_cdn": 1,
    "ecommerce_object": "dataLayer",
    "ytm": false,
    "ssr": true
   },
   "create_time": "2025-10-29T17:54:06+00:00",
   "time_zone_name": "Europe/Moscow",
   "time_zone_offset": 180,
   "partner_id": 0,
   "site": "openintegrations.dev",
   "site2": {
    "site": "openintegrations.dev",
    "domain": "openintegrations.dev"
   },
   "gdpr_agreement_accepted": 1
  },
  {
   "id": 97292922,
   "status": "Active",
   "owner_login": "bayselonarrend",
   "code_status": "CS_ERR_UNKNOWN",
   "activity_status": "low",
   "name": "OpenIntegrations",
   "type": "simple",
   "favorite": 0,
   "hide_address": 0,
   "pro": 0,
   "permission": "own",
   "webvisor": {
    "arch_enabled": 0,
    "arch_type": "none",
    "load_player_type": "proxy",
    "wv_version": 2,
    "allow_wv2": true,
    "wv_forms": 1
   },
   "code_options": {
    "async": 1,
    "informer": {
     "enabled": 0,
     "type": "ext",
     "size": 3,
     "indicator": "pageviews",
     "color_start": "FFFFFFFF",
     "color_end": "EFEFEFFF",
     "color_text": 0,
     "color_arrow": 1
    },
    "visor": 0,
    "track_hash": 0,
    "xml_site": 0,
    "clickmap": 1,
    "in_one_line": 0,
    "ecommerce": 0,
    "alternative_cdn": 0,
    "ecommerce_object": "dataLayer",
    "ytm": false,
...
```
