Retrieves the results of all types of DNA jobs.
Operation description
-
After you submit a DNA job, the DNA service performs a comparison. Call this API to query the job results.
-
You can query text DNA jobs only in the China (Shanghai) region.
-
This API queries DNA jobs created within the last six months.
QPS limit
The QPS limit for a single user of this API is 100 queries per second. API calls that exceed this limit are throttled, which may impact your business. Plan your calls accordingly. For more information, see QPS limit.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
mts:QueryFpShotJobList |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| JobIds |
string |
No |
The IDs of the DNA jobs to query. Separate multiple IDs with a comma (,). You can specify up to 10 jobs at a time. |
88c6ca184c0e47098a5b665e2a12**** |
| NextPageToken |
string |
No |
The pagination token used to retrieve the next page of results. Omit this parameter for the first request. For subsequent requests, use the token returned in the previous response. |
16f01ad6175e4230ac42bb5182cd**** |
| MaximumPageSize |
integer |
No |
The maximum number of jobs to return on each page.
|
10 |
| State |
string |
No |
The job status to query. Valid values:
|
All |
| StartOfJobCreatedTimeRange |
string |
No |
The start of the time range for querying jobs by their creation time.
|
2021-12-22T03:48:05Z |
| EndOfJobCreatedTimeRange |
string |
No |
The end of the time range for querying jobs by their creation time.
|
2022-02-14T02:16:07Z |
| PipelineId |
string |
No |
The pipeline ID. You can obtain the ID from the Media Processing console by navigating to global settings > Pipelines and Callbacks. |
b11c171cced04565b1f38f1ecc39**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
25818875-5F78-4A13-BEF6-D7393642CA58 |
| NextPageToken |
string |
The token that is required to retrieve the next page of results. You can value of this parameter for the next request. |
b11c171cced04565b1f38f1ecc39**** |
| FpShotJobList |
object |
||
| FpShotJob |
array<object> |
The DNA jobs. |
|
|
array<object> |
The details of a DNA job. |
||
| FpShotResult |
object |
The query results for a DNA job. |
|
| AudioFpShots |
object |
||
| FpShot |
array<object> |
The query results for audio DNA. |
|
|
array<object> |
The detailed query results for audio DNA. |
||
| PrimaryKey |
string |
The primary key. |
498ac941373341599c4777c8d884**** |
| FpShotSlices |
object |
||
| FpShotSlice |
array<object> |
The similar audio segments. |
|
|
array<object> |
The details of the similar audio segments. |
||
| Duplication |
object |
The start time and duration of the audio segment in the DNA library. |
|
| Start |
string |
The start time. |
0 |
| Duration |
string |
The duration. |
3 |
| Similarity |
string |
The similarity of the audio segment. |
0 |
| Input |
object |
The start time and duration of the input audio segment. |
|
| Start |
string |
The start time. |
0 |
| Duration |
string |
The duration. |
5 |
| Similarity |
string |
The overall similarity of the audio. |
0 |
| FpShots |
object |
||
| FpShot |
array<object> |
The query results for video DNA. |
|
|
array<object> |
The detailed query results for video DNA. |
||
| PrimaryKey |
string |
The primary key of the video. |
498ac941373341599c4777c8d884**** |
| FpShotSlices |
object |
||
| FpShotSlice |
array<object> |
The similar video segments. |
|
|
array<object> |
The details of the similar video segments. |
||
| Duplication |
object |
The start time and duration of the video segment in the DNA library. |
|
| Start |
string |
The start time. |
1260 |
| Duration |
string |
The duration. |
48 |
| Similarity |
string |
The similarity of the video segment. |
0 |
| Input |
object |
The start time and duration of the input video segment. |
|
| Start |
string |
The start time. |
46 |
| Duration |
string |
The duration. |
48 |
| Similarity |
string |
The overall similarity of the video. Note
The overall similarity is the average of the similarity values of individual segments. If multiple similar segments are found in the DNA library, multiple hits are returned. |
0.8914769887924194 |
| TextFpShots |
object |
||
| TextFpShot |
array<object> |
The query results for text DNA. |
|
|
array<object> |
The detailed query results for text DNA. |
||
| PrimaryKey |
string |
The primary key for the text. |
3e34ac649945b53a1b0f863ce030**** |
| Similarity |
string |
The similarity of the text. |
1.0 |
| TextFpShotSlices |
object |
||
| TextFpShotSlice |
array<object> |
The duplicate text segments. |
|
|
array<object> |
The details of the duplicate text segments. |
||
| Similarity |
string |
The confidence score for the matched segment. |
1.0 |
| InputText |
string |
The text segment from the input that matched a segment in the base library. |
今天下雪了 |
| DuplicationText |
string |
The text segment from the base library that was matched. |
今天下雪了 |
| InputFragment |
object |
The start time and duration of the matched segment in the input file. |
|
| Start |
string |
The start time. |
0 |
| Duration |
string |
The duration. |
3 |
| CreationTime |
string |
The time when the job was created. |
2017-01-10T12:00:00Z |
| FinishTime |
string |
The time when the job was completed. |
0 |
| State |
string |
The job status. Valid values:
|
Success |
| Message |
string |
The error message returned when the analysis fails. This parameter is not returned if the job is successful. |
The parameter \"Id\" is invalid.A uuid must:1)be comprised of chracters[a-f],numbers[0-9];2)be 32 characters long |
| FpShotConfig |
object |
The configuration. |
|
| PrimaryKey |
string |
The unique primary key of the video. You must ensure that this key is unique. |
3ca84a39a9024f19853b21be9cf9**** |
| SaveType |
string |
The storage type. Valid values:
|
save |
| FpDBId |
string |
The ID of the DNA library. |
2288c6ca184c0e47098a5b665e2a12**** |
| FileId |
string |
The file ID. |
ebb51ee30f0b49aba959823fa991**** |
| UserData |
string |
The custom data. |
testid-001 |
| Duration |
integer |
The duration of the input file. Unit: seconds. |
5 |
| Code |
string |
The error code returned when the analysis fails. |
InvalidParameter.UUIDFormatInvalid |
| InputFile |
object |
The job input. |
|
| Object |
string |
The OSS object that contains the job input. |
test.mp4 |
| Location |
string |
The OSS location that contains the job input. |
oss-cn-beiing |
| Bucket |
string |
The OSS bucket that contains the job input. |
oss-test |
| PipelineId |
string |
The pipeline ID. |
88c6ca184c0e47098a5b665e2a12**** |
| Id |
string |
The job ID. |
88c6ca184c0e47098a5b665e2a12**** |
| Input |
string |
The job input. |
{"Bucket":"oss-test","Location":"oss-cn-beiing","Object":"test.mp4"} |
| NonExistIds |
object |
||
| String |
array |
The list of non-existent job IDs. |
|
|
string |
The list of non-existent job IDs. This parameter is not returned if no data exists. |
ae687c02fe944327ba9631e50da23128**** |
Examples
Success response
JSON format
{
"RequestId": "25818875-5F78-4A13-BEF6-D7393642CA58",
"NextPageToken": "b11c171cced04565b1f38f1ecc39****",
"FpShotJobList": {
"FpShotJob": [
{
"FpShotResult": {
"AudioFpShots": {
"FpShot": [
{
"PrimaryKey": "498ac941373341599c4777c8d884****",
"FpShotSlices": {
"FpShotSlice": [
{
"Duplication": {
"Start": "0",
"Duration": "3"
},
"Similarity": "0",
"Input": {
"Start": "0",
"Duration": "5"
}
}
]
},
"Similarity": "0"
}
]
},
"FpShots": {
"FpShot": [
{
"PrimaryKey": "498ac941373341599c4777c8d884****",
"FpShotSlices": {
"FpShotSlice": [
{
"Duplication": {
"Start": "1260",
"Duration": "48"
},
"Similarity": "0",
"Input": {
"Start": "46",
"Duration": "48"
}
}
]
},
"Similarity": "0.8914769887924194"
}
]
},
"TextFpShots": {
"TextFpShot": [
{
"PrimaryKey": "3e34ac649945b53a1b0f863ce030****",
"Similarity": "1.0",
"TextFpShotSlices": {
"TextFpShotSlice": [
{
"Similarity": "1.0",
"InputText": "今天下雪了",
"DuplicationText": "今天下雪了",
"InputFragment": {
"Start": "0",
"Duration": "3"
}
}
]
}
}
]
}
},
"CreationTime": "2017-01-10T12:00:00Z",
"FinishTime": "0",
"State": "Success",
"Message": "The parameter \\\"Id\\\" is invalid.A uuid must:1)be comprised of chracters[a-f],numbers[0-9];2)be 32 characters long",
"FpShotConfig": {
"PrimaryKey": "3ca84a39a9024f19853b21be9cf9****",
"SaveType": "save",
"FpDBId": "2288c6ca184c0e47098a5b665e2a12****"
},
"FileId": "ebb51ee30f0b49aba959823fa991****",
"UserData": "testid-001",
"Duration": 5,
"Code": "InvalidParameter.UUIDFormatInvalid",
"InputFile": {
"Object": "test.mp4",
"Location": "oss-cn-beiing",
"Bucket": "oss-test"
},
"PipelineId": "88c6ca184c0e47098a5b665e2a12****",
"Id": "88c6ca184c0e47098a5b665e2a12****",
"Input": "{\"Bucket\":\"oss-test\",\"Location\":\"oss-cn-beiing\",\"Object\":\"test.mp4\"}"
}
]
},
"NonExistIds": {
"String": [
"ae687c02fe944327ba9631e50da23128****"
]
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.