Video on Demand Result Acquisition API

2019.12.25 21:03:32

    API Address

    https://as.dun.163yun.com/v3/video/callback/results

    API Description

    The API is used to obtain a video on demand 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 Name Type Description
    result json array detection result array

    Result data structure

    Parameter Name Type Description
    status Number Video processing status code, defined as: 0: successful detection, 110: request repeated, 120: parameter error, 130: parsing error, 140: data type error,160:size overrun
    callback String Callback field data when the product submits video-on-demand information, used to identify the video, the product is designed according to the business situation
    level Number Video level information, divided into 0: normal, 1: undefined, 2: ok, where uncertain manual review is recommended
    evidences json object array evidence information array, if the array is empty, it means the video is normal video

    Evidences object data structure:

    Parameter Name Type Description
    beginTime Number The relative time of evidence, in milliseconds, can be formatted as a visualization time by the caller, such as: 14900 converted to "00:02:29"
    EndTime Number The relative time of the evidence, in milliseconds, can be formatted as a visualization time by the caller, such as: 14900 converted to "00:02:29"
    type Number 1: picture, 2: video
    url String Evidence information
    labels json object array evidence result array

    Labels object data structure

    Parameter Name Type Description
    Label Number Classified information, 100: porn, 110: sexy; 200: advertising, 210: two-dimensional code; 300: trepidation, 400: prohibited, 500: political, 1020: black screen, 1030: hang up
    subLabels Number Subcategory information, which may contain more than one, may be empty
    level Number Level information, divided into 1: Uncertain, 2: OK
    rate Number Score

    subLabels data structure

    Parameter Name Type Description
    subLabel Number subclassification ,Please refer to the corresponding subclassification coding table below
    rate Number The confidence score is taken between 0 and 1, with 1 being the highest confidence and 0 being the lowest
    details Number htiInfos: Hit details

    subclassification coding table

    Code Character Description
    10000 PORN_COMMON porn
    10001 PORN_VAGINA vagina
    10002 PORN_NIPPLE nipple
    10003 PORN_PENNIS pennis
    10004 PORN_SEXUAL sexual
    10005 PORN_HIP hip
    10006 PORN_BLOWJOB blowjob
    10007 PORN_CARTOON cartoon porn
    10008 PORN_FACE porn face
    10009 PORN_CHILD child porn
    11000 SEXY_COMMON sexy vulgar
    20000 AD_COMMON advertising
    21000 QRCODE_COMMON Qr code
    30000 TERRORISM_COMMON violence
    30001 TERRORISM_GALLERY violence gallery
    30002 TERRORISM_FLAG violence flag
    30003 TERRORISM_FACE violence face
    30004 TERRORISM_LOGO violence logo
    30005 TERRORISM_SCENE terrorism scene
    40000 CONTRABAND_COMMON prohibited
    40001 CONTRABAND_GALLERY prohibited gallery
    40002 CONTRABAND_GOOD contraband
    40003 CONTRABAND_LOGO prohibited logo
    40004 CONTRABAND_BLOOD bloody
    40005 CONTRABAND_OFFICE_DRESS office dress
    40006 CONTRABAND_INCIVILIZATION incivilization
    40007 CONTRABAND_FACE prohibited face
    40008 CONTRABAND_SCENE prohibited scene
    40009 CONTRABAND_FIRE fire
    40010 CONTRABAND_SKULL skull
    40011 CONTRABAND_CURRENCY currency
    50000 POLITICS_COMMON politics
    50001 POLITICS_GALLERY politics gallery
    50002 POLITICS_MAP_OF_CHINA China map
    50003 POLITICS_LEADERPIC politics face
    50004 POLITICS_FLAG politics flag
    50005 POLITICS_LOGO politics logo
    50006 POLITICS_SCENE politics scene

    Request example

    Java code

    Python code

    PHP code

    C# code

    js code

    Response example

    Output result:

    {
        "code": 200,
        "msg": "ok",
        "result": [
            {
    	    "status": "0",
                "callback": "23d6e2abc1894512902e92928540a896",
                "level": 2,
                "evidences": [
                    {
                        "beginTime": 1469774975520,
                        "endTime": 1469774975520,
                        "type": 1,
                        "url": "http://xxx.nos.netease.com/xxx1.jpeg",
                        "labels": [
                            {
                                "label": 100,
                                "level": 2,
                                "rate": 1
                            }
                        ]
                    },
                    {
                        "beginTime": 1469774975520,
                        "endTime": 1469774975520,
                        "type": 1,
                        "url": "http://xxx.nos.netease.com/xxx2.jpeg",
                        "labels": [
                            {
                                "label": 100,
                                "level": 1,
                                "rate": 0.96,
    														          "subLabels": [{
    		               		                "subLabel": 50003,
    		               	                  "rate": 1.0,
    				                              "details": {
    				                             	"hitInfos": ["XXX"]
                                 }
                                ]
                            }
                        ]
                    }
                ]
            },
            {
    	    "status": "0",
                "callback": "40d7e2fba1894512902e92928540a647",
                "level": 0,
                "evidences": []
            }
        ]
    }
    
    在线咨询 电话咨询:95163223 免费试用