All Products
Document Center


Last Updated: Mar 04, 2019


You can call this operation to obtain the basic information about an image based on the image ID. The basic information includes the title, type, creation time, and tags of the image.

Request parameters

ActionStringYesThe operation that you want to perform. Set the value to GetImageInfo.
ImageIdStringYesThe image ID.
AuthTimeoutLongNoThe expiration time of the image.

Response parameters

RequestId StringThe GUID generated by Alibaba Cloud for the request.
ImageInfo ImageInfoThe image information.


Sample requests

  1.<Common request parameters>

Note: For more information about common request parameters, see Common parameters.

Sample responses

JSON format

  1. {
  2. "RequestId": "5FFCED85-7ACD-4D62-A533-20A59A481730",
  3. "ImageInfo": {
  4. "Description": "Test description",
  5. "Mezzanine": {
  6. "OriginalFileName": "9AB9E51BD8024DFAB0484AE1E5E3EB74-6-2.gif",
  7. "Height": 200,
  8. "Width": 200,
  9. "FileSize": 8932
  10. },
  11. "CreationTime": "2018-11-21T02:37:23Z",
  12. "ImageId": "5fdc93c6473e4043b9b34d9cc699f00d",
  13. "Title": "Image uploaded in an open API test",
  14. "CateId": 254766071,
  15. "CateName": "Test",
  16. "StorageLocation": "",
  17. "Tags": "Tag 1,Tag 2,Tag 3",
  18. "URL": "",
  19. "ImageType": "default"
  20. }
  21. }

Error codes

The following table lists the error code that this operation can return. For more information, see Error codes.

Error codeError messageHTTP status codeDescription
NoSuchResourceThe specified resource does not exist.404The error message returned when the specified image does not exist.