2024-10-15 10:50:56 +03:00
---
2024-10-15 10:16:04 +03:00
sidebar_position: 3
2025-05-05 11:15:20 +03:00
description: Get information about file and other functions to work with Bitrix24 in the Open Integration Package, a free open-source integration library for 1C:Enterprise 8, OneScript and CLI
2025-05-05 09:49:19 +03:00
keywords: [1C, 1С, 1С:Enterprise, 1С:Enterprise 8.3, API, Integration, Services, Exchange, OneScript, CLI, Bitrix24]
2024-10-15 10:16:04 +03:00
---
2024-10-15 10:50:56 +03:00
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
2024-10-15 10:16:04 +03:00
# Get information about file
Get information about file by ID
`Function GetFileInformation(Val URL, Val FileID, Val Token = "") Export`
2024-10-15 15:15:47 +03:00
| Parameter | CLI option | Type | Required | Description |
|-|-|-|-|-|
| URL | --url | String | ✔ | URL of webhook or a Bitrix24 domain, when token used |
| FileID | --fileid | String, Number | ✔ | File identifier |
| Token | --token | String | ✖ | Access token, when app auth method used |
2024-10-15 10:16:04 +03:00
Returns: Map Of KeyAndValue - serialized JSON of answer from Bitrix24 API
<br/>
:::tip
2024-11-21 13:27:18 +03:00
Method at API documentation: [disk.file.get](https://dev.1c-bitrix.ru/rest_help/disk/file/disk_file_get.php)
2024-10-15 10:16:04 +03:00
:::
<br/>
2024-12-16 19:38:57 +03:00
2024-10-15 21:15:56 +03:00
```bsl title="1C:Enterprise/OneScript code example"
2025-06-29 14:35:33 +03:00
URL = "https://b24-ar17wx.bitrix24.by/rest/1/h0m...";
2025-09-15 13:14:53 +03:00
FileID = "42168";
2024-10-15 10:16:04 +03:00
Result = OPI_Bitrix24.GetFileInformation(URL, FileID);
2025-06-29 14:35:33 +03:00
URL = "b24-ar17wx.bitrix24.by";
2025-09-15 13:14:53 +03:00
Token = "75d8c668006e9f06006b12e400000001000...";
2024-10-15 10:16:04 +03:00
Result = OPI_Bitrix24.GetFileInformation(URL, FileID, Token);
```
2024-10-20 22:36:03 +03:00
<Tabs>
<TabItem value="bash" label="Bash" default>
```bash
oint bitrix24 GetFileInformation \
2024-10-22 08:59:24 +03:00
--url "b24-ar17wx.bitrix24.by" \
2025-07-15 23:11:07 +03:00
--fileid 39110 \
2024-10-22 08:59:24 +03:00
--token "***"
2024-10-20 22:36:03 +03:00
```
</TabItem>
<TabItem value="bat" label="CMD/Bat" default>
```batch
oint bitrix24 GetFileInformation ^
2024-10-22 08:59:24 +03:00
--url "b24-ar17wx.bitrix24.by" ^
2025-07-15 23:11:07 +03:00
--fileid 39110 ^
2024-10-22 08:59:24 +03:00
--token "***"
2024-10-20 22:36:03 +03:00
```
</TabItem>
</Tabs>
2024-10-15 10:16:04 +03:00
```json title="Result"
{
"result": {
2025-09-15 13:14:53 +03:00
"ID": "42330",
2024-10-15 10:16:04 +03:00
"NAME": "Picture1.jpg",
"CODE": null,
"STORAGE_ID": "3",
"TYPE": "file",
"PARENT_ID": "3",
"DELETED_TYPE": "0",
"GLOBAL_CONTENT_VERSION": "1",
2025-09-15 13:14:53 +03:00
"FILE_ID": "28404",
2024-10-15 10:16:04 +03:00
"SIZE": "805189",
2025-09-15 13:14:53 +03:00
"CREATE_TIME": "2025-09-15T09:45:36+03:00",
"UPDATE_TIME": "2025-09-15T09:45:36+03:00",
2024-10-15 10:16:04 +03:00
"DELETE_TIME": null,
"CREATED_BY": "1",
"UPDATED_BY": "1",
"DELETED_BY": "0",
2025-09-15 13:14:53 +03:00
"DOWNLOAD_URL": "https://b24-ar17wx.bitrix24.by/rest/download.json?auth=b8c3c768006e9f06006b12e4000000010000077ef10e1d2738b7b2b7d4c5a8cb98228c&token=disk%7CaWQ9NDIzMzAmXz1zNE9qSHJTYzQ1UDVjTFpxVW5XN05CTEx1N0p0OG5qSw%3D%3D%7CImRvd25sb2FkfGRpc2t8YVdROU5ESXpNekFtWHoxek5FOXFTSEpUWXpRMVVEVmpURnB4Vlc1WE4wNUNURXgxTjBwME9HNXFTdz09fGI4YzNjNzY4MDA2ZTlmMDYwMDZiMTJlNDAwMDAwMDAxMDAwMDA3N2VmMTBlMWQyNzM4YjdiMmI3ZDRjNWE4Y2I5ODIyOGMi.VXyzHUUSUWQ0O4WuH737GXD6T5FRL9NJnFvH1kmIQKI%3D",
2024-10-15 10:16:04 +03:00
"DETAIL_URL": "https://b24-ar17wx.bitrix24.by/docs/file/Picture1.jpg"
},
"time": {
2025-09-15 13:14:53 +03:00
"start": 1757918738.41356,
"finish": 1757918738.45189,
"duration": 0.0383341312408447,
"processing": 0.00855493545532226,
"date_start": "2025-09-15T09:45:38+03:00",
"date_finish": "2025-09-15T09:45:38+03:00",
"operating_reset_at": 1757919338,
2024-10-15 10:16:04 +03:00
"operating": 0
}
}
```