Skip to main content

Get Video Count

Service Address

http://api-az-cn.danghongyun.com/rest

Request Method

GET

Request Parameters

ParameterDescriptionTypeRequired
accessKeyThe user access keyStringRequired
actionAPI name, this api is "getVideoCount"StringRequired
versionAPI version, currently must be 2.0StringRequired
timestampInvoke time in milliseconds since january 1 1970, eg: 1466488681033StringRequired
signatureSignature generated by signature rule.StringRequired
keywordSearch for keywords. If the input parameter does not have a keyword, return the total number of videos for the user. Otherwise, return the number of videos obtained by the user by searching for the title and tag using that keywordStringOptional
categoryIdcategory id, If inputted, returns the number of videos in that categoryIntegerOptional
videoType0:normal video, 1:VR, If this value is not passed, it defaults to 0IntegerOptional
statusVideo status. If this value is not passed, all status videos are returned. Status values are: 0,1,2,3,4,5,6,7. Please refer to the following instructions for detailsIntegerOptional

Description of Status Value:

0:TRANSCODE_STATUS_UPLOAD_FINISHED
1:TRANSCODE_STATUS_START
2:TRANSCODE_STATUS_COMPLETED
3:TRANSCODE_STATUS_FAILED
4:TRANSCODE_STATUS_UPLOAD_FAILED
5:TRANSCODE_STATUS_UNKNOWN_FILE_TYPE
6:TRANSCODE_STATUS_SECOND_TRANSCODE_START
7:TRANSCODE_STATUS_WAITTING

Response Example

{
"code":0,
"message":"success",
"result":45,
"success":true
}

Error Codes

CodeMessage
0success
10000exception
10201api_not_exists