---
sidebar_position: 2
description: Получить подборки по ID и другие функции для работы с 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';

# Получить подборки по ID
 Получить список подборок по массиву ID



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

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

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



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

    Результат = OPI_VK.ПолучитьПодборкиПоИД(Подборка, Параметры);
```
    

 <Tabs>
  
    <TabItem value="bash" label="Bash" default>
        ```bash
            # JSON данные также могут быть переданы как путь к файлу .json
            
            oint vk ПолучитьПодборкиПоИД \
              --sels 146 \
              --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 ПолучитьПодборкиПоИД ^
              --sels 146 ^
              --auth "{'access_token':'***','owner_id':'-218861756','app_id':'51694790','group_id':'218861756'}"
        ```
    </TabItem>
</Tabs>


```json title="Результат"
{
 "response": {
  "count": 1,
  "items": [
   {
    "id": 147,
    "owner_id": -218861756,
    "title": "Измененная подборка",
    "count": 0,
    "updated_time": 1765365869,
    "is_main": false,
    "is_hidden": false,
    "photo": {
     "album_id": -53,
     "date": 1765365868,
     "id": 457261129,
     "owner_id": -218861756,
     "sizes": [
      {
       "height": 54,
       "type": "s",
       "width": "***",
       "url": "https://sun9-73.userapi.com/s/v1/ig2/_s9tBJGNeajaTvH-cgQi95Q1eAuafcHmfoofUnbB13GLipLuQI3S66lh7eInFty3a2QeioM-5gniRR21bebrDuK7.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": "***",
       "url": "https://sun9-73.userapi.com/s/v1/ig2/_s9tBJGNeajaTvH-cgQi95Q1eAuafcHmfoofUnbB13GLipLuQI3S66lh7eInFty3a2QeioM-5gniRR21bebrDuK7.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": "***",
       "url": "https://sun9-73.userapi.com/s/v1/ig2/_s9tBJGNeajaTvH-cgQi95Q1eAuafcHmfoofUnbB13GLipLuQI3S66lh7eInFty3a2QeioM-5gniRR21bebrDuK7.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": "***",
       "url": "https://sun9-73.userapi.com/s/v1/ig2/_s9tBJGNeajaTvH-cgQi95Q1eAuafcHmfoofUnbB13GLipLuQI3S66lh7eInFty3a2QeioM-5gniRR21bebrDuK7.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": "***",
       "url": "https://sun9-73.userapi.com/s/v1/ig2/_s9tBJGNeajaTvH-cgQi95Q1eAuafcHmfoofUnbB13GLipLuQI3S66lh7eInFty3a2QeioM-5gniRR21bebrDuK7.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": "***",
       "url": "https://sun9-73.userapi.com/s/v1/ig2/_s9tBJGNeajaTvH-cgQi95Q1eAuafcHmfoofUnbB13GLipLuQI3S66lh7eInFty3a2QeioM-5gniRR21bebrDuK7.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": "***",
       "url": "https://sun9-73.userapi.com/s/v1/ig2/_s9tBJGNeajaTvH-cgQi95Q1eAuafcHmfoofUnbB13GLipLuQI3S66lh7eInFty3a2QeioM-5gniRR21bebrDuK7.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": "***",
       "url": "https://sun9-73.userapi.com/s/v1/ig2/_s9tBJGNeajaTvH-cgQi95Q1eAuafcHmfoofUnbB13GLipLuQI3S66lh7eInFty3a2QeioM-5gniRR21bebrDuK7.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": "***",
       "url": "https://sun9-73.userapi.com/s/v1/ig2/_s9tBJGNeajaTvH-cgQi95Q1eAuafcHmfoofUnbB13GLipLuQI3S66lh7eInFty3a2QeioM-5gniRR21bebrDuK7.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": "***",
       "url": "https://sun9-73.userapi.com/s/v1/ig2/_s9tBJGNeajaTvH-cgQi95Q1eAuafcHmfoofUnbB13GLipLuQI3S66lh7eInFty3a2QeioM-5gniRR21bebrDuK7.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": "***",
       "url": "https://sun9-73.userapi.com/s/v1/ig2/_s9tBJGNeajaTvH-cgQi95Q1eAuafcHmfoofUnbB13GLipLuQI3S66lh7eInFty3a2QeioM-5gniRR21bebrDuK7.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": "***",
     "has_tags": false,
     "orig_photo": {
      "height": 1920,
      "type": "base",
      "url": "https://sun9-73.userapi.com/s/v1/ig2/_s9tBJGNeajaTvH-cgQi95Q1eAuafcHmfoofUnbB13GLipLuQI3S66lh7eInFty3a2QeioM-5gniRR21bebrDuK7.jpg?quality=95&as=32x24,48x36,72x54,108x81,160x120,240x180,360x270,480x360,540x405,640x480,720x540,1080x810,1280x960,1440x1080,2560x1920&from=bu",
      "width": "***"
     }
    }
   }
  ]
 }
}
```
