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/B-mJxgwE6rZhdw"
oint yadisk GetPublicObject ^
--token "***" ^
--url "https://yadi.sk/d/B-mJxgwE6rZhdw"
Result
{
"path": "/",
"type": "file",
"name": "498b564d-db83-4012-a4cb-8d01041d8eb2.png",
"created": "2026-05-26T14:01:21+00:00",
"modified": "2026-05-26T14:01:21+00:00",
"size": 2114023,
"mime_type": "multipart",
"md5": "9e0176f87f6565a22f78e0f9b39a4d78",
"sha256": "89f8eb42a35208a17c85036e17237b0aa0657e1841efa6171dc5acbc0dea9e18",
"public_key": "***",
"public_url": "https://yadi.sk/d/B-mJxgwE6rZhdw",
"media_type": "image",
"resource_id": "1573541518:f1d29359d2fb94dbae81176d67c316ad2889ae9e610577a892603caa55b9a686",
"revision": 1779804102295034,
"comment_ids": {
"public_resource": "1573541518:f1d29359d2fb94dbae81176d67c316ad2889ae9e610577a892603caa55b9a686",
"private_resource": "1573541518:f1d29359d2fb94dbae81176d67c316ad2889ae9e610577a892603caa55b9a686"
},
"exif": {},
"antivirus_status": "clean",
"file": "https://downloader.disk.yandex.ru/disk/b08ef13bc5bb790d140baeb559bfe1a60c64b08a47930ccde2ad8c75e4514...",
"views_count": 0
}