Result acquisition interface response

HTTP response

Content-Type: application/json;charset=UTF-8

The result is in JSON format, please refer to the following example.

  • HTTP response

Description of returning json field :

Field name Type Description
errorCode Number Error code: 0 means success
errorMessage String Error message
videoSpams JSON Array Result message of live video detection (which can be null when there is no result.)

videoSpams:

Field name Type Description
taskId String taskId when sending a request
code Number Status code: 0: successful detection, 1: failed detection, 2: detecting
beginTime Number Relative time of evidence start (millisecond)
endTime Number Relative time of evidence end (millisecond)
type Number 1:Image,2:Video
url String Evidence
tags Json Array Classified information

tags:

Field name Type Description
tag Number Classified information:
100: politics, 110: violence, 120: prohibited, 130: eroticism, 150: advertisement, 160: insults,
170: Hate speech, 180: Minor protection, 190: sensitive hot spots,410:Irregular Emoticons,
220:private transaction,900: other, 999: customization
tagName String Detect first-level type names for image hits
tagNameEn String Detect first-level type names for image hits(English)
level Number Classification level, 0: normal, 1: suspected, 2: abnormal
subTags json object Secondary classification of sensitive information

subTags:

Field name Type Describe
subTag Number Secondary classification information reference Classification Code
subTagName String Detect secondary type names for iamge hits
subTagNameEn String Detect secondary type names for image hits(English)
wordList array of strings hit details
  • Example of response:

    JSON response

      {
          "errorCode": 0,
          "code": 2,
          "videoSpams": [{
              "code": 2,
              "taskId": "nxtest_live_4c2a40d8-911c-4d59-b720-d4f40f0a2a0b_1598859623340",
              "beginTime": 1469774975520,
              "endTime": 1469774975520,
              "type": 1,
              "url": "https://rcs-test.s3.cn-northwest-1.amazonaws.com.cn/rcs/61200001/video/nxtest_live_4c2a40d8-911c-4d59-b720-d4f40f0a2a0b_1598859623340/2c614b045a1a46a9b39f77a774dc4b6c_1598859720238.jpg",
              "tags": [{
                  "tag": 100,
                  "level": 1,
                  "confidence": 0.92115575
              }]
          }]
      }
    

Error code:

Http Status code Error code Error message
200 0 This field is omitted
405 1004 Method Not Allowed
411 1007 Not Content Length
400 1002 API Not Found
400 1003 Bad Request
401 1102 Unauthorized Client
401 1106 Missing Access Token
401 1107 Invalid Token
401 1108 Expired Token
401 1110 Invalid Client
401 2000 Missing Parameter
401 2001 Invalid Parameter