Get public object
Gets information about the published object by its URL
- Parameters
- Advanced call ?
Function GetPublicObject(Val Token, Val URL, Val Count = 0, Val OffsetFromStart = 0) Export
| Parameter | CLI option | Type | Required | Description |
|---|---|---|---|---|
| Token | --token | String | ✔ | Token |
| URL | --url | String | ✔ | Object address |
| Count | --amount | Number | ✖ | Number of returned nested objects (for catalog) |
| OffsetFromStart | --offset | Number | ✖ | Offset for getting nested objects not from the beginning of the list |
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...";
URL = "https://yadi.sk/d/n0QfpfP48V7piQ";
Result = OPI_YandexDisk.GetPublicObject(Token, URL);
- Bash
- CMD/Bat
oint yadisk GetPublicObject \
--token "***" \
--url "https://yadi.sk/d/OitH_6Db6ggdRw"
oint yadisk GetPublicObject ^
--token "***" ^
--url "https://yadi.sk/d/OitH_6Db6ggdRw"
Result
{
"path": "/",
"type": "file",
"name": "b00c92b7-db3b-400e-b0d2-accf2e1e2230.png",
"created": "2026-07-19T17:11:32+00:00",
"modified": "2026-07-19T17:11:32+00:00",
"size": 2114023,
"mime_type": "multipart",
"md5": "9e0176f87f6565a22f78e0f9b39a4d78",
"sha256": "89f8eb42a35208a17c85036e17237b0aa0657e1841efa6171dc5acbc0dea9e18",
"public_key": "***",
"public_url": "https://yadi.sk/d/F3xYEoVUazXA8w",
"media_type": "image",
"resource_id": "1573541518:7f6d079b206333705f3462d17d94c655cbe8ed1b4efaa934d75b52acc97a1e3d",
"revision": 1784481129319790,
"comment_ids": {
"public_resource": "1573541518:7f6d079b206333705f3462d17d94c655cbe8ed1b4efaa934d75b52acc97a1e3d",
"private_resource": "1573541518:7f6d079b206333705f3462d17d94c655cbe8ed1b4efaa934d75b52acc97a1e3d"
},
"exif": {},
"antivirus_status": "clean",
"file": "https://downloader.disk.yandex.ru/disk/6ef552609f416ff407ada4840db3460b81d15d96a36448364126164ee6fab6c7/6a5d3dab/Kdpe3dFisZLPovVA4r-aBmpkby3AOQiLsayEHYapOMw2ylFGSbZZrsWtGPTvHxG_-QDrqSGFBOOsS3b3gKT1zA%3D%3D?uid=0&filename=b00c92b7-db3b-400e-b0d2-accf2e1e2230.png&disposition=attachment&hash=&limit=0&content_type=multipart&owner_uid=0&fsize=2114023&hid=03d7263840468e281bd0b238a26e7d0d&media_type=image&tknv=v3&is_direct_zip_experiment=1&etag=9e0176f87f6565a22f78e0f9b39a4d78",
"views_count": 0
}