Skip to main content

Get object

Gets information about a disk object at the specified path

Function GetObject(Val Token, Val Path) Export

ParameterCLI optionTypeRequiredDescription
Token--tokenStringToken
Path--pathStringPath to folder or file
Returns

Map Of KeyAndValue - serialized JSON response from Yandex

1C:Enterprise/OneScript code example
Token = "y0__xCOranuBRj1uTsgs8z_iRV...";
Path = "/ec98cf96-9738-40a1-b9bc-a24a2f049cb0.png";

Result = OPI_YandexDisk.GetObject(Token, Path);
oint yadisk GetObject \
--token "***" \
--path "/7ed81f5e-fba9-4812-98ac-50d0451dd9a8.png"
Result
{
"path": "disk:/7ed81f5e-fba9-4812-98ac-50d0451dd9a8.png",
"type": "file",
"name": "7ed81f5e-fba9-4812-98ac-50d0451dd9a8.png",
"created": "2026-05-26T13:58:43+00:00",
"modified": "2026-05-26T13:58:43+00:00",
"size": 2114023,
"mime_type": "multipart",
"md5": "9e0176f87f6565a22f78e0f9b39a4d78",
"sha256": "89f8eb42a35208a17c85036e17237b0aa0657e1841efa6171dc5acbc0dea9e18",
"media_type": "image",
"resource_id": "1573541518:2441e409854547889ee8d913fbfd1f1d89be75dc772a68d3b553772d8521f102",
"revision": 1779803923788978,
"comment_ids": {
"public_resource": "1573541518:2441e409854547889ee8d913fbfd1f1d89be75dc772a68d3b553772d8521f102",
"private_resource": "1573541518:2441e409854547889ee8d913fbfd1f1d89be75dc772a68d3b553772d8521f102"
},
"exif": {},
"antivirus_status": "clean",
"file": "https://downloader.disk.yandex.ru/disk/cf0c83b6cbd903a686e17ef020e78649c0991a3b083ed9a64ce5a8c6dbafe..."
}