GetStory
Retrieves the information about a story.
Operation description
Before you call this operation, make sure that you fully understand the billing methods and pricing of Intelligent Media Management.
Before calling this operation, make sure that you have indexed files into a dataset by using bindings (CreateBinding) or active indexing (IndexFileMeta or BatchIndexFileMeta).
Before calling this operation, make sure that you have generated album stories by using the Create a story or Create a custom story operation.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
imm:GetStory |
get |
*Dataset
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ProjectName |
string |
Yes |
The name of the project. For more information about how to obtain the project name, see Create a project. |
test-project |
| DatasetName |
string |
Yes |
The name of the dataset. For more information about how to obtain the dataset name, see Create a dataset. |
test-dataset |
| ObjectId |
string |
Yes |
The ID of the story object whose information you want to retrieve. |
id1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The ID of the request. |
1B3D5E0A-D8B8-4DA0-8127-ED32C851**** |
| Story | Story |
The detailed information about the story. |
Examples
Success response
JSON format
{
"RequestId": "1B3D5E0A-D8B8-4DA0-8127-ED32C851****",
"Story": {
"Addresses": [
{
"AddressLine": "",
"City": "",
"Country": "",
"District": "",
"Language": "zh-Hans",
"Province": "",
"Township": ""
}
],
"Cover": {
"AccessControlAllowOrigin": "https://aliyundoc.com",
"AccessControlRequestMethod": "PUT",
"Addresses": [
{
"AddressLine": "",
"City": "",
"Country": "",
"District": "",
"Language": "zh-Hans",
"Province": "",
"Township": ""
}
],
"Album": "FirstAlbum",
"AlbumArtist": "Jane",
"Artist": "Jane",
"AudioCovers": [
{
"CroppingSuggestions": [
{
"AspectRatio": "2:3",
"Boundary": {
"Height": 300,
"Left": 10,
"Polygon": [
{
"X": 10,
"Y": 10
}
],
"Top": 30,
"Width": 200
},
"Confidence": 0.742
}
],
"EXIF": "{\"FileSize\":{\"value\":\"29304\"},\"Format\":{\"value\":\"jpg\"}}",
"ImageHeight": 820,
"ImageScore": {
"OverallQualityScore": 0.736
},
"ImageWidth": 500,
"OCRContents": [
{
"Boundary": {
"Height": 300,
"Left": 10,
"Polygon": [
{
"X": 10,
"Y": 10
}
],
"Top": 30,
"Width": 200
},
"Confidence": 0.8254936695098877,
"Contents": "",
"Language": "zh-hans"
}
]
}
],
"AudioStreams": [
{
"Bitrate": 320087,
"ChannelLayout": "stereo",
"Channels": 2,
"CodecLongName": "AAC (Advanced Audio Coding)",
"CodecName": "aac",
"CodecTag": "0x6134706d",
"CodecTagString": "mp4a",
"CodecTimeBase": "1/44100",
"Duration": 3.690667,
"FrameCount": 173,
"Index": 1,
"Language": "en",
"Lyric": "test",
"SampleFormat": "fltp",
"SampleRate": 48000,
"StartTime": 0.0235,
"TimeBase": "1/48000"
}
],
"Bitrate": 13091201,
"CacheControl": "no-cache",
"Composer": "Jane",
"ContentDisposition": "attachment; filename =test.jpg",
"ContentEncoding": "UTF-8",
"ContentLanguage": "zh-CN",
"ContentMd5": "HZwoCnxPZ/fvhz4oRJ2+Fw==",
"ContentType": "image/jpeg",
"CreateTime": "2021-06-29T14:50:13.011643661+08:00",
"CroppingSuggestions": [
{
"AspectRatio": "2:3",
"Boundary": {
"Height": 300,
"Left": 10,
"Polygon": [
{
"X": 10,
"Y": 10
}
],
"Top": 30,
"Width": 200
},
"Confidence": 0.742
}
],
"CustomId": "\t\nmember-image-id-0001",
"CustomLabels": {
"MemberName": "Tim",
"Enabled": "True",
"ItemCount": "10"
},
"DatasetName": "test-dataset",
"Duration": 15.263,
"ETag": "\"1D9C280A7C4F67F7EF873E28449****\"",
"EXIF": "{\"Compression\":{\"value\":\"6\"},\"DateTime\":{\"value\":\"2020:08:19 17:11:11\"}}",
"Elements": [
{
"ElementContents": [
{
"Content": "文本片段",
"TimeRange": [
500
],
"Type": "text",
"URL": "http://aliyun.com"
}
],
"ElementRelations": [
{
"ObjectId": "id1",
"Type": "child,parent"
}
],
"ElementType": "title - 标题; image - 图片 ; table - 表格 ; narrative-text - 正文",
"ObjectId": "id1",
"SemanticSimilarity": 0.8
}
],
"FigureCount": 10,
"Figures": [
{
"Age": 29,
"AgeSD": 5,
"Attractive": 0.96,
"Beard": "none",
"BeardConfidence": 1,
"Emotion": "happiness",
"EmotionConfidence": 0.70784568786621,
"FaceQuality": 0.960875928401947,
"FigureClusterConfidence": 1,
"FigureClusterId": "Cluster-dbe72fec-b84c-4ab6-885b-3678e64****",
"FigureConfidence": 1,
"FigureId": "868a9e74-cde5-4c7a-9013-28bb984****",
"FigureType": "face",
"Gender": "female",
"GenderConfidence": 1,
"Glasses": "none",
"GlassesConfidence": 0.8,
"Hat": "none",
"HatConfidence": 1,
"HeadPose": {
"Pitch": 18.385589599609375,
"Roll": 4.204030513763428,
"Yaw": 2.4945924282073975
},
"Mask": "none",
"MaskConfidence": 1,
"Mouth": "close",
"MouthConfidence": 1,
"Sharpness": 0.7
}
],
"FileAccessTime": "2021-06-29T14:50:13.011643661+08:00",
"FileCreateTime": "2021-06-29T14:50:13.011643661+08:00",
"FileHash": "1d9c280a7c4f67f7ef873e28449dbe17",
"FileModifiedTime": "2021-06-29T14:50:13.011643661+08:00",
"Filename": "sampleobject.jpg",
"FormatLongName": "QuickTime / MOV",
"FormatName": "mov",
"ImageHeight": 500,
"ImageScore": {
"OverallQualityScore": 0.736
},
"ImageWidth": 270,
"Insights": {
"Image": {
"Caption": "An orange tabby cat lying on the living room sofa with sunlight streaming in through the window",
"Description": "The image shows a person wearing a dark suit jacket over a white shirt. The background features a gradient from light blue to gray",
"MultilingualContent": {
"key": {
"Caption": "No personnel activity at the office desk",
"Description": "This is a close-up shot of an office desk setup. In the left foreground stands a tall, cylindrical, off-white insulated tumbler. A rectangular black mousepad occupies the center of the desk, holding a black backlit mechanical keyboard. Directly behind the keyboard sits a computer monitor with its screen illuminated, displaying the operating system's application dock at the bottom. To the front right of the monitor stands a red metal beverage can, surrounded by a tangle of white data cables and a charging adapter. A small, silver, rectangular device (possibly a USB drive or an adapter) rests in the gap behind the left side of the keyboard, and a tiny pink decorative object is faintly visible on the desk surface. The scene is devoid of human activity; all objects remain motionless."
}
}
},
"Video": {
"Caption": "The video shows two different scenes: one features a stationary white plate, a black bottle, and a transparent glass, and the other shows a hand holding a shampoo bottle labeled \"YEZOLU\" moving slowly upward in a bathroom",
"Description": "The scene shows a slightly chubby orange cat lying on a light gray fabric sofa with its body slightly curled up",
"MultilingualContent": {
"key": {
"Caption": "No personnel activity at the office desk",
"Description": "This is a close-up shot of an office desk setup. In the left foreground stands a tall, cylindrical, off-white insulated tumbler. A rectangular black mousepad occupies the center of the desk, holding a black backlit mechanical keyboard. Directly behind the keyboard sits a computer monitor with its screen illuminated, displaying the operating system's application dock at the bottom. To the front right of the monitor stands a red metal beverage can, surrounded by a tangle of white data cables and a charging adapter. A small, silver, rectangular device (possibly a USB drive or an adapter) rests in the gap behind the left side of the keyboard, and a tiny pink decorative object is faintly visible on the desk surface. The scene is devoid of human activity; all objects remain motionless."
}
}
}
},
"Labels": [
{
"CentricScore": 0.7319999933242798,
"Clips": [
{
"TimeRange": [
100
]
}
],
"LabelAlias": "座椅",
"LabelConfidence": 0.9891784601980591,
"LabelLevel": 1,
"LabelName": "椅子",
"Language": "zh-Hans",
"ParentLabelName": "家具"
}
],
"Language": "eng",
"LatLong": "30.134390,120.074997",
"MediaType": "image",
"OCRContents": [
{
"Confidence": 0.8254936695098877,
"Contents": "",
"Language": "zh-hans"
}
],
"OCRTexts": "阿里云IMM",
"OSSCRC64": "559890638950338001",
"OSSDeleteMarker": "CAEQMhiBgIDXiaaB0BYiIGQzYmRkZGUxMTM1ZDRjOTZhNjk4YjRjMTAyZjhl****",
"OSSExpiration": "2120-01-01T12:00:00.000Z",
"OSSObjectType": "Normal",
"OSSStorageClass": "Standard",
"OSSTagging": {
"key": "val"
},
"OSSTaggingCount": 2,
"OSSURI": "oss://examplebucket/sampleobject.jpg",
"OSSUserMeta": {
"key": "val"
},
"OSSVersionId": "CAEQNhiBgMDJgZCA0BYiIDc4MGZjZGI2OTBjOTRmNTE5NmU5NmFhZjhjYmY0****",
"ObjectACL": "default",
"ObjectId": "75d5de2c50754e3dadd5c35dbca5f9949369e37eb342a73821f690c94c36c7f7",
"ObjectStatus": "Indexed",
"ObjectType": "file",
"Orientation": 0,
"OwnerId": "102321002467****",
"PageCount": 5,
"Performer": "Jane",
"ProduceTime": "2021-06-29T14:50:13.011643661+08:00",
"ProgramCount": 1,
"ProjectName": "test-project",
"Reason": "[InternalError] The request has been failed due to some unknown error. status: 500, requestId: CC5ACFBD-BB7A-496D-A9D6-****",
"SceneElements": [
{
"FrameTimes": [
30
],
"Labels": [
{
"CentricScore": 0.7319999933242798,
"Clips": [
{
"TimeRange": [
100
]
}
],
"LabelAlias": "座椅",
"LabelConfidence": 0.9891784601980591,
"LabelLevel": 1,
"LabelName": "椅子",
"Language": "zh-Hans",
"ParentLabelName": "家具"
}
],
"TimeRange": [
100
],
"VideoStreamIndex": 0
}
],
"SemanticTypes": [
"content"
],
"ServerSideDataEncryption": "SM4",
"ServerSideEncryption": "AES256",
"ServerSideEncryptionCustomerAlgorithm": "SM4",
"ServerSideEncryptionKeyId": "9468da86-3509-4f8d-a61e-6eab1eac****",
"Size": 1000,
"StartTime": 0,
"StreamCount": 1,
"Subtitles": [
{
"Bitrate": 74,
"CodecLongName": "MOV text",
"CodecName": "mov_text",
"CodecTag": "0x67337874",
"CodecTagString": "tx3g",
"Content": "",
"Duration": 71.378,
"Height": 30,
"Index": 2,
"Language": "en",
"StartTime": 0,
"Width": 600
}
],
"Timezone": "\"\"",
"Title": "test",
"TravelClusterId": "-",
"URI": "oss://test-bucket/test-object.jpg",
"UpdateTime": "2021-06-29T14:50:13.011643661+08:00",
"VideoHeight": 1920,
"VideoStreams": [
{
"AverageFrameRate": "25/1",
"BitDepth": 8,
"Bitrate": 5407765,
"CodecLongName": "H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10",
"CodecName": "h264",
"CodecTag": "0x31637661",
"CodecTagString": "avc1",
"CodecTimeBase": "1373627/83160000",
"ColorPrimaries": "bt709",
"ColorRange": "tv",
"ColorSpace": "bt709",
"ColorTransfer": "bt709",
"DisplayAspectRatio": "16:9",
"Duration": 22.88,
"FrameCount": 572,
"FrameRate": "25/1",
"HasBFrames": 2,
"Height": 720,
"Index": 0,
"Language": "en",
"Level": 40,
"PixelFormat": "yuv420p",
"Profile": "High",
"Rotate": "90",
"SampleAspectRatio": "1:1",
"StartTime": 0,
"TimeBase": "1/12800",
"Width": 1280
}
],
"VideoWidth": 1080
},
"CreateTime": "2022-01-14T10:17:18.102700407+08:00",
"CustomId": "test",
"CustomLabels": {
"key": "val"
},
"DatasetName": "dataset001",
"FigureClusterIds": [
"2cb3c51e-b406-4b0c-af1b-897d88e1****"
],
"Files": [
{
"AccessControlAllowOrigin": "https://aliyundoc.com",
"AccessControlRequestMethod": "PUT",
"Addresses": [
{
"AddressLine": "",
"City": "",
"Country": "",
"District": "",
"Language": "zh-Hans",
"Province": "",
"Township": ""
}
],
"Album": "FirstAlbum",
"AlbumArtist": "Jane",
"Artist": "Jane",
"AudioCovers": [
{
"CroppingSuggestions": [
{
"AspectRatio": "2:3",
"Confidence": 0.742
}
],
"EXIF": "{\"FileSize\":{\"value\":\"29304\"},\"Format\":{\"value\":\"jpg\"}}",
"ImageHeight": 820,
"ImageScore": {
"OverallQualityScore": 0.736
},
"ImageWidth": 500,
"OCRContents": [
{
"Confidence": 0.8254936695098877,
"Contents": "",
"Language": "zh-hans"
}
]
}
],
"AudioStreams": [
{
"Bitrate": 320087,
"ChannelLayout": "stereo",
"Channels": 2,
"CodecLongName": "AAC (Advanced Audio Coding)",
"CodecName": "aac",
"CodecTag": "0x6134706d",
"CodecTagString": "mp4a",
"CodecTimeBase": "1/44100",
"Duration": 3.690667,
"FrameCount": 173,
"Index": 1,
"Language": "en",
"Lyric": "test",
"SampleFormat": "fltp",
"SampleRate": 48000,
"StartTime": 0.0235,
"TimeBase": "1/48000"
}
],
"Bitrate": 13091201,
"CacheControl": "no-cache",
"Composer": "Jane",
"ContentDisposition": "attachment; filename =test.jpg",
"ContentEncoding": "UTF-8",
"ContentLanguage": "zh-CN",
"ContentMd5": "HZwoCnxPZ/fvhz4oRJ2+Fw==",
"ContentType": "image/jpeg",
"CreateTime": "2021-06-29T14:50:13.011643661+08:00",
"CroppingSuggestions": [],
"CustomId": "\t\nmember-image-id-0001",
"CustomLabels": {
"MemberName": "Tim",
"Enabled": "True",
"ItemCount": "10"
},
"DatasetName": "test-dataset",
"Duration": 15.263,
"ETag": "\"1D9C280A7C4F67F7EF873E28449****\"",
"EXIF": "{\"Compression\":{\"value\":\"6\"},\"DateTime\":{\"value\":\"2020:08:19 17:11:11\"}}",
"Elements": [
{
"ElementContents": [
{
"Content": "文本片段",
"TimeRange": [
500
],
"Type": "text",
"URL": "http://aliyun.com"
}
],
"ElementRelations": [
{
"ObjectId": "id1",
"Type": "child,parent"
}
],
"ElementType": "title - 标题; image - 图片 ; table - 表格 ; narrative-text - 正文",
"ObjectId": "id1",
"SemanticSimilarity": 0.8
}
],
"FigureCount": 10,
"Figures": [
{
"Age": 29,
"AgeSD": 5,
"Attractive": 0.96,
"Beard": "none",
"BeardConfidence": 1,
"Emotion": "happiness",
"EmotionConfidence": 0.70784568786621,
"FaceQuality": 0.960875928401947,
"FigureClusterConfidence": 1,
"FigureClusterId": "Cluster-dbe72fec-b84c-4ab6-885b-3678e64****",
"FigureConfidence": 1,
"FigureId": "868a9e74-cde5-4c7a-9013-28bb984****",
"FigureType": "face",
"Gender": "female",
"GenderConfidence": 1,
"Glasses": "none",
"GlassesConfidence": 0.8,
"Hat": "none",
"HatConfidence": 1,
"HeadPose": {
"Pitch": 18.385589599609375,
"Roll": 4.204030513763428,
"Yaw": 2.4945924282073975
},
"Mask": "none",
"MaskConfidence": 1,
"Mouth": "close",
"MouthConfidence": 1,
"Sharpness": 0.7
}
],
"FileAccessTime": "2021-06-29T14:50:13.011643661+08:00",
"FileCreateTime": "2021-06-29T14:50:13.011643661+08:00",
"FileHash": "1d9c280a7c4f67f7ef873e28449dbe17",
"FileModifiedTime": "2021-06-29T14:50:13.011643661+08:00",
"Filename": "sampleobject.jpg",
"FormatLongName": "QuickTime / MOV",
"FormatName": "mov",
"ImageHeight": 500,
"ImageWidth": 270,
"Insights": {
"Image": {
"Caption": "An orange tabby cat lying on the living room sofa with sunlight streaming in through the window",
"Description": "The image shows a person wearing a dark suit jacket over a white shirt. The background features a gradient from light blue to gray",
"MultilingualContent": {
"key": {
"Caption": "No personnel activity at the office desk",
"Description": "This is a close-up shot of an office desk setup. In the left foreground stands a tall, cylindrical, off-white insulated tumbler. A rectangular black mousepad occupies the center of the desk, holding a black backlit mechanical keyboard. Directly behind the keyboard sits a computer monitor with its screen illuminated, displaying the operating system's application dock at the bottom. To the front right of the monitor stands a red metal beverage can, surrounded by a tangle of white data cables and a charging adapter. A small, silver, rectangular device (possibly a USB drive or an adapter) rests in the gap behind the left side of the keyboard, and a tiny pink decorative object is faintly visible on the desk surface. The scene is devoid of human activity; all objects remain motionless."
}
}
},
"Video": {
"Caption": "The video shows two different scenes: one features a stationary white plate, a black bottle, and a transparent glass, and the other shows a hand holding a shampoo bottle labeled \"YEZOLU\" moving slowly upward in a bathroom",
"Description": "The scene shows a slightly chubby orange cat lying on a light gray fabric sofa with its body slightly curled up",
"MultilingualContent": {}
}
},
"Labels": [
{
"CentricScore": 0.7319999933242798,
"Clips": [
{
"TimeRange": [
100
]
}
],
"LabelAlias": "座椅",
"LabelConfidence": 0.9891784601980591,
"LabelLevel": 1,
"LabelName": "椅子",
"Language": "zh-Hans",
"ParentLabelName": "家具"
}
],
"Language": "eng",
"LatLong": "30.134390,120.074997",
"MediaType": "image",
"OCRContents": [],
"OCRTexts": "阿里云IMM",
"OSSCRC64": "559890638950338001",
"OSSDeleteMarker": "CAEQMhiBgIDXiaaB0BYiIGQzYmRkZGUxMTM1ZDRjOTZhNjk4YjRjMTAyZjhl****",
"OSSExpiration": "2120-01-01T12:00:00.000Z",
"OSSObjectType": "Normal",
"OSSStorageClass": "Standard",
"OSSTagging": {
"key": "val"
},
"OSSTaggingCount": 2,
"OSSURI": "oss://examplebucket/sampleobject.jpg",
"OSSUserMeta": {
"key": "val"
},
"OSSVersionId": "CAEQNhiBgMDJgZCA0BYiIDc4MGZjZGI2OTBjOTRmNTE5NmU5NmFhZjhjYmY0****",
"ObjectACL": "default",
"ObjectId": "75d5de2c50754e3dadd5c35dbca5f9949369e37eb342a73821f690c94c36c7f7",
"ObjectStatus": "Indexed",
"ObjectType": "file",
"Orientation": 0,
"OwnerId": "102321002467****",
"PageCount": 5,
"Performer": "Jane",
"ProduceTime": "2021-06-29T14:50:13.011643661+08:00",
"ProgramCount": 1,
"ProjectName": "test-project",
"Reason": "[InternalError] The request has been failed due to some unknown error. status: 500, requestId: CC5ACFBD-BB7A-496D-A9D6-****",
"SceneElements": [
{
"FrameTimes": [
30
],
"Labels": [],
"TimeRange": [
100
],
"VideoStreamIndex": 0
}
],
"SemanticTypes": [
"content"
],
"ServerSideDataEncryption": "SM4",
"ServerSideEncryption": "AES256",
"ServerSideEncryptionCustomerAlgorithm": "SM4",
"ServerSideEncryptionKeyId": "9468da86-3509-4f8d-a61e-6eab1eac****",
"Size": 1000,
"StartTime": 0,
"StreamCount": 1,
"Subtitles": [
{
"Bitrate": 74,
"CodecLongName": "MOV text",
"CodecName": "mov_text",
"CodecTag": "0x67337874",
"CodecTagString": "tx3g",
"Content": "",
"Duration": 71.378,
"Height": 30,
"Index": 2,
"Language": "en",
"StartTime": 0,
"Width": 600
}
],
"Timezone": "\"\"",
"Title": "test",
"TravelClusterId": "-",
"URI": "oss://test-bucket/test-object.jpg",
"UpdateTime": "2021-06-29T14:50:13.011643661+08:00",
"VideoHeight": 1920,
"VideoStreams": [
{
"AverageFrameRate": "25/1",
"BitDepth": 8,
"Bitrate": 5407765,
"CodecLongName": "H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10",
"CodecName": "h264",
"CodecTag": "0x31637661",
"CodecTagString": "avc1",
"CodecTimeBase": "1373627/83160000",
"ColorPrimaries": "bt709",
"ColorRange": "tv",
"ColorSpace": "bt709",
"ColorTransfer": "bt709",
"DisplayAspectRatio": "16:9",
"Duration": 22.88,
"FrameCount": 572,
"FrameRate": "25/1",
"HasBFrames": 2,
"Height": 720,
"Index": 0,
"Language": "en",
"Level": 40,
"PixelFormat": "yuv420p",
"Profile": "High",
"Rotate": "90",
"SampleAspectRatio": "1:1",
"StartTime": 0,
"TimeBase": "1/12800",
"Width": 1280
}
],
"VideoWidth": 1080
}
],
"ObjectId": "id1",
"ObjectType": "story",
"OwnerId": "102321002****",
"ProjectName": "immtest",
"StoryEndTime": "2022-01-14T10:17:18.102700407+08:00",
"StoryName": "name1",
"StoryStartTime": "2022-01-14T10:17:18.102700407+08:00",
"StorySubType": "ImportantPerson",
"StoryType": "PeopleMemory",
"UpdateTime": "2022-01-14T10:17:18.102700407+08:00"
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.