Live Video Detection Result Acquisition API

API Address

https://as.dun.163yun.com/v2/livevideo/callback/results

API Description

The API is used to obtain a live stream detection result, and the detection result includes screenshot evidence information and violation classification information. The API limits the frequency of requests. If the request frequency is too fast, the server will refuse to process. It is recommended to obtain it every 30 seconds.

Request Parameters

The API parameters are consistent with the public request parameters. For details, see Public Request Parameters

Response Result

The response field is as follows, the response common field has been omitted, see Response General Fields

Parameter NameTypeDescription
resultjson arraydetection result array

Result data structure

Parameter NameTypeDescription
callbackStringCallback field data when the product submits live stream information, used to identify the live stream, and the product is designed according to the business situation.
evidencejson objectevidence information
labelsjson arraydetection result array, if empty, it means the content is normal, if it is not empty, it means that the violation information is detected

Evidence data structure:

Parameter NameTypeDescription
beginTimeNumberEvidence start time
endTimeNumberEnd of Evidence
typeNumber1: picture, 2: video
urlStringEvidence information

Labels data structure

Parameter NameTypeDescription
LabelNumberClassified information, 100: porn, 110: sexy; 200: advertising, 210: two-dimensional code; 300: trepidation, 400: prohibited, 500: political, 1020: black screen, 1030: hang up
subLabelsNumberSubcategory information, which may contain more than one, may be empty
levelNumberLevel information, divided into 1: Uncertain, 2: OK
rateNumberScore

subLabels data structure

Parameter NameTypeDescription
subLabelNumbersubclassification ,Please refer to the corresponding subclassification coding table below
rateNumberThe confidence score is taken between 0 and 1, with 1 being the highest confidence and 0 being the lowest
detailsNumberhtiInfos: Hit details

subclassification coding table

CodeCharacterDescription
10000PORN_COMMONporn
10001PORN_VAGINAvagina
10002PORN_NIPPLEnipple
10003PORN_PENNISpennis
10004PORN_SEXUALsexual
10005PORN_HIPhip
10006PORN_BLOWJOBblowjob
10007PORN_CARTOONcartoon porn
10008PORN_FACEporn face
10009PORN_CHILDchild porn
11000SEXY_COMMONsexy vulgar
20000AD_COMMONadvertising
21000QRCODE_COMMONQr code
30000TERRORISM_COMMONviolence
30001TERRORISM_GALLERYviolence gallery
30002TERRORISM_FLAGviolence flag
30003TERRORISM_FACEviolence face
30004TERRORISM_LOGOviolence logo
30005TERRORISM_SCENEterrorism scene
40000CONTRABAND_COMMONprohibited
40001CONTRABAND_GALLERYprohibited gallery
40002CONTRABAND_GOODcontraband
40003CONTRABAND_LOGOprohibited logo
40004CONTRABAND_BLOODbloody
40005CONTRABAND_OFFICE_DRESSoffice dress
40006CONTRABAND_INCIVILIZATIONincivilization
40007CONTRABAND_FACEprohibited face
40008CONTRABAND_SCENEprohibited scene
40009CONTRABAND_FIREfire
40010CONTRABAND_SKULLskull
40011CONTRABAND_CURRENCYcurrency
50000POLITICS_COMMONpolitics
50001POLITICS_GALLERYpolitics gallery
50002POLITICS_MAP_OF_CHINAChina map
50003POLITICS_LEADERPICpolitics face
50004POLITICS_FLAGpolitics flag
50005POLITICS_LOGOpolitics logo
50006POLITICS_SCENEpolitics scene

Request example

Java code

Python code

PHP code

C# code

js code

Response example

Output result:

{
    "code": 200,
    "msg": "ok",
    "result": [
        {
            "callback": "40d7e2fba1894512902e92928540a647",
            "evidence": {
                "beginTime": 1469774975520,
                "endTime": 1469774975520,
                "type": 1,
                "url": "http://xxx.nos.netease.com/xxx.jpeg"
            },
            "labels": [
                {
                    "label": 100,
                    "level": 2,
                    "rate": 1,
									       	"subLabels": [{
		               		                "subLabel": 50003,
		               	                  "rate": 1.0,
				                              "details": {
				                             	"hitInfos": ["XXX"]
                             }
                            ]
                }
            ]
        },
        {
            "callback": "40d7e2fba1894512902e92928540a647",
            "evidence": {
                "beginTime": 1469775156321,
                "endTime": 1469775156321,
                "type": 1,
                "url": "http://xxx.nos.netease.com/xxxx.jpeg"
            },
            "labels": []
        }
    ]
}
Online Chat Tel:95163223