Result Query
Update:
Parameter Specification
- Request URL:
https://isafe.ilivedata.com/api/v2/image/check/async/result
- Description:
Used to get the asynchronous moderation result of an image.
- HTTP request Header:
Header
Value
Description
Content-Type
application/json;charset=UTF-8
Request body type
Accept
application/json;charset=UTF-8
Return type accepted
X-AppId
The unique identifier of the project or application
X-TimeStamp
The UTC timestamp of the request, formatted per W3C, e.g. 2010-01-31T23:59:59Z. (http://www.w3.org/TR/xmlschema-2/#dateTime)
Authorization
Signature value
-
Request method: POST
-
Request body JSON object:
Parameter
Required
Type
Description
taskId
Required
String
Task ID returned after submitting the moderation task
- Example of request body:
{
"taskId": "ap_99b2bf004d4a4591bfedbba9574e74d4_1702882338368"
}
- Request signature:
This API requires the Authorization signature in the request Header. For the signature calculation rule, see Request Signature. Use /api/v2/image/check/async/result as HTTPRequestURI.
HTTP Response
Content-Type: application/json;charset=UTF-8
The result is in JSON format. The response structure is the same as Single Image Synchronous Moderation (V2) - HTTP Response. In the result query scenario, errorCode has the following additional values:
errorCode
Description
0
Success
100001
Image download failed
100002
Image format error
100004
In progress
100005
taskId does not exist
- Example of response:
{
"errorCode": 0,
"result": 2,
"taskId": "ap_d56b5c2d38614be3bf1a1e98663d3c29_1653017203620",
"imageSpams": {
"tags": [
{
"tag": 110,
"level": 2,
"confidence": 95,
"nameZh": "暴恐",
"nameEn": "Violence",
"subTags": [
{
"subTag": 110008,
"level": 2,
"confidence": 95,
"nameZh": "枪支器械",
"nameEn": "guns and knife"
}
]
}
]
},
"personInfo": {
"human": { "number": 0 },
"face": { "number": 0 }
},
"extra": {}
}
Error Codes
See Common Exception Codes in Help Center
Parameter Specification
- Request URL:
https://isafe.ilivedata.com/api/v2/image/check/async/result
- Description:
Used to get the asynchronous moderation result of an image.
- HTTP request Header:
| Header | Value | Description |
|---|---|---|
| Content-Type | application/json;charset=UTF-8 | Request body type |
| Accept | application/json;charset=UTF-8 | Return type accepted |
| X-AppId | The unique identifier of the project or application | |
| X-TimeStamp | The UTC timestamp of the request, formatted per W3C, e.g. 2010-01-31T23:59:59Z. (http://www.w3.org/TR/xmlschema-2/#dateTime) | |
| Authorization | Signature value |
-
Request method: POST
-
Request body JSON object:
| Parameter | Required | Type | Description |
|---|---|---|---|
| taskId | Required | String | Task ID returned after submitting the moderation task |
- Example of request body:
{
"taskId": "ap_99b2bf004d4a4591bfedbba9574e74d4_1702882338368"
}
- Request signature:
This API requires the Authorization signature in the request Header. For the signature calculation rule, see Request Signature. Use /api/v2/image/check/async/result as HTTPRequestURI.
HTTP Response
Content-Type: application/json;charset=UTF-8
The result is in JSON format. The response structure is the same as Single Image Synchronous Moderation (V2) - HTTP Response. In the result query scenario, errorCode has the following additional values:
| errorCode | Description |
|---|---|
| 0 | Success |
| 100001 | Image download failed |
| 100002 | Image format error |
| 100004 | In progress |
| 100005 | taskId does not exist |
- Example of response:
{
"errorCode": 0,
"result": 2,
"taskId": "ap_d56b5c2d38614be3bf1a1e98663d3c29_1653017203620",
"imageSpams": {
"tags": [
{
"tag": 110,
"level": 2,
"confidence": 95,
"nameZh": "暴恐",
"nameEn": "Violence",
"subTags": [
{
"subTag": 110008,
"level": 2,
"confidence": 95,
"nameZh": "枪支器械",
"nameEn": "guns and knife"
}
]
}
]
},
"personInfo": {
"human": { "number": 0 },
"face": { "number": 0 }
},
"extra": {}
}
Error Codes
See Common Exception Codes in Help Center