Get object
Gets information about a disk object at the specified path
- Parameters
- Advanced call ?
Function GetObject(Val Token, Val Path) Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| Token | --token | String | ✔ | Token |
| Path | --path | String | ✔ | Path to folder or file |
Returns
Map Of KeyAndValue - serialized JSON response from Yandex
| Parameter | Description |
|---|---|
| proxy | InternetProxy or a structure with fields Protocol, Host, Port, User, Password, UseOSAuthentication |
| timeout | Request execution timeout |
| adv_response | Formats the response as a complete HTTP structure with fields code, body, and headers |
| retries | Number of HTTP request send attempts on 5** status codes or internal client errors |
| dontwait | Creates a background job and returns its data (for 1C and OneScript only) |
1C:Enterprise/OneScript code example
Token = "y0__xCOranuBRj1uTsgs8z_iRV...";
Path = "/ec98cf96-9738-40a1-b9bc-a24a2f049cb0.png";
Result = OPI_YandexDisk.GetObject(Token, Path);
- Bash
- CMD/Bat
oint yadisk GetObject \
--token "***" \
--path "/c307c787-5771-458d-b519-7f27984fdaa9.png"
oint yadisk GetObject ^
--token "***" ^
--path "/c307c787-5771-458d-b519-7f27984fdaa9.png"
Result
{
"path": "disk:/f9cfba92-e260-40c8-9ab0-c39102315c9f.png",
"type": "file",
"name": "f9cfba92-e260-40c8-9ab0-c39102315c9f.png",
"created": "2026-07-19T17:06:41+00:00",
"modified": "2026-07-19T17:06:41+00:00",
"size": 2114023,
"mime_type": "multipart",
"md5": "9e0176f87f6565a22f78e0f9b39a4d78",
"sha256": "89f8eb42a35208a17c85036e17237b0aa0657e1841efa6171dc5acbc0dea9e18",
"media_type": "image",
"resource_id": "1573541518:cf6aea365f92e18d24e078ed27866fa23c016264f8633ef0e3925fba540f0ff6",
"revision": 1784480802426037,
"comment_ids": {
"public_resource": "1573541518:cf6aea365f92e18d24e078ed27866fa23c016264f8633ef0e3925fba540f0ff6",
"private_resource": "1573541518:cf6aea365f92e18d24e078ed27866fa23c016264f8633ef0e3925fba540f0ff6"
},
"exif": {},
"antivirus_status": "clean",
"file": "https://downloader.disk.yandex.ru/disk/e0527dc33d1eeceffe96a7cc4420bd5e2dd5581f4a6c015f288824d8326fce2b/6a5d3c6a/Kdpe3dFisZLPovVA4r-aBmpkby3AOQiLsayEHYapOMw2ylFGSbZZrsWtGPTvHxG_-QDrqSGFBOOsS3b3gKT1zA%3D%3D?uid=1573541518&filename=f9cfba92-e260-40c8-9ab0-c39102315c9f.png&disposition=attachment&hash=&limit=0&content_type=multipart&owner_uid=1573541518&fsize=2114023&hid=03d7263840468e281bd0b238a26e7d0d&media_type=image&tknv=v3&is_direct_zip_experiment=1&etag=9e0176f87f6565a22f78e0f9b39a4d78"
}