Get Duration and Size of Multiple Videos
Updated: 2022-05-16 10:08:41
Interface URL
http://v.polyv.net/uc/video/info?vids=$vid1,$vid2,...,$vidn
Interface Description
Get the duration and size of multiple videos
Supported Format
JSON
Request Method
POST, GET
Request Limit
TRUE
Request Parameters
| Parameter | Required | Type and Scope | Description |
|---|---|---|---|
| vids | true | string | VIDs of multiple videos, separated by commas |
Notes
If the vids value is empty, an empty result is returned; if the vids value is an invalid string, a 500 error is returned.
JSON Example
[
{
'vid': 'e2e84a73839658998dc52f06ee0c3ca0_e',
'duration': '00: 21: 42',
'filesize1': 21558281
},
{
'vid': 'e2e84a738397328392bdb1ac43cf8512_e',
'duration': '00: 04: 56',
'filesize1': 11153507,
'filesize2': 19386127
}
]
Field Description
| Field | Description |
|---|---|
| vid | Video VID |
| duration | Video duration |
| filesize1 | Size of the transcoded smooth video |
| filesize2 | Size of the transcoded HD video; not returned if no HD video exists after transcoding |
| filesize3 | Size of the transcoded super HD video; not returned if no super HD video exists after transcoding |
