---
sidebar_position: 2
description: Get product list and other functions to work with VK 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, VK]
---

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

# Get product list
 Gets the community's product list



`Function GetProductList(Val Selection = "", Val Parameters = "") Export`

  | Parameter | CLI option | Type | Required | Description |
  |-|-|-|-|-|
  | Selection | --sel | String, Number | &#x2716; | Selection ID, if filtering is needed |
  | Parameters | --auth | Structure Of String | &#x2716; | Authorization parameters. See GetAuthParameters |

  
  Returns:  Map Of KeyAndValue - Array of product maps



```bsl title="1C:Enterprise/OneScript code example"
    Parameters = GetVKParameters();
    Result     = OPI_VK.GetProductList( , Parameters);
```
 

 <Tabs>
  
    <TabItem value="bash" label="Bash" default>
        ```bash
            # JSON data can also be passed as a path to a .json file
            
            oint vk GetProductList \
             --auth "{'access_token':'***','owner_id':'-218861756','app_id':'51694790','group_id':'218861756'}"
        ```
    </TabItem>
  
    <TabItem value="bat" label="CMD/Bat" default>
        ```batch
            :: JSON data can also be passed as a path to a .json file
            
            oint vk GetProductList ^
             --auth "{'access_token':'***','owner_id':'-218861756','app_id':'51694790','group_id':'218861756'}"
        ```
    </TabItem>
</Tabs>


```json title="Result"
[
 {
  "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": [],
  "can_comment": 1,
  "show_comments": 1,
  "show_reviews": 1,
  "can_repost": 1,
  "likes": {
   "count": 0,
   "user_likes": 0
  },
  "reposts": {
   "count": 0
  },
  "views_count": 0,
  "variants_grid": [],
  "owner_info": {
   "avatar": [],
   "name": "Test",
   "category": "Батарейки",
   "category_url": "/market-218861756",
   "is_corporated_market": false,
   "market_type": "pro"
  },
  "can_edit": true,
  "can_delete": true,
  "can_recover": false,
  "can_show_convert_to_service": true,
  "promotion": {
   "is_available": false
  },
  "labels": [],
  "date": 1765253601,
  "item_type": 0,
  "is_owner": true,
  "is_adult": false,
  "thumb_photo": "",
  "cart_quantity": 0,
  "sku": "12345",
  "reject_info": {
   "title": "Отредактируйте товар, чтобы опубликовать в Маркете ВКонтакте",
   "description": "Товар отклонён. Чтобы добавить его в «Маркет», укажите реальную цену товара или стоимость оказания услуги.",
   "moderation_status": 2,
   "info_link": "[https://vk.com/faq20323|Правила Маркета ВКонтакте]",
   "write_to_support_link": "https://vk.com/im?media=&sel=-215808305&ref=ProductId%3D-218861756_12359884",
   "in_progress": false,
   "buttons": [
    {
     "type": "market_edit",
     "url": "https://vk.com/app7702617#owner_id=-218861756&item_id=12359884&type=market"
    },
    {
     "type": "market_delete"
    }
   ]
  },
  "item_rating": {
   "rating": 0,
   "reviews_count": 0,
   "reviews_count_text": "Нет отзывов"
  },
  "has_group_access": true,
  "market_url": "https://vk.com/market/product/testovy-tovar-izmenenny-218861756-12359884"
 },
 {
  "availability": 0,
  "category": {
   "inner_type": "market_market_category_old",
   "id": 20173,
   "name": "Батарейки",
   "section": {
    "id": 10016,
    "name": "Канцелярские товары"
   }
  },
  "description": "Описание товара",
  "id": 12358614,
  "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_12359884",
     "-218861756_12352321",
...
```
