Queries a list of content moderation jobs.
Operation description
This operation only supports querying content moderation jobs from the past three months.
QPS limits
The QPS limit for a single user is 100 queries per second. If the limit is exceeded, API calls are throttled, which may affect your services. Make API calls at a reasonable rate. For more information, see QPS limits.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mts:QueryMediaCensorJobList |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| JobIds |
string |
No |
The IDs of the content moderation jobs. You can obtain the IDs from the response parameters of the Submit content moderation jobs operation. Separate multiple IDs with commas (,). |
fa9c34be3bcf42919ac4d1775239****,78dc866518b843259669df58ed30**** |
| NextPageToken |
string |
No |
The token used to retrieve the next page. Leave this parameter empty for the first request. The token is returned after the first query. |
79aff3eee82242e092899db5f669**** |
| MaximumPageSize |
integer |
No |
The maximum number of entries to return per page.
|
20 |
| State |
string |
No |
The status of the jobs to query. Valid values:
|
All |
| StartOfJobCreatedTimeRange |
string |
No |
The earliest time when the job was created.
|
2021-12-22T03:48:05Z |
| EndOfJobCreatedTimeRange |
string |
No |
The latest time when the job was created.
|
2022-02-14T02:16:07Z |
| PipelineId |
string |
No |
The ID of the MPS queue. You can obtain the ID by choosing Global Settings > MPS Queues and Callbacks in the ApsaraVideo Media Processing console. |
c5b30b7c0d0e4a0abde1d5f9e751**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response elements. |
||
| MediaCensorJobList |
object |
||
| MediaCensorJob |
array<object> |
The list of content moderation jobs. |
|
|
array<object> |
The details of the content moderation job. |
||
| CreationTime |
string |
The time when the job was created. The time is displayed in UTC and follows the ISO 8601 standard in the YYYY-MM-DDTHH:mm:ssZ format. |
2021-11-04T07:25:48Z |
| FinishTime |
string |
The time when the job was completed. The time is displayed in UTC and follows the ISO 8601 standard in the YYYY-MM-DDTHH:mm:ssZ format. |
2021-11-04T07:25:48Z |
| Suggestion |
string |
The moderation suggestion. Valid values:
|
pass |
| CoverImageCensorResults |
object |
||
| CoverImageCensorResult |
array<object> |
The list of cover image moderation results. |
|
|
array<object> |
The details of the cover image moderation result. |
||
| Object |
string |
The OSS object of the cover image. |
test/ai/censor/v2/vme-****.jpg |
| Location |
string |
The OSS location of the cover image. |
oss-cn-shanghai |
| Bucket |
string |
The OSS bucket of the cover image. |
example-Bucket-**** |
| Results |
object |
||
| Result |
array<object> |
The moderation results of the job. |
|
|
object |
The details of the job moderation result. |
||
| Suggestion |
string |
The overall moderation result of the job. Valid values:
Note
If the moderation result of any category is review, the overall result is review. If the moderation result of any category is block, the overall result is block. |
pass |
| Label |
string |
The labels of the moderation result. Multiple labels are separated by commas (,).
|
normal |
| Scene |
string |
The moderation scenario. Valid values:
|
live |
| Rate |
string |
The confidence score. Valid values: 0 to 100. |
100 |
| State |
string |
The status of the job. |
Success |
| TitleCensorResult |
object |
The title moderation result. |
|
| Suggestion |
string |
The moderation suggestion. Valid values:
|
block |
| Label |
string |
The labels of the moderation result. Multiple labels are separated by commas (,). Valid values:
|
meaningless |
| Scene |
string |
The moderation scenario. Set the value to antispam, which indicates text anti-spam. |
antispam |
| Rate |
string |
The confidence score. |
99.91 |
| Message |
string |
The error message returned when the job fails. This parameter is not returned when the job is successful. |
The resource operated cannot be found |
| Input |
object |
The job input. |
|
| Object |
string |
The OSS object of the input file. |
test/ai/censor/test-****.mp4 |
| Location |
string |
The OSS location of the input file. |
oss-cn-shanghai |
| Bucket |
string |
The OSS bucket of the input file. |
bucket-test-in-**** |
| BarrageCensorResult |
object |
The live comment moderation result. |
|
| Suggestion |
string |
The moderation suggestion. Valid values:
|
pass |
| Label |
string |
The categories of the moderation result. Multiple categories are separated by commas (,). Valid values:
|
normal |
| Scene |
string |
The moderation scenario. Set the value to antispam, which indicates text anti-spam. |
antispam |
| Rate |
string |
The confidence score. |
99.91 |
| DescCensorResult |
object |
The description moderation result. |
|
| Suggestion |
string |
The moderation suggestion. Valid values:
|
pass |
| Label |
string |
The categories of the moderation result. Multiple categories are separated by commas (,). Valid values:
|
ad |
| Scene |
string |
The moderation scenario. Set the value to antispam, which indicates text anti-spam. |
antispam |
| Rate |
string |
The confidence score. |
100 |
| VideoCensorConfig |
object |
The video moderation configuration. |
|
| OutputFile |
object |
The storage address of the video snapshot results. |
|
| Object |
string |
The OSS object of the snapshot output file. Note
In the example, {Count} is a placeholder. The image objects are sequentially named output00001-.jpg, output00002-.jpg, and so on. |
output{Count}.jpg |
| Location |
string |
The OSS location of the OSS bucket where the snapshot output file is stored. |
oss-cn-shanghai |
| Bucket |
string |
The OSS bucket where the snapshot output file is stored. |
test-bucket-**** |
| VideoCensor |
string |
Specifies whether to moderate the video content. Default value: true. Valid values:
|
true |
| BizType |
string |
The moderation template. Default value: common, which indicates the default template. Note
If you do not specify this parameter, the default value common is used. If you commit a ticket to create a custom moderation template, this parameter returns the UID. |
common |
| JobId |
string |
The ID of the content moderation job. |
f8f166eea7a44e9bb0a4aecf9543**** |
| UserData |
string |
The custom user data. |
example userdata **** |
| Code |
string |
The error code returned when the job fails. This parameter is not returned when the job is successful. |
InvalidParameter.ResourceNotFound |
| VensorCensorResult |
object |
The video moderation result. |
|
| VideoTimelines |
object |
||
| VideoTimeline |
array<object> |
The moderation results at specific timestamps, sorted in ascending order of time. |
|
|
array<object> |
The detailed information. |
||
| Timestamp |
string |
The position in the video. Format: hh:mm:ss[.SSS]. |
00:02:59.999 |
| Object |
string |
The OSS object of the snapshot output file. Note
In the example, {Count} is a placeholder. The image objects are sequentially named output00001-.jpg, output00002-.jpg, and so on. |
output{Count}.jpg |
| CensorResults |
object |
||
| CensorResult |
array<object> |
The labels and confidence scores of various types of moderation results. |
|
|
object |
The detailed information. |
||
| Suggestion |
string |
The moderation suggestion. Valid values:
|
block |
| Label |
string |
The categories of the moderation result. Multiple categories are separated by commas (,). Valid values:
|
normal |
| Scene |
string |
The moderation scenario. Valid values:
|
pron |
| Rate |
string |
The confidence score. |
99.99 |
| NextPageToken |
string |
The token for the next page. |
ea04afcca7cd4e80b9ece8fbb251**** |
| CensorResults |
object |
||
| CensorResult |
array<object> |
The collection of moderation results, which includes the summary information of various scenarios such as porn, violence, terrorism, and political content. |
|
|
object |
The details of the moderation result. |
||
| Suggestion |
string |
The moderation suggestion. Valid values:
|
review |
| Label |
string |
The categories of the moderation result. Multiple categories are separated by commas (,). Valid values:
|
meaningless |
| Scene |
string |
The moderation scenario. Valid values:
|
terrorism |
| Rate |
string |
The confidence score. |
100 |
| AudioCensorResult |
object |
The audio moderation result. |
|
| Suggestion |
string |
The moderation suggestion. Valid values:
|
pass |
| Label |
string |
The categories of the detection result. Valid values:
|
normal |
| PipelineId |
string |
The ID of the MPS queue. |
c5b30b7c0d0e4a0abde1d5f9e751**** |
| RequestId |
string |
The ID of the request. |
D1D5C080-8E2F-5030-8AB4-13092F17631B |
| NextPageToken |
string |
The token for the next page, which is a 32-character UUID. This parameter is returned when the query results exceed one page. The value is updated with each query. |
9b1a42bc6e8d46e6a1383b7e7f01**** |
| NonExistIds |
object |
||
| String |
array |
The list of non-existent job IDs. This parameter is not returned if the list is empty. |
|
|
string |
The job ID. |
78dc866518b843259669df58ed30**** |
Examples
Success response
JSON format
{
"MediaCensorJobList": {
"MediaCensorJob": [
{
"CreationTime": "2021-11-04T07:25:48Z",
"FinishTime": "2021-11-04T07:25:48Z",
"Suggestion": "pass",
"CoverImageCensorResults": {
"CoverImageCensorResult": [
{
"Object": "test/ai/censor/v2/vme-****.jpg",
"Location": "oss-cn-shanghai",
"Bucket": "example-Bucket-****",
"Results": {
"Result": [
{
"Suggestion": "pass",
"Label": "normal",
"Scene": "live",
"Rate": "100"
}
]
}
}
]
},
"State": "Success",
"TitleCensorResult": {
"Suggestion": "block",
"Label": "meaningless",
"Scene": "antispam",
"Rate": "99.91"
},
"Message": "The resource operated cannot be found",
"Input": {
"Object": "test/ai/censor/test-****.mp4",
"Location": "oss-cn-shanghai",
"Bucket": "bucket-test-in-****"
},
"BarrageCensorResult": {
"Suggestion": "pass",
"Label": "normal",
"Scene": "antispam",
"Rate": "99.91"
},
"DescCensorResult": {
"Suggestion": "pass",
"Label": "ad",
"Scene": "antispam",
"Rate": "100"
},
"VideoCensorConfig": {
"OutputFile": {
"Object": "output{Count}.jpg",
"Location": "oss-cn-shanghai",
"Bucket": "test-bucket-****"
},
"VideoCensor": "true",
"BizType": "common"
},
"JobId": "f8f166eea7a44e9bb0a4aecf9543****",
"UserData": "example userdata ****",
"Code": "InvalidParameter.ResourceNotFound",
"VensorCensorResult": {
"VideoTimelines": {
"VideoTimeline": [
{
"Timestamp": "00:02:59.999",
"Object": "output{Count}.jpg",
"CensorResults": {
"CensorResult": [
{
"Suggestion": "block",
"Label": "normal",
"Scene": "pron",
"Rate": "99.99"
}
]
}
}
]
},
"NextPageToken": "ea04afcca7cd4e80b9ece8fbb251****",
"CensorResults": {
"CensorResult": [
{
"Suggestion": "review",
"Label": "meaningless",
"Scene": "terrorism",
"Rate": "100"
}
]
}
},
"AudioCensorResult": {
"Suggestion": "pass",
"Label": "normal"
},
"PipelineId": "c5b30b7c0d0e4a0abde1d5f9e751****"
}
]
},
"RequestId": "D1D5C080-8E2F-5030-8AB4-13092F17631B",
"NextPageToken": "9b1a42bc6e8d46e6a1383b7e7f01****",
"NonExistIds": {
"String": [
"78dc866518b843259669df58ed30****"
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.