---
sidebar_position: 2
description: Получить список товаров и другие функции для работы с VK в Открытом пакете интеграций - бесплатной open-source библиотеке интеграций для 1С:Предприятие 8, OneScript и CLI
keywords: [1C, 1С, 1С:Предприятие, 1С:Предприятие 8.3, API, Интеграция, Сервисы, Обмен, OneScript, CLI, VK]
---

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

# Получить список товаров
 Получает список товаров сообщества



`Функция ПолучитьСписокТоваров(Знач Подборка = "", Знач Параметры = "") Экспорт`

  | Параметр | CLI опция | Тип | Обяз. | Назначение |
  |-|-|-|-|-|
  | Подборка | --sel | Строка, Число | &#x2716; | ID подборки, если нужен отбор |
  | Параметры | --auth | Структура из Строка | &#x2716; | Параметры авторизации. См. [`ПолучитьПараметрыАвторизации`](/docs/VK/Authorization/Get-auth-parameters) |

  
  Возвращаемое значение:   Соответствие Из КлючИЗначение - Массив соответствий товаров



```bsl title="Пример использования для 1С:Предприятие/OneScript"
    Параметры = ПолучитьПараметрыВК();
    Результат = OPI_VK.ПолучитьСписокТоваров( , Параметры);
```
    

 <Tabs>
  
    <TabItem value="bash" label="Bash" default>
        ```bash
            # JSON данные также могут быть переданы как путь к файлу .json
            
            oint vk ПолучитьСписокТоваров \
              --auth "{'access_token':'***','owner_id':'-218861756','app_id':'51694790','group_id':'218861756'}"
        ```
    </TabItem>
  
    <TabItem value="bat" label="CMD/Bat" default>
        ```batch
            :: JSON данные также могут быть переданы как путь к файлу .json
            
            oint vk ПолучитьСписокТоваров ^
              --auth "{'access_token':'***','owner_id':'-218861756','app_id':'51694790','group_id':'218861756'}"
        ```
    </TabItem>
</Tabs>


```json title="Результат"
[
 {
  "availability": 0,
  "category": {
   "inner_type": "market_market_category_old",
   "id": 20173,
   "name": "Батарейки",
   "section": {
    "id": 10016,
    "name": "Канцелярские товары"
   }
  },
  "description": "Описание товара",
  "id": 12359884,
  "owner_id": -218861756,
  "price": {
   "amount": "100",
   "currency": {
    "id": 643,
    "name": "RUB",
    "title": "₽"
   },
   "text": "1 ₽",
   "discount_rate": -93,
   "old_amount": "1500",
   "old_amount_text": "15 ₽"
  },
  "title": "Тестовый товар измененный",
  "other_items": [
   {
    "title": "Другие товары сообщества",
    "view_type": 1,
    "item_ids": [
     "-218861756_12358614",
     "-218861756_12352321",
     "-218861756_12316439",
     "-218861756_12309777",
     "-218861756_11825634",
     "-218861756_11699243",
     "-218861756_11311308",
     "-218861756_11311305",
     "-218861756_11311277",
     "-218861756_11311275"
    ],
    "referrer_item_type": "other_goods"
   }
  ],
  "dimensions": {
   "width": 20,
   "height": 30,
   "length": 40
  },
  "weight": 100,
  "albums_ids": [],
  "photos": [
   {
    "album_id": -53,
    "date": 1765253597,
    "id": 40,
    "owner_id": -218861756,
    "access_key": "5ddc672dbed6bab744",
    "sizes": [
     {
      "height": 54,
      "type": "s",
      "width": 72,
      "url": "https://sun9-73.userapi.com/s/v1/ig2/3sgX-RVO10s5Q8FUuDfZd3fMSnBwVdaZkOZWzkbdbK6RdLSSSloZSOWnG5ntIGSpg24yT_KfPaWAZohzutENSsh8.jpg?quality=95&as=32x24,48x36,72x54,108x81,160x120,240x180,360x270,480x360,540x405,640x480,720x540,1080x810,1280x960,1440x1080,2560x1920&from=bu&cs=72x0"
     },
     {
      "height": 120,
      "type": "m",
      "width": 160,
      "url": "https://sun9-73.userapi.com/s/v1/ig2/3sgX-RVO10s5Q8FUuDfZd3fMSnBwVdaZkOZWzkbdbK6RdLSSSloZSOWnG5ntIGSpg24yT_KfPaWAZohzutENSsh8.jpg?quality=95&as=32x24,48x36,72x54,108x81,160x120,240x180,360x270,480x360,540x405,640x480,720x540,1080x810,1280x960,1440x1080,2560x1920&from=bu&cs=160x0"
     },
     {
      "height": 480,
      "type": "x",
      "width": 640,
      "url": "https://sun9-73.userapi.com/s/v1/ig2/3sgX-RVO10s5Q8FUuDfZd3fMSnBwVdaZkOZWzkbdbK6RdLSSSloZSOWnG5ntIGSpg24yT_KfPaWAZohzutENSsh8.jpg?quality=95&as=32x24,48x36,72x54,108x81,160x120,240x180,360x270,480x360,540x405,640x480,720x540,1080x810,1280x960,1440x1080,2560x1920&from=bu&cs=640x0"
     },
     {
      "height": 810,
      "type": "y",
      "width": 1080,
      "url": "https://sun9-73.userapi.com/s/v1/ig2/3sgX-RVO10s5Q8FUuDfZd3fMSnBwVdaZkOZWzkbdbK6RdLSSSloZSOWnG5ntIGSpg24yT_KfPaWAZohzutENSsh8.jpg?quality=95&as=32x24,48x36,72x54,108x81,160x120,240x180,360x270,480x360,540x405,640x480,720x540,1080x810,1280x960,1440x1080,2560x1920&from=bu&cs=1080x0"
     },
     {
      "height": 960,
      "type": "z",
      "width": 1280,
      "url": "https://sun9-73.userapi.com/s/v1/ig2/3sgX-RVO10s5Q8FUuDfZd3fMSnBwVdaZkOZWzkbdbK6RdLSSSloZSOWnG5ntIGSpg24yT_KfPaWAZohzutENSsh8.jpg?quality=95&as=32x24,48x36,72x54,108x81,160x120,240x180,360x270,480x360,540x405,640x480,720x540,1080x810,1280x960,1440x1080,2560x1920&from=bu&cs=1280x0"
     },
     {
      "height": 1920,
      "type": "w",
      "width": 2560,
      "url": "https://sun9-73.userapi.com/s/v1/ig2/3sgX-RVO10s5Q8FUuDfZd3fMSnBwVdaZkOZWzkbdbK6RdLSSSloZSOWnG5ntIGSpg24yT_KfPaWAZohzutENSsh8.jpg?quality=95&as=32x24,48x36,72x54,108x81,160x120,240x180,360x270,480x360,540x405,640x480,720x540,1080x810,1280x960,1440x1080,2560x1920&from=bu&cs=2560x0"
     },
     {
      "height": 81,
      "type": "o",
      "width": 108,
      "url": "https://sun9-73.userapi.com/s/v1/ig2/3sgX-RVO10s5Q8FUuDfZd3fMSnBwVdaZkOZWzkbdbK6RdLSSSloZSOWnG5ntIGSpg24yT_KfPaWAZohzutENSsh8.jpg?quality=95&as=32x24,48x36,72x54,108x81,160x120,240x180,360x270,480x360,540x405,640x480,720x540,1080x810,1280x960,1440x1080,2560x1920&from=bu&cs=108x0"
     },
     {
      "height": 180,
      "type": "p",
      "width": 240,
      "url": "https://sun9-73.userapi.com/s/v1/ig2/3sgX-RVO10s5Q8FUuDfZd3fMSnBwVdaZkOZWzkbdbK6RdLSSSloZSOWnG5ntIGSpg24yT_KfPaWAZohzutENSsh8.jpg?quality=95&as=32x24,48x36,72x54,108x81,160x120,240x180,360x270,480x360,540x405,640x480,720x540,1080x810,1280x960,1440x1080,2560x1920&from=bu&cs=240x0"
     },
     {
      "height": 270,
      "type": "q",
      "width": 360,
      "url": "https://sun9-73.userapi.com/s/v1/ig2/3sgX-RVO10s5Q8FUuDfZd3fMSnBwVdaZkOZWzkbdbK6RdLSSSloZSOWnG5ntIGSpg24yT_KfPaWAZohzutENSsh8.jpg?quality=95&as=32x24,48x36,72x54,108x81,160x120,240x180,360x270,480x360,540x405,640x480,720x540,1080x810,1280x960,1440x1080,2560x1920&from=bu&cs=360x0"
     },
     {
      "height": 405,
      "type": "r",
      "width": 540,
      "url": "https://sun9-73.userapi.com/s/v1/ig2/3sgX-RVO10s5Q8FUuDfZd3fMSnBwVdaZkOZWzkbdbK6RdLSSSloZSOWnG5ntIGSpg24yT_KfPaWAZohzutENSsh8.jpg?quality=95&as=32x24,48x36,72x54,108x81,160x120,240x180,360x270,480x360,540x405,640x480,720x540,1080x810,1280x960,1440x1080,2560x1920&from=bu&cs=540x0"
     },
     {
      "height": 1920,
      "type": "base",
      "width": 2560,
      "url": "https://sun9-73.userapi.com/s/v1/ig2/3sgX-RVO10s5Q8FUuDfZd3fMSnBwVdaZkOZWzkbdbK6RdLSSSloZSOWnG5ntIGSpg24yT_KfPaWAZohzutENSsh8.jpg?quality=95&as=32x24,48x36,72x54,108x81,160x120,240x180,360x270,480x360,540x405,640x480,720x540,1080x810,1280x960,1440x1080,2560x1920&from=bu"
     }
    ],
    "text": "",
    "user_id": 100,
    "web_view_token": "c51a1087d6cf5f87bc",
    "has_tags": false,
    "orig_photo": {
     "height": 1920,
     "type": "base",
     "url": "https://sun9-73.userapi.com/s/v1/ig2/3sgX-RVO10s5Q8FUuDfZd3fMSnBwVdaZkOZWzkbdbK6RdLSSSloZSOWnG5ntIGSpg24yT_KfPaWAZohzutENSsh8.jpg?quality=95&as=32x24,48x36,72x54,108x81,160x120,240x180,360x270,480x360,540x405,640x480,720x540,1080x810,1280x960,1440x1080,2560x1920&from=bu",
     "width": 2560
    }
   },
   {
    "album_id": -53,
    "date": 1765253600,
    "id": 41,
    "owner_id": -218861756,
    "access_key": "fe11a07501b8c23d81",
    "sizes": [
     {
      "height": 54,
      "type": "s",
...
```
