---
sidebar_position: 9
description: Get list of files and other functions to work with Yandex Disk 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 Disk]
---

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

# Get list of files
Gets a list of files with or without filtering by type List of available types: audio, backup, book, compressed, data, development, diskimage, document, encoded, executable, flash, font, mage, settings, spreadsheet, text, unknown, video, web



`Function GetFilesList(Val Token, Val Count = 0, Val OffsetFromStart = 0, Val FilterByType = "", Val SortByDate = False) Export`

  | Parameter | CLI option | Type | Required | Description |
  |-|-|-|-|-|
  | Token | --token | String | &#x2714; | Token |
  | Count | --amount | Number, String | &#x2716; | Number of returned objects |
  | OffsetFromStart | --offset | Number | &#x2716; | Offset for getting objects not from the beginning of the list |
  | FilterByType | --type | String | &#x2716; | Filter by file type |
  | SortByDate | --datesort | Boolean | &#x2716; | True > sort by date, False > alphabetically |

  
  Returns:  Map Of KeyAndValue - serialized JSON response from Yandex



```bsl title="1C:Enterprise/OneScript code example"
    Token           = "y0__xCOranuBRj1uTsgs8z_iRV...";
    Count           = 2;
    OffsetFromStart = 1;
    FilterByType    = "image";

    Result = OPI_YandexDisk.GetFilesList(Token, Count, OffsetFromStart, FilterByType);
```
 

 <Tabs>
  
    <TabItem value="bash" label="Bash" default>
        ```bash
            oint yadisk GetFilesList \
             --token "***" \
             --amount 2 \
             --offset 1 \
             --type "image"
        ```
    </TabItem>
  
    <TabItem value="bat" label="CMD/Bat" default>
        ```batch
            oint yadisk GetFilesList ^
             --token "***" ^
             --amount 2 ^
             --offset 1 ^
             --type "image"
        ```
    </TabItem>
</Tabs>


```json title="Result"
{
 "limit": 2,
 "items": [
  {
   "path": "disk:/Тестовая папка/Мишки.jpg",
   "type": "file",
   "name": "Мишки.jpg",
   "created": "2024-02-01T12:13:45+00:00",
   "modified": "2024-02-10T11:05:03+00:00",
   "size": 1555830,
   "mime_type": "image/jpeg",
   "md5": "569a1c98696050439b5b2a1ecfa52d19",
   "sha256": "d76ce57d8abf4e8eafbc7c85cec59a7a7f12b1d603d51e928be4a3fea0f6817c",
   "preview": "https://downloader.disk.yandex.ru/preview/f2082e1eda56a6df7b3fc7f939414242081338027a4bb10718bae53f18631215/inf/fwhLIia_-zlk2uITaqxgbGJbR3ANcQde87h7hiBT0GhEI8fhcC9IFRIL8W4OBV0J-yLh1Ds-lBckf41RQO7cPQ%3D%3D?uid=1573541518&filename=%D0%9C%D0%B8%D1%88%D0%BA%D0%B8.jpg&disposition=inline&hash=&limit=0&content_type=image%2Fjpeg&owner_uid=1573541518&tknv=v3&size=S&crop=0",
   "media_type": "image",
   "sizes": [
    {
     "url": "https://downloader.disk.yandex.ru/disk/6f22de65ac515e397123ee46b1ab6f6f6853977168268d9dd60fbb5e27f417ad/693a0242/YCWwIV93r7kdvdgkpYJf7GJbR3ANcQde87h7hiBT0GgAoFo_n3KO9GXq2HWzSWwrwox97L651eAD93T19uJnow%3D%3D?uid=1573541518&filename=%D0%9C%D0%B8%D1%88%D0%BA%D0%B8.jpg&disposition=inline&hash=&limit=0&content_type=image%2Fjpeg&owner_uid=1573541518&fsize=1555830&hid=d4562df88a4f7d98d8aa94e30de24c09&media_type=image&tknv=v3&etag=569a1c98696050439b5b2a1ecfa52d19",
     "name": "ORIGINAL"
    },
    {
     "url": "https://downloader.disk.yandex.ru/preview/f2082e1eda56a6df7b3fc7f939414242081338027a4bb10718bae53f18631215/inf/fwhLIia_-zlk2uITaqxgbGJbR3ANcQde87h7hiBT0GhEI8fhcC9IFRIL8W4OBV0J-yLh1Ds-lBckf41RQO7cPQ%3D%3D?uid=1573541518&filename=%D0%9C%D0%B8%D1%88%D0%BA%D0%B8.jpg&disposition=inline&hash=&limit=0&content_type=image%2Fjpeg&owner_uid=1573541518&tknv=v3",
     "name": "DEFAULT"
    },
    {
     "url": "https://downloader.disk.yandex.ru/preview/f2082e1eda56a6df7b3fc7f939414242081338027a4bb10718bae53f18631215/inf/fwhLIia_-zlk2uITaqxgbGJbR3ANcQde87h7hiBT0GhEI8fhcC9IFRIL8W4OBV0J-yLh1Ds-lBckf41RQO7cPQ%3D%3D?uid=1573541518&filename=%D0%9C%D0%B8%D1%88%D0%BA%D0%B8.jpg&disposition=inline&hash=&limit=0&content_type=image%2Fjpeg&owner_uid=1573541518&tknv=v3&size=XXXS&crop=0",
     "name": "XXXS"
    },
    {
     "url": "https://downloader.disk.yandex.ru/preview/f2082e1eda56a6df7b3fc7f939414242081338027a4bb10718bae53f18631215/inf/fwhLIia_-zlk2uITaqxgbGJbR3ANcQde87h7hiBT0GhEI8fhcC9IFRIL8W4OBV0J-yLh1Ds-lBckf41RQO7cPQ%3D%3D?uid=1573541518&filename=%D0%9C%D0%B8%D1%88%D0%BA%D0%B8.jpg&disposition=inline&hash=&limit=0&content_type=image%2Fjpeg&owner_uid=1573541518&tknv=v3&size=XXS&crop=0",
     "name": "XXS"
    },
    {
     "url": "https://downloader.disk.yandex.ru/preview/f2082e1eda56a6df7b3fc7f939414242081338027a4bb10718bae53f18631215/inf/fwhLIia_-zlk2uITaqxgbGJbR3ANcQde87h7hiBT0GhEI8fhcC9IFRIL8W4OBV0J-yLh1Ds-lBckf41RQO7cPQ%3D%3D?uid=1573541518&filename=%D0%9C%D0%B8%D1%88%D0%BA%D0%B8.jpg&disposition=inline&hash=&limit=0&content_type=image%2Fjpeg&owner_uid=1573541518&tknv=v3&size=XS&crop=0",
     "name": "XS"
    },
    {
     "url": "https://downloader.disk.yandex.ru/preview/f2082e1eda56a6df7b3fc7f939414242081338027a4bb10718bae53f18631215/inf/fwhLIia_-zlk2uITaqxgbGJbR3ANcQde87h7hiBT0GhEI8fhcC9IFRIL8W4OBV0J-yLh1Ds-lBckf41RQO7cPQ%3D%3D?uid=1573541518&filename=%D0%9C%D0%B8%D1%88%D0%BA%D0%B8.jpg&disposition=inline&hash=&limit=0&content_type=image%2Fjpeg&owner_uid=1573541518&tknv=v3&size=S&crop=0",
     "name": "S"
    },
    {
     "url": "https://downloader.disk.yandex.ru/preview/f2082e1eda56a6df7b3fc7f939414242081338027a4bb10718bae53f18631215/inf/fwhLIia_-zlk2uITaqxgbGJbR3ANcQde87h7hiBT0GhEI8fhcC9IFRIL8W4OBV0J-yLh1Ds-lBckf41RQO7cPQ%3D%3D?uid=1573541518&filename=%D0%9C%D0%B8%D1%88%D0%BA%D0%B8.jpg&disposition=inline&hash=&limit=0&content_type=image%2Fjpeg&owner_uid=1573541518&tknv=v3&size=M&crop=0",
     "name": "M"
    },
    {
     "url": "https://downloader.disk.yandex.ru/preview/f2082e1eda56a6df7b3fc7f939414242081338027a4bb10718bae53f18631215/inf/fwhLIia_-zlk2uITaqxgbGJbR3ANcQde87h7hiBT0GhEI8fhcC9IFRIL8W4OBV0J-yLh1Ds-lBckf41RQO7cPQ%3D%3D?uid=1573541518&filename=%D0%9C%D0%B8%D1%88%D0%BA%D0%B8.jpg&disposition=inline&hash=&limit=0&content_type=image%2Fjpeg&owner_uid=1573541518&tknv=v3&size=L&crop=0",
     "name": "L"
    },
    {
     "url": "https://downloader.disk.yandex.ru/preview/f2082e1eda56a6df7b3fc7f939414242081338027a4bb10718bae53f18631215/inf/fwhLIia_-zlk2uITaqxgbGJbR3ANcQde87h7hiBT0GhEI8fhcC9IFRIL8W4OBV0J-yLh1Ds-lBckf41RQO7cPQ%3D%3D?uid=1573541518&filename=%D0%9C%D0%B8%D1%88%D0%BA%D0%B8.jpg&disposition=inline&hash=&limit=0&content_type=image%2Fjpeg&owner_uid=1573541518&tknv=v3&size=XL&crop=0",
     "name": "XL"
    },
    {
     "url": "https://downloader.disk.yandex.ru/preview/f2082e1eda56a6df7b3fc7f939414242081338027a4bb10718bae53f18631215/inf/fwhLIia_-zlk2uITaqxgbGJbR3ANcQde87h7hiBT0GhEI8fhcC9IFRIL8W4OBV0J-yLh1Ds-lBckf41RQO7cPQ%3D%3D?uid=1573541518&filename=%D0%9C%D0%B8%D1%88%D0%BA%D0%B8.jpg&disposition=inline&hash=&limit=0&content_type=image%2Fjpeg&owner_uid=1573541518&tknv=v3&size=XXL&crop=0",
     "name": "XXL"
    },
    {
     "url": "https://downloader.disk.yandex.ru/preview/f2082e1eda56a6df7b3fc7f939414242081338027a4bb10718bae53f18631215/inf/fwhLIia_-zlk2uITaqxgbGJbR3ANcQde87h7hiBT0GhEI8fhcC9IFRIL8W4OBV0J-yLh1Ds-lBckf41RQO7cPQ%3D%3D?uid=1573541518&filename=%D0%9C%D0%B8%D1%88%D0%BA%D0%B8.jpg&disposition=inline&hash=&limit=0&content_type=image%2Fjpeg&owner_uid=1573541518&tknv=v3&size=XXXL&crop=0",
     "name": "XXXL"
    },
    {
     "url": "https://downloader.disk.yandex.ru/preview/f2082e1eda56a6df7b3fc7f939414242081338027a4bb10718bae53f18631215/inf/fwhLIia_-zlk2uITaqxgbGJbR3ANcQde87h7hiBT0GhEI8fhcC9IFRIL8W4OBV0J-yLh1Ds-lBckf41RQO7cPQ%3D%3D?uid=1573541518&filename=%D0%9C%D0%B8%D1%88%D0%BA%D0%B8.jpg&disposition=inline&hash=&limit=0&content_type=image%2Fjpeg&owner_uid=1573541518&tknv=v3&size=S&crop=0",
     "name": "C"
    }
   ],
   "resource_id": "1573541518:12897a65b076a5a0a92f3033e271eb251764c1e70ba590f383d55c3da7ef8c60",
   "revision": 1707563104041868,
   "comment_ids": {
    "public_resource": "1573541518:12897a65b076a5a0a92f3033e271eb251764c1e70ba590f383d55c3da7ef8c60",
    "private_resource": "1573541518:12897a65b076a5a0a92f3033e271eb251764c1e70ba590f383d55c3da7ef8c60"
   },
   "exif": {
    "date_time": "2014-12-13T14:29:24+00:00"
   },
   "antivirus_status": "clean",
   "file": "https://downloader.disk.yandex.ru/disk/e96e275d5f341586d202fdfdf94908289432e04b22fcc7daadcc6617f90ddeca/693a0242/YCWwIV93r7kdvdgkpYJf7GJbR3ANcQde87h7hiBT0GgAoFo_n3KO9GXq2HWzSWwrwox97L651eAD93T19uJnow%3D%3D?uid=1573541518&filename=%D0%9C%D0%B8%D1%88%D0%BA%D0%B8.jpg&disposition=attachment&hash=&limit=0&content_type=image%2Fjpeg&owner_uid=1573541518&fsize=1555830&hid=d4562df88a4f7d98d8aa94e30de24c09&media_type=image&tknv=v3&etag=569a1c98696050439b5b2a1ecfa52d19"
  },
  {
   "path": "disk:/Тестовая папка/Альпака.png",
   "type": "file",
   "name": "Альпака.png",
   "created": "2024-02-09T08:01:20+00:00",
   "modified": "2024-02-10T11:05:23+00:00",
   "size": 440431,
   "mime_type": "image/png",
   "md5": "8d7bf7d7ee61113f9044f3a28496e458",
   "sha256": "f7607461b40164d5064d1d5085cbe1e94ecb1326e7ff8db857931b2ccd14b7f8",
   "preview": "https://downloader.disk.yandex.ru/preview/18ccf6126de1f9f8417342056b3b45465558dd5c5a6f9e8fbe0a7dba2d443a38/inf/XaOrXlYnBpxW797ZgOAhk3wycN7Y8aZeqz0V5aRiHflcdzqrKKea1UOwO5u7r7puG36lZhKtArCk5dpjakvhRw%3D%3D?uid=1573541518&filename=%D0%90%D0%BB%D1%8C%D0%BF%D0%B0%D0%BA%D0%B0.png&disposition=inline&hash=&limit=0&content_type=image%2Fpng&owner_uid=1573541518&tknv=v3&size=S&crop=0",
   "media_type": "image",
   "sizes": [
    {
     "url": "https://downloader.disk.yandex.ru/disk/00f78e3eb77c57723f09cbf7ec8ab9446426376a56311c492afd1c6aace1918a/693a0242/gwThwhLBKYvLhQCNnqAHirhroxr0HKnwcS_PunGIhx4_5THBef5BLmUoWbu9WB9u80KQZzXUtb3zIfpRSdMI0Q%3D%3D?uid=1573541518&filename=%D0%90%D0%BB%D1%8C%D0%BF%D0%B0%D0%BA%D0%B0.png&disposition=inline&hash=&limit=0&content_type=image%2Fpng&owner_uid=1573541518&fsize=440431&hid=0e9b208e1aea0dbd58b4b43ccdc3ad5a&media_type=image&tknv=v3&etag=8d7bf7d7ee61113f9044f3a28496e458",
     "name": "ORIGINAL"
    },
    {
     "url": "https://downloader.disk.yandex.ru/preview/18ccf6126de1f9f8417342056b3b45465558dd5c5a6f9e8fbe0a7dba2d443a38/inf/XaOrXlYnBpxW797ZgOAhk3wycN7Y8aZeqz0V5aRiHflcdzqrKKea1UOwO5u7r7puG36lZhKtArCk5dpjakvhRw%3D%3D?uid=1573541518&filename=%D0%90%D0%BB%D1%8C%D0%BF%D0%B0%D0%BA%D0%B0.png&disposition=inline&hash=&limit=0&content_type=image%2Fpng&owner_uid=1573541518&tknv=v3",
     "name": "DEFAULT"
    },
    {
     "url": "https://downloader.disk.yandex.ru/preview/18ccf6126de1f9f8417342056b3b45465558dd5c5a6f9e8fbe0a7dba2d443a38/inf/XaOrXlYnBpxW797ZgOAhk3wycN7Y8aZeqz0V5aRiHflcdzqrKKea1UOwO5u7r7puG36lZhKtArCk5dpjakvhRw%3D%3D?uid=1573541518&filename=%D0%90%D0%BB%D1%8C%D0%BF%D0%B0%D0%BA%D0%B0.png&disposition=inline&hash=&limit=0&content_type=image%2Fpng&owner_uid=1573541518&tknv=v3&size=XXXS&crop=0",
     "name": "XXXS"
    },
    {
     "url": "https://downloader.disk.yandex.ru/preview/18ccf6126de1f9f8417342056b3b45465558dd5c5a6f9e8fbe0a7dba2d443a38/inf/XaOrXlYnBpxW797ZgOAhk3wycN7Y8aZeqz0V5aRiHflcdzqrKKea1UOwO5u7r7puG36lZhKtArCk5dpjakvhRw%3D%3D?uid=1573541518&filename=%D0%90%D0%BB%D1%8C%D0%BF%D0%B0%D0%BA%D0%B0.png&disposition=inline&hash=&limit=0&content_type=image%2Fpng&owner_uid=1573541518&tknv=v3&size=XXS&crop=0",
     "name": "XXS"
    },
    {
     "url": "https://downloader.disk.yandex.ru/preview/18ccf6126de1f9f8417342056b3b45465558dd5c5a6f9e8fbe0a7dba2d443a38/inf/XaOrXlYnBpxW797ZgOAhk3wycN7Y8aZeqz0V5aRiHflcdzqrKKea1UOwO5u7r7puG36lZhKtArCk5dpjakvhRw%3D%3D?uid=1573541518&filename=%D0%90%D0%BB%D1%8C%D0%BF%D0%B0%D0%BA%D0%B0.png&disposition=inline&hash=&limit=0&content_type=image%2Fpng&owner_uid=1573541518&tknv=v3&size=XS&crop=0",
     "name": "XS"
    },
    {
     "url": "https://downloader.disk.yandex.ru/preview/18ccf6126de1f9f8417342056b3b45465558dd5c5a6f9e8fbe0a7dba2d443a38/inf/XaOrXlYnBpxW797ZgOAhk3wycN7Y8aZeqz0V5aRiHflcdzqrKKea1UOwO5u7r7puG36lZhKtArCk5dpjakvhRw%3D%3D?uid=1573541518&filename=%D0%90%D0%BB%D1%8C%D0%BF%D0%B0%D0%BA%D0%B0.png&disposition=inline&hash=&limit=0&content_type=image%2Fpng&owner_uid=1573541518&tknv=v3&size=S&crop=0",
     "name": "S"
    },
    {
     "url": "https://downloader.disk.yandex.ru/preview/18ccf6126de1f9f8417342056b3b45465558dd5c5a6f9e8fbe0a7dba2d443a38/inf/XaOrXlYnBpxW797ZgOAhk3wycN7Y8aZeqz0V5aRiHflcdzqrKKea1UOwO5u7r7puG36lZhKtArCk5dpjakvhRw%3D%3D?uid=1573541518&filename=%D0%90%D0%BB%D1%8C%D0%BF%D0%B0%D0%BA%D0%B0.png&disposition=inline&hash=&limit=0&content_type=image%2Fpng&owner_uid=1573541518&tknv=v3&size=M&crop=0",
     "name": "M"
    },
    {
     "url": "https://downloader.disk.yandex.ru/preview/18ccf6126de1f9f8417342056b3b45465558dd5c5a6f9e8fbe0a7dba2d443a38/inf/XaOrXlYnBpxW797ZgOAhk3wycN7Y8aZeqz0V5aRiHflcdzqrKKea1UOwO5u7r7puG36lZhKtArCk5dpjakvhRw%3D%3D?uid=1573541518&filename=%D0%90%D0%BB%D1%8C%D0%BF%D0%B0%D0%BA%D0%B0.png&disposition=inline&hash=&limit=0&content_type=image%2Fpng&owner_uid=1573541518&tknv=v3&size=L&crop=0",
     "name": "L"
    },
    {
     "url": "https://downloader.disk.yandex.ru/preview/18ccf6126de1f9f8417342056b3b45465558dd5c5a6f9e8fbe0a7dba2d443a38/inf/XaOrXlYnBpxW797ZgOAhk3wycN7Y8aZeqz0V5aRiHflcdzqrKKea1UOwO5u7r7puG36lZhKtArCk5dpjakvhRw%3D%3D?uid=1573541518&filename=%D0%90%D0%BB%D1%8C%D0%BF%D0%B0%D0%BA%D0%B0.png&disposition=inline&hash=&limit=0&content_type=image%2Fpng&owner_uid=1573541518&tknv=v3&size=XL&crop=0",
     "name": "XL"
    },
    {
     "url": "https://downloader.disk.yandex.ru/preview/18ccf6126de1f9f8417342056b3b45465558dd5c5a6f9e8fbe0a7dba2d443a38/inf/XaOrXlYnBpxW797ZgOAhk3wycN7Y8aZeqz0V5aRiHflcdzqrKKea1UOwO5u7r7puG36lZhKtArCk5dpjakvhRw%3D%3D?uid=1573541518&filename=%D0%90%D0%BB%D1%8C%D0%BF%D0%B0%D0%BA%D0%B0.png&disposition=inline&hash=&limit=0&content_type=image%2Fpng&owner_uid=1573541518&tknv=v3&size=XXL&crop=0",
     "name": "XXL"
    },
    {
     "url": "https://downloader.disk.yandex.ru/preview/18ccf6126de1f9f8417342056b3b45465558dd5c5a6f9e8fbe0a7dba2d443a38/inf/XaOrXlYnBpxW797ZgOAhk3wycN7Y8aZeqz0V5aRiHflcdzqrKKea1UOwO5u7r7puG36lZhKtArCk5dpjakvhRw%3D%3D?uid=1573541518&filename=%D0%90%D0%BB%D1%8C%D0%BF%D0%B0%D0%BA%D0%B0.png&disposition=inline&hash=&limit=0&content_type=image%2Fpng&owner_uid=1573541518&tknv=v3&size=XXXL&crop=0",
     "name": "XXXL"
    },
    {
     "url": "https://downloader.disk.yandex.ru/preview/18ccf6126de1f9f8417342056b3b45465558dd5c5a6f9e8fbe0a7dba2d443a38/inf/XaOrXlYnBpxW797ZgOAhk3wycN7Y8aZeqz0V5aRiHflcdzqrKKea1UOwO5u7r7puG36lZhKtArCk5dpjakvhRw%3D%3D?uid=1573541518&filename=%D0%90%D0%BB%D1%8C%D0%BF%D0%B0%D0%BA%D0%B0.png&disposition=inline&hash=&limit=0&content_type=image%2Fpng&owner_uid=1573541518&tknv=v3&size=S&crop=0",
     "name": "C"
    }
   ],
   "resource_id": "1573541518:98e55a95f13dc18d7a531ddc8208baa10bdb282970b441243d13a7cd1231a8d1",
   "revision": 1707839673353185,
   "comment_ids": {
    "public_resource": "1573541518:98e55a95f13dc18d7a531ddc8208baa10bdb282970b441243d13a7cd1231a8d1",
    "private_resource": "1573541518:98e55a95f13dc18d7a531ddc8208baa10bdb282970b441243d13a7cd1231a8d1"
   },
   "exif": {},
   "antivirus_status": "clean",
   "file": "https://downloader.disk.yandex.ru/disk/fd32c936b04d0940d52bf1f09452edab20ae6fdf684ef6a4d54f503f7551c193/693a0242/gwThwhLBKYvLhQCNnqAHirhroxr0HKnwcS_PunGIhx4_5THBef5BLmUoWbu9WB9u80KQZzXUtb3zIfpRSdMI0Q%3D%3D?uid=1573541518&filename=%D0%90%D0%BB%D1%8C%D0%BF%D0%B0%D0%BA%D0%B0.png&disposition=attachment&hash=&limit=0&content_type=image%2Fpng&owner_uid=1573541518&fsize=440431&hid=0e9b208e1aea0dbd58b4b43ccdc3ad5a&media_type=image&tknv=v3&etag=8d7bf7d7ee61113f9044f3a28496e458"
  }
 ],
...
```
