---
sidebar_position: 1
description: Get markets list and other functions to work with Yandex Market 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 Market]
---

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

# Get markets list
 Gets the list of shops in the cabinet by token



`Function GetMarketsList(Val Token, Val Page = 1) Export`

  | Parameter | CLI option | Type | Required | Description |
  |-|-|-|-|-|
  | Token | --Key) | String | &#x2714; | token |
  | Page | --page | Number | &#x2716; | Issue page number of the list |

  
  Returns:  Map Of KeyAndValue - serialized JSON response from Yandex Market

:::tip
Method at API documentation: [List of users shops](https://yandex.ru/dev/market/partner-api/doc/ru/reference/campaigns/getCampaigns)
:::
<br/>


```bsl title="1C:Enterprise/OneScript code example"
    Token = "ACMA:WRvGsjClMPDCqrhwBNOFRO...";

    Result = OPI_YandexMarket.GetMarketsList(Token);
```
 



```json title="Result"
{
 "campaigns": [
  {
   "domain": "Openintegrations Test1",
   "id": 129112733,
   "clientId": 306770815,
   "business": {
    "id": 172257075,
    "name": "Openintegrations Test1"
   }
  }
 ],
 "pager": {
  "total": 1,
  "from": 1,
  "to": 1,
  "currentPage": 1,
  "pagesCount": 1,
  "pageSize": 100
 }
}
```
