'1.0', 'info' => ['style' => 'RPC', 'product' => 'ImageSearch', 'version' => '2021-05-01'], 'directories' => ['GetProductInfoByIds', 'SearchByPic', 'SearchByUrl'], 'components' => [ 'schemas' => [], ], 'apis' => [ 'GetProductInfoByIds' => [ 'methods' => ['post'], 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [], 'parameters' => [ [ 'name' => 'ItemIds', 'in' => 'formData', 'schema' => ['description' => 'The product ID string. Separate multiple IDs with commas (,). A maximum of 40 IDs are supported.', 'type' => 'string', 'required' => true, 'example' => '111,22,33', 'title' => ''], ], [ 'name' => 'Pid', 'in' => 'formData', 'schema' => ['description' => 'The PID. For more information, see [PID](https://mos.m.taobao.com/union/pub/site/help?spm=a219t.11817172.PortalLayout.d52e56935.27ac6a15wlAEHe).'."\n" .'> This field is available when you use SDK V1.1.0 or later.', 'type' => 'string', 'required' => false, 'example' => 'mm_xxx_xxx_xxx', 'title' => ''], ], [ 'name' => 'Fields', 'in' => 'formData', 'schema' => ['description' => 'The list of fields to return. Separate different fields with commas (,). By default, the PicUrl, ReservePrice, Title, Url, and ZkFinalPrice fields are always returned.', 'type' => 'string', 'required' => false, 'example' => 'Url,UserType', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => '', 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ 'Success' => ['description' => 'Indicates whether the request was successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], 'Code' => ['description' => 'The error code.'."\n" ."\n" .'- 0: success.'."\n" .'- Non-0: failure.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], 'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'success', 'title' => ''], 'Data' => [ 'description' => 'The recognition result set.', 'type' => 'object', 'properties' => [ 'Auctions' => [ 'description' => 'The recognition results.', 'type' => 'array', 'items' => [ 'description' => 'The query result content.', 'type' => 'object', 'properties' => [ 'Result' => [ 'description' => 'The query result.', 'type' => 'object', 'properties' => [ 'InputItemId' => ['description' => 'The product ID.'."\n" .'> Used with SDK 1.2.3. This value is the same as the ItemIds passed in the search request.', 'type' => 'string', 'example' => '123000123', 'title' => ''], 'ItemId' => ['description' => 'The product ID.'."\n" .'> Used with SDK 1.2.3. This is a dynamic product ID.', 'type' => 'string', 'example' => 'Oqz93kougf9bkN7f4ACMtJ', 'title' => ''], 'Title' => ['description' => 'The product title.', 'type' => 'string', 'example' => 'xxx套装', 'title' => ''], 'ShortTitle' => ['description' => 'The short product title. This title is recommended for mobile devices.', 'type' => 'string', 'example' => 'xxx套装', 'title' => ''], 'SubTitle' => ['description' => 'The product subtitle.', 'type' => 'string', 'example' => 'xxx套装', 'title' => ''], 'PicUrl' => ['description' => 'The main product image URL.', 'type' => 'string', 'example' => '//img.alicdn.com/i1/FXXXXXXXXXX.jpg', 'title' => ''], 'ReservePrice' => ['description' => 'The fixed price, which is typically displayed as the strikethrough price.', 'type' => 'string', 'example' => '150', 'title' => ''], 'ZkFinalPrice' => ['description' => 'The online selling price in CNY. If the product is a pre-sale product and is within the deposit payment period, the online selling price equals the pre-sale price.', 'type' => 'string', 'example' => '98', 'title' => ''], 'PriceAfterCoupon' => ['description' => 'The price after coupon is applied.', 'type' => 'string', 'example' => '90', 'title' => ''], 'UserType' => ['description' => 'The seller type.'."\n" ."\n" .'- 1: Tmall.'."\n" .'- 0: Taobao.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], 'Provcity' => ['description' => 'The product location.', 'type' => 'string', 'example' => '广东 深圳', 'title' => ''], 'Nick' => ['description' => 'The seller nickname.', 'type' => 'string', 'example' => '衣服专卖店', 'title' => ''], 'SellerId' => ['description' => 'The seller ID.', 'type' => 'string', 'example' => '32590610', 'title' => ''], 'CategoryName' => ['description' => 'The first-level category name.', 'type' => 'string', 'example' => '连衣裙', 'title' => ''], 'Volume' => ['description' => 'The sales volume in the last 30 days.', 'type' => 'integer', 'format' => 'int32', 'example' => '500', 'title' => ''], 'LevelOneCategoryName' => ['description' => 'The leaf category name.', 'type' => 'string', 'example' => '童装/婴儿装/亲子装', 'title' => ''], 'CouponTotalCount' => ['description' => 'The total number of coupons.', 'type' => 'string', 'example' => '10000', 'title' => ''], 'CouponRemainCount' => ['description' => 'The number of remaining coupons.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], 'CouponStartTime' => ['description' => 'The coupon start time.', 'type' => 'string', 'example' => '2021-05-01', 'title' => ''], 'CouponEndTime' => ['description' => 'The coupon end time.', 'type' => 'string', 'example' => '2021-06-01', 'title' => ''], 'CouponStartFee' => ['description' => 'The minimum spend threshold for the coupon. For example, spend CNY 299 to save CNY 20.', 'type' => 'string', 'example' => '98.000000', 'title' => ''], 'CouponAmount' => ['description' => 'The coupon amount in CNY. If the product is a pre-sale product, this coupon can be used for the final payment but not for the deposit.', 'type' => 'integer', 'format' => 'int32', 'example' => '8', 'title' => ''], 'CouponInfo' => ['description' => 'The coupon threshold-based discount information.', 'type' => 'string', 'example' => '满98.0元减5.0元', 'title' => ''], 'CommissionRate' => ['description' => 'The commission rate. For example, 1550 indicates 15.5%.', 'type' => 'string', 'example' => '180', 'title' => ''], 'CouponShareUrl' => ['description' => 'The combined product and coupon page URL.', 'type' => 'string', 'example' => 'tbopen://m.taobao.com/tbopen/index.html?', 'title' => ''], 'DeeplinkCouponShareUrl' => ['description' => 'The deep link for launching the Taobao app with the coupon.', 'type' => 'string', 'example' => 'tbopen://m.taobao.com/tbopen/index.html?', 'title' => ''], 'Url' => ['description' => 'The product promotion URL.', 'type' => 'string', 'example' => 'tbopen://m.taobao.com/tbopen/index.html?', 'title' => ''], 'DeeplinkUrl' => ['description' => 'The deep link for product promotion.', 'type' => 'string', 'example' => 'tbopen://m.taobao.com/tbopen/index.html?', 'title' => ''], 'ShopTitle' => ['description' => 'The shop name.', 'type' => 'string', 'example' => 'xx旗舰店', 'title' => ''], 'MaxCommission' => [ 'description' => 'The highest commission information.', 'type' => 'object', 'properties' => [ 'MaxCommissionRate' => ['description' => 'The optimal commission rate. For example, 20.4 indicates a commission rate of 20.4%.', 'type' => 'string', 'example' => '20.4', 'title' => ''], 'MaxCommissionClickUrl' => ['description' => 'The product promotion URL with the optimal commission rate.', 'type' => 'string', 'example' => 'https://s.click.taobao.com/t?e=xxxx', 'title' => ''], 'MaxCommissionCouponShareUrl' => ['description' => 'The combined product and coupon page URL with the optimal commission rate.', 'type' => 'string', 'example' => 'https://s.click.taobao.com/t?e=xxxx', 'title' => ''], ], 'title' => '', 'example' => '', ], ], 'title' => '', 'example' => '', ], 'RankScore' => ['description' => 'The ranking score for product similarity. Valid values: 0 to 1.', 'type' => 'number', 'format' => 'float', 'example' => '0.34', 'title' => ''], ], 'title' => '', 'example' => '', ], 'title' => '', 'example' => '', ], ], 'title' => '', 'example' => '', ], 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'B3137727-7D6E-488C-BA21-0E034C38A879', 'title' => ''], ], 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ ['errorCode' => 'PidNotExist', 'errorMessage' => 'The parameter specified Pid not exist', 'description' => ''], ['errorCode' => 'InvalidPid', 'errorMessage' => 'The parameter Pid no specified', 'description' => ''], ['errorCode' => 'BadRequest', 'errorMessage' => 'The request has invalid parameters.', 'description' => ''], ['errorCode' => 'InstanceStatusError', 'errorMessage' => 'Your instance is unavailable.', 'description' => ''], ['errorCode' => 'TimeoutForTransferImage', 'errorMessage' => 'Timeout after 5 seconds waiting for images transfer to complete.', 'description' => ''], ['errorCode' => 'InvalidInstance', 'errorMessage' => 'The specified instance name is invalid.', 'description' => ''], ['errorCode' => 'InvalidItemIds', 'errorMessage' => 'ItemIds parameter overflow number max 40.', 'description' => ''], ['errorCode' => 'OverflowMaxResultNum', 'errorMessage' => 'The specified number of total results exceeds the maximum of 500.', 'description' => ''], ['errorCode' => 'OverflowMaxReturnNum', 'errorMessage' => 'The specified number of results for each request exceeds the maximum of 100.', 'description' => ''], ['errorCode' => 'InvalidStartParameter', 'errorMessage' => 'The specified parameter start is inavlid.', 'description' => ''], ['errorCode' => 'InvalidNumParameter', 'errorMessage' => 'The specified parameter num is invalid.', 'description' => ''], ['errorCode' => 'InvalidIntAttr', 'errorMessage' => 'The specified int_attr field is invalid.', 'description' => ''], ['errorCode' => 'UnsupportedPicFormat', 'errorMessage' => 'The specified image format is invalid.', 'description' => ''], ['errorCode' => 'InvalidFilterClause', 'errorMessage' => 'The specified filtering condition is invalid.', 'description' => ''], ['errorCode' => 'IncorrectOrientation', 'errorMessage' => 'The image contains incorrect rotation flags in the meta data.', 'description' => ''], ['errorCode' => 'UnsupportedPicPixels', 'errorMessage' => 'The specified pixels is not supported.', 'description' => ''], ['errorCode' => 'SearchTimeout', 'errorMessage' => 'The request is timed out.', 'description' => ''], ['errorCode' => 'NoSpecifiedPicContent', 'errorMessage' => 'The parameter PicContent no specified.', 'description' => ''], ['errorCode' => 'InvalidCustomContent', 'errorMessage' => 'The specified parameter CustomContent is not valid.', 'description' => ''], ['errorCode' => 'InvalidPicContent', 'errorMessage' => 'The specified parameter PicContent length greater than 4 * 1024 * 1024.', 'description' => ''], ['errorCode' => 'InvalidPicUrl', 'errorMessage' => 'The specified parameter PicUrl is not valid.', 'description' => ''], ['errorCode' => 'NotRegisterBeforeInvoke', 'errorMessage' => 'Need register token: pid before invoke.', 'description' => ''], ], 403 => [ ['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to perform this operation.', 'description' => ''], ['errorCode' => 'DeniedRequest', 'errorMessage' => 'Your request was denied due to instance flow control.', 'description' => ''], ], 500 => [ ['errorCode' => 'InternalError', 'errorMessage' => 'An internal server error occurred.', 'description' => ''], ['errorCode' => 'NetworkException', 'errorMessage' => 'A network error occurred.', 'description' => ''], ['errorCode' => 'RequestTimeout', 'errorMessage' => '​The request is timeout.', 'description' => ''], ], ], 'title' => 'Query products by ID', 'summary' => 'This topic describes the syntax and examples of the GetProductInfoByIds operation for online calls to the Taobao Alliance edition.', 'description' => '## Operation description'."\n" .'This operation is used for online calls to the Taobao Alliance edition.'."\n" .'> We recommend that you use SDK 1.2.3 or later, which returns dynamic product IDs.'."\n" ."\n" .'## QPS limit'."\n" .'The default QPS limit for query operations is 5.', 'extraInfo' => '## Error codes'."\n" .'For more information, see [Error codes](~~66619~~).', 'changeSet' => [], 'ramActions' => [ [ 'operationType' => '', 'ramAction' => [ 'action' => 'imagesearch:GetProductInfoByIds', 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ ['validationType' => 'always', 'product' => 'ImageSearch', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"Code\\": 0,\\n \\"Message\\": \\"success\\",\\n \\"Data\\": {\\n \\"Auctions\\": [\\n {\\n \\"Result\\": {\\n \\"InputItemId\\": \\"123000123\\",\\n \\"ItemId\\": \\"Oqz93kougf9bkN7f4ACMtJ\\",\\n \\"Title\\": \\"xxx套装\\",\\n \\"ShortTitle\\": \\"xxx套装\\",\\n \\"SubTitle\\": \\"xxx套装\\",\\n \\"PicUrl\\": \\"//img.alicdn.com/i1/FXXXXXXXXXX.jpg\\",\\n \\"ReservePrice\\": \\"150\\",\\n \\"ZkFinalPrice\\": \\"98\\",\\n \\"PriceAfterCoupon\\": \\"90\\",\\n \\"UserType\\": 0,\\n \\"Provcity\\": \\"广东 深圳\\",\\n \\"Nick\\": \\"衣服专卖店\\",\\n \\"SellerId\\": \\"32590610\\",\\n \\"CategoryName\\": \\"连衣裙\\",\\n \\"Volume\\": 500,\\n \\"LevelOneCategoryName\\": \\"童装/婴儿装/亲子装\\",\\n \\"CouponTotalCount\\": \\"10000\\",\\n \\"CouponRemainCount\\": 0,\\n \\"CouponStartTime\\": \\"2021-05-01\\",\\n \\"CouponEndTime\\": \\"2021-06-01\\",\\n \\"CouponStartFee\\": \\"98.000000\\",\\n \\"CouponAmount\\": 8,\\n \\"CouponInfo\\": \\"满98.0元减5.0元\\",\\n \\"CommissionRate\\": \\"180\\",\\n \\"CouponShareUrl\\": \\"tbopen://m.taobao.com/tbopen/index.html?\\",\\n \\"DeeplinkCouponShareUrl\\": \\"tbopen://m.taobao.com/tbopen/index.html?\\",\\n \\"Url\\": \\"tbopen://m.taobao.com/tbopen/index.html?\\",\\n \\"DeeplinkUrl\\": \\"tbopen://m.taobao.com/tbopen/index.html?\\",\\n \\"ShopTitle\\": \\"xx旗舰店\\",\\n \\"MaxCommission\\": {\\n \\"MaxCommissionRate\\": \\"20.4\\",\\n \\"MaxCommissionClickUrl\\": \\"https://s.click.taobao.com/t?e=xxxx\\",\\n \\"MaxCommissionCouponShareUrl\\": \\"https://s.click.taobao.com/t?e=xxxx\\"\\n }\\n },\\n \\"RankScore\\": 0.34\\n }\\n ]\\n },\\n \\"RequestId\\": \\"B3137727-7D6E-488C-BA21-0E034C38A879\\"\\n}","type":"json"}]', ], 'SearchByPic' => [ 'summary' => 'This topic describes the syntax and examples of the SearchByPic operation for online calls to the Taobao Alliance Edition.', 'methods' => ['post'], 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [], 'parameters' => [ [ 'name' => 'PicContent', 'in' => 'formData', 'schema' => ['description' => 'The image content.'."\n" .' - The image size cannot exceed 4 MB.'."\n" .' - Image formats: PNG, JPG, JPEG, BMP, GIF, WEBP, TIFF, and PPM.'."\n" .' - The transmission wait time cannot exceed 5 seconds.'."\n" .' - The image cannot contain rotation information.'."\n" .'> - If you use an SDK, you do not need to set the PicContent field. The SDK encapsulates this field as the PicContentObject field.', 'type' => 'string', 'required' => true, 'isFileTransferUrl' => true, 'example' => 'xxx', 'title' => ''], ], [ 'name' => 'CategoryId', 'in' => 'formData', 'schema' => [ 'description' => 'The image category. For more information, see [Category reference](~~179184~~).'."\n" .'> If you specify a category, the specified category is used. If you do not specify a category, the system predicts the category. You can obtain the predicted category result from the response.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '88888888', 'minimum' => '0', 'enum' => ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '20', '21', '22', '88888888'], 'example' => '88888888', 'title' => '', ], ], [ 'name' => 'Pid', 'in' => 'formData', 'schema' => ['description' => 'The PID. For more information, see [PID](https://mos.m.taobao.com/union/pub/site/help?spm=a219t.11817172.PortalLayout.d52e56935.27ac6a15wlAEHe).'."\n" .'> This field is available when you use SDK V1.1.0 or later.', 'type' => 'string', 'required' => false, 'example' => 'mm_xxx_xxx_xxx', 'title' => ''], ], [ 'name' => 'UserType', 'in' => 'query', 'schema' => [ 'description' => 'The seller type.'."\n" ."\n" .'- 1: Tmall.'."\n" ."\n" .'- 0: Taobao.', 'type' => 'integer', 'format' => 'int64', 'maximum' => '1', 'minimum' => '0', 'enum' => ['0', '1'], 'required' => false, 'example' => '0', 'title' => '', ], ], [ 'name' => 'Crop', 'in' => 'formData', 'schema' => ['description' => 'Specifies whether to perform subject identification. Default value: true.'."\n" .' - If this parameter is set to true, the system performs subject identification. We recommend that you use this method.'."\n" .'- If this parameter is set to false, subject identification is not performed, and the entire image is used for the search.', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''], ], [ 'name' => 'Region', 'in' => 'formData', 'schema' => ['description' => 'The subject region of the image, in the format of `x1,x2,y1,y2`, where `x1,y1` is the upper-left point and `x2,y2` is the lower-right point.'."\n" .'> If you specify Region, the system uses the specified Region for the search regardless of the value of the Crop parameter.', 'type' => 'string', 'required' => false, 'example' => '280,486,232,351', 'title' => ''], ], [ 'name' => 'Start', 'in' => 'formData', 'schema' => ['description' => 'The start position of the returned results. Valid values: 0 to 499. Default value: 0.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '499', 'minimum' => '0', 'default' => '0', 'example' => '0', 'title' => ''], ], [ 'name' => 'Num', 'in' => 'formData', 'schema' => ['description' => 'The number of returned results. Valid values: 1 to 20. Default value: 10.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '20', 'minimum' => '1', 'default' => '10', 'example' => '10', 'title' => ''], ], [ 'name' => 'Fields', 'in' => 'formData', 'schema' => ['description' => 'The list of fields to return. Separate multiple fields with commas. The PicUrl, ReservePrice, Title, Url, and ZkFinalPrice fields are always returned by default.', 'type' => 'string', 'required' => false, 'example' => 'Url,UserType', 'title' => ''], ], [ 'name' => 'RelationId', 'in' => 'formData', 'schema' => ['description' => 'The channel ID. This parameter is used to distinguish channels in Taobao Alliance.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1125526', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => '', 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ 'Success' => ['description' => 'Indicates whether the request is successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], 'Code' => ['description' => 'The error code.'."\n" ."\n" .'- 0: success.'."\n" ."\n" .'- Non-zero: failure.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], 'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'sucess', 'title' => ''], 'Data' => [ 'description' => 'The collection of recognition results.', 'type' => 'object', 'properties' => [ 'Auctions' => [ 'description' => 'The recognition results.', 'type' => 'array', 'items' => [ 'description' => 'The query result content.', 'type' => 'object', 'properties' => [ 'Result' => [ 'description' => 'The query result.', 'type' => 'object', 'properties' => [ 'ItemId' => ['description' => 'The product ID.', 'type' => 'string', 'example' => 'casdcascascasc-dsasdasdasdasdas', 'title' => ''], 'Title' => ['description' => 'The product title.', 'type' => 'string', 'example' => 'xxx套装', 'title' => ''], 'ShortTitle' => ['description' => 'The short product title. We recommend that you use this title on mobile devices.', 'type' => 'string', 'example' => 'yyy套装', 'title' => ''], 'SubTitle' => ['description' => 'The product subtitle.', 'type' => 'string', 'example' => 'xxx套装', 'title' => ''], 'PicUrl' => ['description' => 'The main product image URL.', 'type' => 'string', 'example' => '//img.alicdn.com/i1/FXXXXXXXXXX.jpg', 'title' => ''], 'ReservePrice' => ['description' => 'The fixed price, which is usually displayed as the original price with a strikethrough.', 'type' => 'string', 'example' => '158', 'title' => ''], 'ZkFinalPrice' => ['description' => 'The online selling price in CNY. If the product is a pre-sale product, the online selling price equals the pre-sale price during the deposit payment period.', 'type' => 'string', 'example' => '98', 'title' => ''], 'PriceAfterCoupon' => ['description' => 'The price after the coupon is applied.', 'type' => 'string', 'example' => '90', 'title' => ''], 'UserType' => ['description' => 'The seller type.'."\n" ."\n" .'- 1: Tmall.'."\n" ."\n" .'- 0: Taobao.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], 'Provcity' => ['description' => 'The location of the product.', 'type' => 'string', 'example' => '广东 深圳', 'title' => ''], 'Nick' => ['description' => 'The seller nickname.', 'type' => 'string', 'example' => '衣服专卖店', 'title' => ''], 'SellerId' => ['description' => 'The seller ID.', 'type' => 'string', 'example' => '32590610', 'title' => ''], 'Volume' => ['description' => 'The sales volume in the last 30 days.', 'type' => 'integer', 'format' => 'int32', 'example' => '500', 'title' => ''], 'LevelOneCategoryName' => ['description' => 'The leaf category name.', 'type' => 'string', 'example' => '童装/婴儿装/亲子装', 'title' => ''], 'CategoryName' => ['description' => 'The level-1 category name.', 'type' => 'string', 'example' => '连衣裙', 'title' => ''], 'CouponTotalCount' => ['description' => 'The total number of coupons.', 'type' => 'string', 'example' => '100000', 'title' => ''], 'CouponRemainCount' => ['description' => 'The remaining number of coupons.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], 'CouponStartTime' => ['description' => 'The start time of the coupon.', 'type' => 'string', 'example' => '2021-05-01', 'title' => ''], 'CouponEndTime' => ['description' => 'The end time of the coupon.', 'type' => 'string', 'example' => '2021-06-01', 'title' => ''], 'CouponStartFee' => ['description' => 'The minimum spend threshold for the coupon. For example, a coupon that provides a CNY 20 discount on purchases of CNY 299 or more.', 'type' => 'string', 'example' => '98.000000', 'title' => ''], 'CouponAmount' => ['description' => 'The coupon amount in CNY. If the product is a pre-sale product, the coupon can be used for the final payment but not for the deposit.', 'type' => 'integer', 'format' => 'int32', 'example' => '5', 'title' => ''], 'CouponInfo' => ['description' => 'The coupon discount information.', 'type' => 'string', 'example' => '满98.0元减5.0元', 'title' => ''], 'CommissionRate' => ['description' => 'The commission rate. For example, 1550 indicates 15.5%.', 'type' => 'string', 'example' => '180', 'title' => ''], 'CouponShareUrl' => ['description' => 'The combined product and coupon page URL.', 'type' => 'string', 'example' => '//uland.taobao.com/xxxxxxx', 'title' => ''], 'DeeplinkCouponShareUrl' => ['description' => 'The deep link for launching the Taobao app with the coupon.', 'type' => 'string', 'example' => 'tbopen://m.taobao.com/tbopen/index.html?', 'title' => ''], 'Url' => ['description' => 'The product promotion URL.', 'type' => 'string', 'example' => '//s.click.taobao.com/t?xxxxxx', 'title' => ''], 'DeeplinkUrl' => ['description' => 'The deep link for product promotion.', 'type' => 'string', 'example' => 'tbopen://m.taobao.com/tbopen/index.html?', 'title' => ''], 'ShopTitle' => ['description' => 'The shop name.', 'type' => 'string', 'example' => 'xx旗舰店', 'title' => ''], 'MaxCommission' => [ 'description' => 'The highest commission information.', 'type' => 'object', 'properties' => [ 'MaxCommissionRate' => ['description' => 'The highest commission rate. For example, 20.4 indicates a commission rate of 20.4%.', 'type' => 'string', 'example' => '20.4', 'title' => ''], 'MaxCommissionClickUrl' => ['description' => 'The product promotion URL with the highest commission rate.', 'type' => 'string', 'example' => 'https://s.click.taobao.com/t?e=xxxx', 'title' => ''], 'MaxCommissionCouponShareUrl' => ['description' => 'The combined product and coupon page URL with the highest commission rate.', 'type' => 'string', 'example' => 'https://uland.taobao.com/coupon/xxxx', 'title' => ''], ], 'title' => '', 'example' => '', ], ], 'title' => '', 'example' => '', ], 'RankScore' => ['description' => 'The ranking score of product similarity. Valid values: 0 to 1.', 'type' => 'number', 'format' => 'float', 'example' => '0.337', 'title' => ''], ], 'title' => '', 'example' => '', ], 'title' => '', 'example' => '', ], ], 'title' => '', 'example' => '', ], 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'B3137727-7D6E-488C-BA21-0E034C38A879', 'title' => ''], 'PicInfo' => [ 'description' => 'The information such as category prediction and subject identification results.', 'type' => 'object', 'properties' => [ 'MainRegion' => [ 'description' => 'The multi-category information of the subject.', 'type' => 'object', 'properties' => [ 'Region' => ['description' => 'The subject identification result. The subject region of the image, in the format of x1,x2,y1,y2, where x1,y1 is the upper-left point and x2,y2 is the lower-right point. If you specify the subject region in the request, the specified region is used.', 'type' => 'string', 'example' => '280,486,232,351', 'title' => ''], 'MultiCategoryId' => [ 'description' => 'The collection of category prediction results for the subject prediction region.', 'type' => 'array', 'items' => [ 'description' => 'The category prediction result for the subject prediction region.', 'type' => 'object', 'properties' => [ 'CategoryId' => ['description' => 'The image category. For more information, see [Category reference](~~179184~~).', 'type' => 'integer', 'format' => 'int32', 'example' => '88888888', 'title' => ''], 'Score' => ['description' => 'The predicted category score. Valid values: 0 to 1.', 'type' => 'number', 'format' => 'float', 'example' => '0.34', 'title' => ''], ], 'title' => '', 'example' => '', ], 'title' => '', 'example' => '', ], ], 'title' => '', 'example' => '', ], 'MultiRegion' => [ 'description' => 'The collection of subject identification results.', 'type' => 'array', 'items' => [ 'description' => 'The subject identification result.', 'type' => 'object', 'properties' => [ 'Region' => ['description' => 'The subject identification result. The subject region of the image, in the format of x1,x2,y1,y2, where x1,y1 is the upper-left point and x2,y2 is the lower-right point. If you specify the subject region in the request, the specified region is used.', 'type' => 'string', 'example' => '280,486,232,351', 'title' => ''], ], 'title' => '', 'example' => '', ], 'title' => '', 'example' => '', ], ], 'title' => '', 'example' => '', ], ], 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ ['errorCode' => 'InvalidPicContent', 'errorMessage' => 'The specified parameter PicContent length greater than 4 * 1024 * 1024.', 'description' => ''], ['errorCode' => 'InvalidPid', 'errorMessage' => 'The parameter Pid no specified', 'description' => ''], ['errorCode' => 'BadRequest', 'errorMessage' => 'The request has invalid parameters.', 'description' => ''], ['errorCode' => 'NoSpecifiedSearchPic', 'errorMessage' => 'The search image is not specified.', 'description' => ''], ['errorCode' => 'InvalidCategory', 'errorMessage' => 'The specified category is invalid.', 'description' => ''], ['errorCode' => 'OverflowMaxResultNum', 'errorMessage' => 'The specified number of total results exceeds the maximum of 500.', 'description' => ''], ['errorCode' => 'OverflowMaxReturnNum', 'errorMessage' => 'The specified number of results for each request exceeds the maximum of 100.', 'description' => ''], ['errorCode' => 'InvalidStartParameter', 'errorMessage' => 'The specified parameter start is inavlid.', 'description' => ''], ['errorCode' => 'InvalidNumParameter', 'errorMessage' => 'The specified parameter num is invalid.', 'description' => ''], ['errorCode' => 'InvalidIntAttr', 'errorMessage' => 'The specified int_attr field is invalid.', 'description' => ''], ['errorCode' => 'UnsupportedPicFormat', 'errorMessage' => 'The specified image format is invalid.', 'description' => ''], ['errorCode' => 'InvalidFilterClause', 'errorMessage' => 'The specified filtering condition is invalid.', 'description' => ''], ['errorCode' => 'IncorrectOrientation', 'errorMessage' => 'The image contains incorrect rotation flags in the meta data.', 'description' => ''], ['errorCode' => 'UnsupportedPicPixels', 'errorMessage' => 'The specified pixels is not supported.', 'description' => ''], ['errorCode' => 'SearchTimeout', 'errorMessage' => 'The request is timed out.', 'description' => ''], ['errorCode' => 'NoSpecifiedPicContent', 'errorMessage' => 'The parameter PicContent no specified.', 'description' => ''], ['errorCode' => 'InvalidCustomContent', 'errorMessage' => 'The specified parameter CustomContent is not valid.', 'description' => ''], ['errorCode' => 'NotRegisterBeforeInvoke', 'errorMessage' => 'Need register token: pid before invoke.', 'description' => ''], ], 403 => [ ['errorCode' => 'DeniedRequest', 'errorMessage' => 'Your request was denied due to instance flow control.', 'description' => ''], ['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to perform this operation.', 'description' => ''], ], 500 => [ ['errorCode' => 'UnknownException', 'errorMessage' => 'An internal server error occurred.', 'description' => ''], ['errorCode' => 'NetworkException', 'errorMessage' => 'A network error occurred.', 'description' => ''], ['errorCode' => 'InternalException', 'errorMessage' => 'An internal server error occurred.', 'description' => ''], ['errorCode' => 'RequestTimeout', 'errorMessage' => '​The request is timeout.', 'description' => ''], ], ], 'title' => 'Search by image', 'description' => '## Usage notes'."\n" .'This operation is used for online calls to the Taobao Alliance Edition.'."\n" ."\n" .'## QPS limit'."\n" .'The default QPS limit for query operations is 5.', 'extraInfo' => '## Error codes'."\n" .'For more information, see [Error codes](~~66619~~).', 'changeSet' => [], 'ramActions' => [ [ 'operationType' => '', 'ramAction' => [ 'action' => 'imagesearch:SearchByPic', 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ ['validationType' => 'always', 'product' => 'ImageSearch', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"Code\\": 0,\\n \\"Message\\": \\"sucess\\",\\n \\"Data\\": {\\n \\"Auctions\\": [\\n {\\n \\"Result\\": {\\n \\"ItemId\\": \\"casdcascascasc-dsasdasdasdasdas\\",\\n \\"Title\\": \\"xxx套装\\",\\n \\"ShortTitle\\": \\"yyy套装\\",\\n \\"SubTitle\\": \\"xxx套装\\",\\n \\"PicUrl\\": \\"//img.alicdn.com/i1/FXXXXXXXXXX.jpg\\",\\n \\"ReservePrice\\": \\"158\\",\\n \\"ZkFinalPrice\\": \\"98\\",\\n \\"PriceAfterCoupon\\": \\"90\\",\\n \\"UserType\\": 0,\\n \\"Provcity\\": \\"广东 深圳\\",\\n \\"Nick\\": \\"衣服专卖店\\",\\n \\"SellerId\\": \\"32590610\\",\\n \\"Volume\\": 500,\\n \\"LevelOneCategoryName\\": \\"童装/婴儿装/亲子装\\",\\n \\"CategoryName\\": \\"连衣裙\\",\\n \\"CouponTotalCount\\": \\"100000\\",\\n \\"CouponRemainCount\\": 0,\\n \\"CouponStartTime\\": \\"2021-05-01\\",\\n \\"CouponEndTime\\": \\"2021-06-01\\",\\n \\"CouponStartFee\\": \\"98.000000\\",\\n \\"CouponAmount\\": 5,\\n \\"CouponInfo\\": \\"满98.0元减5.0元\\",\\n \\"CommissionRate\\": \\"180\\",\\n \\"CouponShareUrl\\": \\"//uland.taobao.com/xxxxxxx\\",\\n \\"DeeplinkCouponShareUrl\\": \\"tbopen://m.taobao.com/tbopen/index.html?\\",\\n \\"Url\\": \\"//s.click.taobao.com/t?xxxxxx\\",\\n \\"DeeplinkUrl\\": \\"tbopen://m.taobao.com/tbopen/index.html?\\",\\n \\"ShopTitle\\": \\"xx旗舰店\\",\\n \\"MaxCommission\\": {\\n \\"MaxCommissionRate\\": \\"20.4\\",\\n \\"MaxCommissionClickUrl\\": \\"https://s.click.taobao.com/t?e=xxxx\\",\\n \\"MaxCommissionCouponShareUrl\\": \\"https://uland.taobao.com/coupon/xxxx\\"\\n }\\n },\\n \\"RankScore\\": 0.337\\n }\\n ]\\n },\\n \\"RequestId\\": \\"B3137727-7D6E-488C-BA21-0E034C38A879\\",\\n \\"PicInfo\\": {\\n \\"MainRegion\\": {\\n \\"Region\\": \\"280,486,232,351\\",\\n \\"MultiCategoryId\\": [\\n {\\n \\"CategoryId\\": 88888888,\\n \\"Score\\": 0.34\\n }\\n ]\\n },\\n \\"MultiRegion\\": [\\n {\\n \\"Region\\": \\"280,486,232,351\\"\\n }\\n ]\\n }\\n}","type":"json"}]', ], 'SearchByUrl' => [ 'summary' => 'This topic describes the syntax and provides examples of the SearchByUrl operation, which is used for online calls to the Taobao Affiliate edition.', 'methods' => ['post'], 'schemes' => ['http', 'https'], 'security' => [ [ 'AK' => [], ], ], 'operationType' => 'read', 'deprecated' => false, 'systemTags' => [], 'parameters' => [ [ 'name' => 'PicUrl', 'in' => 'formData', 'schema' => ['description' => 'The image URL. The URL must start with HTTP or HTTPS.', 'type' => 'string', 'required' => true, 'example' => 'https://oss-test.oss-cn-shanghai.aliyuncs.com/xxxx.jpg', 'title' => ''], ], [ 'name' => 'CategoryId', 'in' => 'formData', 'schema' => [ 'description' => 'The image category. For more information, see [Category reference](~~179184~~).'."\n" .'> If you specify a category, the specified category is used. If you do not specify a category, the system predicts the category. You can obtain the predicted category result from the response.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '88888888', 'minimum' => '0', 'enum' => ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '20', '21', '22', '88888888'], 'example' => '88888888', 'title' => '', ], ], [ 'name' => 'Pid', 'in' => 'formData', 'schema' => ['description' => 'The PID. For more information, see [PID](https://help.alimama.com/?spm=a219t.23786078.0.0.290575a55P1LBx#!/search/index?spm=&keyWord=PID&knowledgeId=5625118&categoryId=1000040170).'."\n" .'> This field is available when you use SDK V1.1.0 or later.', 'type' => 'string', 'required' => false, 'example' => 'mm_xxx_xxx_xxx', 'title' => ''], ], [ 'name' => 'UserType', 'in' => 'query', 'schema' => [ 'description' => 'The seller type.'."\n" ."\n" .'- 1: Tmall.'."\n" ."\n" .'- 0: Taobao.', 'type' => 'integer', 'format' => 'int64', 'maximum' => '1', 'minimum' => '0', 'enum' => ['0', '1'], 'required' => false, 'example' => '0', 'title' => '', ], ], [ 'name' => 'Crop', 'in' => 'formData', 'schema' => ['description' => 'Specifies whether to perform subject identification. Default value: true.'."\n" .' - true: The system performs subject identification. We recommend that you use this option.'."\n" .'- false: Subject identification is not performed, and the entire image is used for the search.', 'type' => 'boolean', 'required' => false, 'example' => 'true', 'title' => ''], ], [ 'name' => 'Region', 'in' => 'formData', 'schema' => ['description' => 'The subject region of the image, in the format of `x1,x2,y1,y2`, where `x1,y1` is the upper-left point and `x2,y2` is the lower-right point.'."\n" .'> If you specify Region, the system uses the specified Region for the search regardless of the value of the Crop parameter.', 'type' => 'string', 'required' => false, 'example' => '280,486,232,351', 'title' => ''], ], [ 'name' => 'Start', 'in' => 'formData', 'schema' => ['description' => 'The start position of the returned results. Valid values: 0 to 499. Default value: 0.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '499', 'minimum' => '0', 'default' => '0', 'example' => '0', 'title' => ''], ], [ 'name' => 'Num', 'in' => 'formData', 'schema' => ['description' => 'The number of returned results. Valid values: 1 to 20. Default value: 10.', 'type' => 'integer', 'format' => 'int32', 'required' => false, 'maximum' => '20', 'minimum' => '1', 'default' => '10', 'example' => '10', 'title' => ''], ], [ 'name' => 'Fields', 'in' => 'formData', 'schema' => ['description' => 'The list of fields to return. Separate multiple fields with commas. The PicUrl, ReservePrice, Title, Url, and ZkFinalPrice fields are always returned by default. You can select from the following values: ItemId, Title, PicUrl, ReservePrice, ZkFinalPrice, UserType, Provcity, Nick, SellerId, Volume, LevelOneCategoryName, CategoryName, CouponTotalCount, CouponRemainCount, CouponStartTime, CouponEndTime, CouponStartFee, CouponAmount, CouponInfo, CommissionRate, CouponShareUrl, Url, ShopTitle.', 'type' => 'string', 'required' => false, 'example' => 'Url,UserType', 'title' => ''], ], [ 'name' => 'RelationId', 'in' => 'formData', 'schema' => ['description' => 'The channel ID. This parameter is used to distinguish channels in Taobao Affiliate.', 'type' => 'integer', 'format' => 'int64', 'required' => false, 'example' => '1125526', 'title' => ''], ], ], 'responses' => [ 200 => [ 'schema' => [ 'title' => '', 'description' => 'Schema of Response', 'type' => 'object', 'properties' => [ 'Success' => ['description' => 'Indicates whether the request is successful.', 'type' => 'boolean', 'example' => 'true', 'title' => ''], 'Code' => ['description' => 'The error code.'."\n" ."\n" .'- 0: success.'."\n" ."\n" .'- Non-zero: failure.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], 'Message' => ['description' => 'The error message.', 'type' => 'string', 'example' => 'success', 'title' => ''], 'Data' => [ 'description' => 'The collection of recognition results.', 'type' => 'object', 'properties' => [ 'Auctions' => [ 'description' => 'The recognition results.', 'type' => 'array', 'items' => [ 'description' => 'The query result content.', 'type' => 'object', 'properties' => [ 'Result' => [ 'description' => 'The query result.', 'type' => 'object', 'properties' => [ 'ItemId' => ['description' => 'The product ID.', 'type' => 'string', 'example' => '0gkRpWudf8Qk6G0AqU6NZH2t6-4asdasdaszxczxpz', 'title' => ''], 'Title' => ['description' => 'The product title.', 'type' => 'string', 'example' => 'xxx套装', 'title' => ''], 'ShortTitle' => ['description' => 'The short title of the product. We recommend that you use this field on mobile devices.', 'type' => 'string', 'example' => 'yyy套装', 'title' => ''], 'SubTitle' => ['description' => 'The subtitle of the product.', 'type' => 'string', 'example' => 'xxx套装', 'title' => ''], 'PicUrl' => ['description' => 'The main image URL of the product.', 'type' => 'string', 'example' => '//img.alicdn.com/i1/FXXXXXXXXXX.jpg', 'title' => ''], 'ReservePrice' => ['description' => 'The fixed price, which is usually displayed as the original price with a strikethrough.', 'type' => 'string', 'example' => '158', 'title' => ''], 'ZkFinalPrice' => ['description' => 'The online selling price in CNY. For pre-sale products, the online selling price equals the pre-sale price during the deposit payment period.', 'type' => 'string', 'example' => '98', 'title' => ''], 'PriceAfterCoupon' => ['description' => 'The price after the coupon is applied.', 'type' => 'string', 'example' => '90', 'title' => ''], 'UserType' => ['description' => 'The seller type.'."\n" ."\n" .'- 1: Tmall.'."\n" ."\n" .'- 0: Taobao.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], 'Provcity' => ['description' => 'The location of the product.', 'type' => 'string', 'example' => '广东 深圳', 'title' => ''], 'Nick' => ['description' => 'The nickname of the seller.', 'type' => 'string', 'example' => '衣服专卖店', 'title' => ''], 'SellerId' => ['description' => 'The seller ID.', 'type' => 'string', 'example' => '32590610', 'title' => ''], 'Volume' => ['description' => 'The sales volume in the last 30 days.', 'type' => 'integer', 'format' => 'int32', 'example' => '500', 'title' => ''], 'LevelOneCategoryName' => ['description' => 'The name of the leaf category.', 'type' => 'string', 'example' => '童装/婴儿装/亲子装', 'title' => ''], 'CategoryName' => ['description' => 'The name of the level-1 category.', 'type' => 'string', 'example' => '连衣裙', 'title' => ''], 'CouponTotalCount' => ['description' => 'The total number of coupons.', 'type' => 'string', 'example' => '100000', 'title' => ''], 'CouponRemainCount' => ['description' => 'The number of remaining coupons.', 'type' => 'integer', 'format' => 'int32', 'example' => '0', 'title' => ''], 'CouponStartTime' => ['description' => 'The start time of the coupon.', 'type' => 'string', 'example' => '2021-05-01', 'title' => ''], 'CouponEndTime' => ['description' => 'The end time of the coupon.', 'type' => 'string', 'example' => '2021-06-01', 'title' => ''], 'CouponStartFee' => ['description' => 'The minimum spend required to use the coupon. For example, spend CNY 299 to save CNY 20.', 'type' => 'string', 'example' => '98.000000', 'title' => ''], 'CouponAmount' => ['description' => 'The coupon amount in CNY. For pre-sale products, the coupon can be used for the final payment but not for the deposit.', 'type' => 'integer', 'format' => 'int32', 'example' => '5', 'title' => ''], 'CouponInfo' => ['description' => 'The coupon discount information.', 'type' => 'string', 'example' => '满98.0元减5.0元', 'title' => ''], 'CommissionRate' => ['description' => 'The commission rate. For example, 1550 indicates 15.5%.', 'type' => 'string', 'example' => '180', 'title' => ''], 'CouponShareUrl' => ['description' => 'The combined product and coupon page URL.', 'type' => 'string', 'example' => '//uland.taobao.com/cxxxxxx', 'title' => ''], 'DeeplinkCouponShareUrl' => ['description' => 'The deep link for launching the Taobao mobile app with the coupon.', 'type' => 'string', 'example' => 'tbopen://m.taobao.com/tbopen/index.html?', 'title' => ''], 'Url' => ['description' => 'The product promotion URL.', 'type' => 'string', 'example' => '//s.click.taobao.com/t?xxxxxx', 'title' => ''], 'DeeplinkUrl' => ['description' => 'The deep link for product promotion.', 'type' => 'string', 'example' => 'tbopen://m.taobao.com/tbopen/index.html?', 'title' => ''], 'ShopTitle' => ['description' => 'The shop name.', 'type' => 'string', 'example' => 'xx旗舰店', 'title' => ''], 'MaxCommission' => [ 'description' => 'The high commission information.', 'type' => 'object', 'properties' => [ 'MaxCommissionRate' => ['description' => 'The optimal commission rate. For example, 20.4 indicates a commission rate of 20.4%.', 'type' => 'string', 'example' => '20.4', 'title' => ''], 'MaxCommissionClickUrl' => ['description' => 'The product promotion URL with the optimal commission rate.', 'type' => 'string', 'example' => 'https://s.click.taobao.com/t?e=xxxx', 'title' => ''], 'MaxCommissionCouponShareUrl' => ['description' => 'The combined product and coupon page URL with the optimal commission rate.', 'type' => 'string', 'example' => 'https://s.click.taobao.com/t?e=xxxx', 'title' => ''], ], 'title' => '', 'example' => '', ], ], 'title' => '', 'example' => '', ], 'RankScore' => ['description' => 'The ranking score of product similarity. Valid values: 0 to 1.', 'type' => 'number', 'format' => 'float', 'example' => '0.337', 'title' => ''], ], 'title' => '', 'example' => '', ], 'title' => '', 'example' => '', ], ], 'title' => '', 'example' => '', ], 'RequestId' => ['description' => 'The request ID.', 'type' => 'string', 'example' => 'B3137727-7D6E-488C-BA21-0E034C38A879', 'title' => ''], 'PicInfo' => [ 'description' => 'The information such as category prediction and subject identification results.', 'type' => 'object', 'properties' => [ 'MainRegion' => [ 'description' => 'The multi-category information of the subject.', 'type' => 'object', 'properties' => [ 'Region' => ['description' => 'The subject identification result. The subject region of the image, in the format of x1,x2,y1,y2, where x1,y1 is the upper-left point and x2,y2 is the lower-right point. If you specify the subject region in the request, the specified region is used.', 'type' => 'string', 'example' => '280,486,232,351', 'title' => ''], 'MultiCategoryId' => [ 'description' => 'The collection of category prediction results for the subject prediction region.', 'type' => 'array', 'items' => [ 'description' => 'The category prediction result for the subject prediction region.', 'type' => 'object', 'properties' => [ 'CategoryId' => ['description' => 'The image category. For more information, see [Category reference](~~179184~~).', 'type' => 'integer', 'format' => 'int32', 'example' => '88888888', 'title' => ''], 'Score' => ['description' => 'The predicted category score. Valid values: 0 to 1.', 'type' => 'number', 'format' => 'float', 'example' => '0.34', 'title' => ''], ], 'title' => '', 'example' => '', ], 'title' => '', 'example' => '', ], ], 'title' => '', 'example' => '', ], 'MultiRegion' => [ 'description' => 'The collection of subject identification results.', 'type' => 'array', 'items' => [ 'description' => 'The subject identification result.', 'type' => 'object', 'properties' => [ 'Region' => ['description' => 'The subject identification result. The subject region of the image, in the format of x1,x2,y1,y2, where x1,y1 is the upper-left point and x2,y2 is the lower-right point. If you specify the subject region in the request, the specified region is used.', 'type' => 'string', 'example' => '280,486,232,351', 'title' => ''], ], 'title' => '', 'example' => '', ], 'title' => '', 'example' => '', ], ], 'title' => '', 'example' => '', ], ], 'example' => '', ], ], ], 'errorCodes' => [ 400 => [ ['errorCode' => 'PidNotExist', 'errorMessage' => 'The parameter specified Pid not exist', 'description' => ''], ['errorCode' => 'InvalidPid', 'errorMessage' => 'The parameter Pid no specified', 'description' => ''], ['errorCode' => 'BadRequest', 'errorMessage' => 'The request has invalid parameters.', 'description' => ''], ['errorCode' => 'InstanceStatusError', 'errorMessage' => 'Your instance is unavailable.', 'description' => ''], ['errorCode' => 'TimeoutForTransferImage', 'errorMessage' => 'Timeout after 5 seconds waiting for images transfer to complete.', 'description' => ''], ['errorCode' => 'NoSpecifiedSearchPic', 'errorMessage' => 'The search image is not specified.', 'description' => ''], ['errorCode' => 'InvalidCategory', 'errorMessage' => 'The specified category is invalid.', 'description' => ''], ['errorCode' => 'OverflowMaxResultNum', 'errorMessage' => 'The specified number of total results exceeds the maximum of 500.', 'description' => ''], ['errorCode' => 'OverflowMaxReturnNum', 'errorMessage' => 'The specified number of results for each request exceeds the maximum of 100.', 'description' => ''], ['errorCode' => 'InvalidStartParameter', 'errorMessage' => 'The specified parameter start is inavlid.', 'description' => ''], ['errorCode' => 'InvalidNumParameter', 'errorMessage' => 'The specified parameter num is invalid.', 'description' => ''], ['errorCode' => 'InvalidIntAttr', 'errorMessage' => 'The specified int_attr field is invalid.', 'description' => ''], ['errorCode' => 'UnsupportedPicFormat', 'errorMessage' => 'The specified image format is invalid.', 'description' => ''], ['errorCode' => 'InvalidFilterClause', 'errorMessage' => 'The specified filtering condition is invalid.', 'description' => ''], ['errorCode' => 'IncorrectOrientation', 'errorMessage' => 'The image contains incorrect rotation flags in the meta data.', 'description' => ''], ['errorCode' => 'UnsupportedPicPixels', 'errorMessage' => 'The specified pixels is not supported.', 'description' => ''], ['errorCode' => 'SearchTimeout', 'errorMessage' => 'The request is timed out.', 'description' => ''], ['errorCode' => 'NoSpecifiedPicContent', 'errorMessage' => 'The parameter PicContent no specified.', 'description' => ''], ['errorCode' => 'InvalidCustomContent', 'errorMessage' => 'The specified parameter CustomContent is not valid.', 'description' => ''], ['errorCode' => 'InvalidPicContent', 'errorMessage' => 'The specified parameter PicContent length greater than 4 * 1024 * 1024.', 'description' => ''], ['errorCode' => 'InvalidPicUrl', 'errorMessage' => 'The specified parameter PicUrl is not valid.', 'description' => ''], ['errorCode' => 'NotRegisterBeforeInvoke', 'errorMessage' => 'Need register token: pid before invoke.', 'description' => ''], ], 403 => [ ['errorCode' => 'NoPermission', 'errorMessage' => 'You are not authorized to perform this operation.', 'description' => ''], ['errorCode' => 'DeniedRequest', 'errorMessage' => 'Your request was denied due to instance flow control.', 'description' => ''], ], 500 => [ ['errorCode' => 'UnknownException', 'errorMessage' => 'An internal server error occurred.', 'description' => ''], ['errorCode' => 'NetworkException', 'errorMessage' => 'A network error occurred.', 'description' => ''], ['errorCode' => 'RequestTimeout', 'errorMessage' => '​The request is timeout.', 'description' => ''], ], ], 'title' => 'Search by image URL', 'description' => '## Usage notes'."\n" .'This operation is used for online calls to the Taobao Affiliate edition.'."\n" ."\n" .'## QPS limit'."\n" .'The default QPS limit for query operations is 5.', 'extraInfo' => '## Error codes'."\n" .'For more information, see [Error codes](~~66619~~).', 'changeSet' => [], 'ramActions' => [ [ 'operationType' => '', 'ramAction' => [ 'action' => 'imagesearch:SearchByUrl', 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ ['validationType' => 'always', 'product' => 'ImageSearch', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], ], 'responseDemo' => '[{"errorExample":"","example":"{\\n \\"Success\\": true,\\n \\"Code\\": 0,\\n \\"Message\\": \\"success\\",\\n \\"Data\\": {\\n \\"Auctions\\": [\\n {\\n \\"Result\\": {\\n \\"ItemId\\": \\"0gkRpWudf8Qk6G0AqU6NZH2t6-4asdasdaszxczxpz\\",\\n \\"Title\\": \\"xxx套装\\",\\n \\"ShortTitle\\": \\"yyy套装\\",\\n \\"SubTitle\\": \\"xxx套装\\",\\n \\"PicUrl\\": \\"//img.alicdn.com/i1/FXXXXXXXXXX.jpg\\",\\n \\"ReservePrice\\": \\"158\\",\\n \\"ZkFinalPrice\\": \\"98\\",\\n \\"PriceAfterCoupon\\": \\"90\\",\\n \\"UserType\\": 0,\\n \\"Provcity\\": \\"广东 深圳\\",\\n \\"Nick\\": \\"衣服专卖店\\",\\n \\"SellerId\\": \\"32590610\\",\\n \\"Volume\\": 500,\\n \\"LevelOneCategoryName\\": \\"童装/婴儿装/亲子装\\",\\n \\"CategoryName\\": \\"连衣裙\\",\\n \\"CouponTotalCount\\": \\"100000\\",\\n \\"CouponRemainCount\\": 0,\\n \\"CouponStartTime\\": \\"2021-05-01\\",\\n \\"CouponEndTime\\": \\"2021-06-01\\",\\n \\"CouponStartFee\\": \\"98.000000\\",\\n \\"CouponAmount\\": 5,\\n \\"CouponInfo\\": \\"满98.0元减5.0元\\",\\n \\"CommissionRate\\": \\"180\\",\\n \\"CouponShareUrl\\": \\"//uland.taobao.com/cxxxxxx\\",\\n \\"DeeplinkCouponShareUrl\\": \\"tbopen://m.taobao.com/tbopen/index.html?\\",\\n \\"Url\\": \\"//s.click.taobao.com/t?xxxxxx\\",\\n \\"DeeplinkUrl\\": \\"tbopen://m.taobao.com/tbopen/index.html?\\",\\n \\"ShopTitle\\": \\"xx旗舰店\\",\\n \\"MaxCommission\\": {\\n \\"MaxCommissionRate\\": \\"20.4\\",\\n \\"MaxCommissionClickUrl\\": \\"https://s.click.taobao.com/t?e=xxxx\\",\\n \\"MaxCommissionCouponShareUrl\\": \\"https://s.click.taobao.com/t?e=xxxx\\"\\n }\\n },\\n \\"RankScore\\": 0.337\\n }\\n ]\\n },\\n \\"RequestId\\": \\"B3137727-7D6E-488C-BA21-0E034C38A879\\",\\n \\"PicInfo\\": {\\n \\"MainRegion\\": {\\n \\"Region\\": \\"280,486,232,351\\",\\n \\"MultiCategoryId\\": [\\n {\\n \\"CategoryId\\": 88888888,\\n \\"Score\\": 0.34\\n }\\n ]\\n },\\n \\"MultiRegion\\": [\\n {\\n \\"Region\\": \\"280,486,232,351\\"\\n }\\n ]\\n }\\n}","type":"json"}]', ], ], 'endpoints' => [ ['regionId' => 'ap-northeast-1', 'regionName' => 'Japan (Tokyo)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'imagesearch.ap-northeast-1.aliyuncs.com', 'endpoint' => 'imagesearch.ap-northeast-1.aliyuncs.com', 'vpc' => 'imagesearch-vpc.ap-northeast-1.aliyuncs.com'], ['regionId' => 'ap-southeast-1', 'regionName' => 'Singapore', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'imagesearch.ap-southeast-1.aliyuncs.com', 'endpoint' => 'imagesearch.ap-southeast-1.aliyuncs.com', 'vpc' => 'imagesearch-vpc.ap-southeast-1.aliyuncs.com'], ['regionId' => 'ap-southeast-2', 'regionName' => 'Australia (Sydney) Closed', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'imagesearch.ap-southeast-2.aliyuncs.com', 'endpoint' => 'imagesearch.ap-southeast-2.aliyuncs.com', 'vpc' => 'imagesearch-vpc.ap-southeast-2.aliyuncs.com'], ['regionId' => 'cn-beijing', 'regionName' => 'China (Beijing)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'imagesearch.cn-beijing.aliyuncs.com', 'endpoint' => 'imagesearch.cn-beijing.aliyuncs.com', 'vpc' => 'imagesearch-vpc.cn-beijing.aliyuncs.com'], ['regionId' => 'cn-hangzhou', 'regionName' => 'China (Hangzhou)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'imagesearch.cn-hangzhou.aliyuncs.com', 'endpoint' => 'imagesearch.cn-hangzhou.aliyuncs.com', 'vpc' => 'imagesearch-vpc.cn-hangzhou.aliyuncs.com'], ['regionId' => 'cn-hongkong', 'regionName' => 'China (Hong Kong)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'imagesearch.cn-hongkong.aliyuncs.com', 'endpoint' => 'imagesearch.cn-hongkong.aliyuncs.com', 'vpc' => 'imagesearch-vpc.cn-hongkong.aliyuncs.com'], ['regionId' => 'cn-shanghai', 'regionName' => 'China (Shanghai)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'imagesearch.cn-shanghai.aliyuncs.com', 'endpoint' => 'imagesearch.cn-shanghai.aliyuncs.com', 'vpc' => 'imagesearch-vpc.cn-shanghai.aliyuncs.com'], ['regionId' => 'cn-shenzhen', 'regionName' => 'China (Shenzhen)', 'areaId' => 'asiaPacific', 'areaName' => 'Asia Pacific', 'public' => 'imagesearch.cn-shenzhen.aliyuncs.com', 'endpoint' => 'imagesearch.cn-shenzhen.aliyuncs.com', 'vpc' => 'imagesearch-vpc.cn-shenzhen.aliyuncs.com'], ['regionId' => 'eu-central-1', 'regionName' => 'Germany (Frankfurt)', 'areaId' => 'europeAmerica', 'areaName' => 'Europe & Americas', 'public' => 'imagesearch.eu-central-1.aliyuncs.com', 'endpoint' => 'imagesearch.eu-central-1.aliyuncs.com', 'vpc' => 'imagesearch-vpc.eu-central-1.aliyuncs.com'], ['regionId' => 'ap-south-1', 'regionName' => 'India (Mumbai) Closed', 'areaId' => 'middleEast', 'areaName' => 'Middle East', 'public' => 'imagesearch.ap-south-1.aliyuncs.com', 'endpoint' => 'imagesearch.ap-south-1.aliyuncs.com', 'vpc' => 'imagesearch-vpc.ap-south-1.aliyuncs.com'], ], 'errorCodes' => [ ['code' => 'AccessEngineFailed', 'message' => 'An error occurred while accessing the search engine.', 'http_code' => 400, 'description' => ''], ['code' => 'ConnectionDVException', 'message' => 'Failed to obtain collection.', 'http_code' => 500, 'description' => 'internalError'], ['code' => 'Console.BadRequest', 'message' => 'The request has invalid parameters.', 'http_code' => 400, 'description' => 'Invalid request. Check the request parameters.'], ['code' => 'Console.CallServiceError', 'message' => 'An internal service error occurred.', 'http_code' => 500, 'description' => ''], ['code' => 'Console.InstanceNotFound', 'message' => 'The specified ImageSearch instance is not found.', 'http_code' => 400, 'description' => 'The specified instance ID does not exist. Check the instance ID and try again.'], ['code' => 'Console.InstanceStatusError', 'message' => 'The current instance status does not support this operation.', 'http_code' => 409, 'description' => 'Instance status error, please check the instance status'], ['code' => 'Console.InternalError', 'message' => 'The request processing has failed due to some unknown error.', 'http_code' => 500, 'description' => 'The server has an internal error. Log on to the Alibaba Cloud console to submit a ticket.'], ['code' => 'Console.LoginError', 'message' => 'Check login failed.', 'http_code' => 401, 'description' => 'Login failed, please check whether the user name, password and email address are entered incorrectly.'], ['code' => 'Console.MigrateCapacityError', 'message' => 'Migration instance specification error.', 'http_code' => 400, 'description' => 'The specification of the target instance to be migrated is incorrect. The specification of the target instance must be greater than or equal to the specification of the source instance.'], ['code' => 'Console.MigrateDocNumError', 'message' => 'Migration target instance doc quantity error.', 'http_code' => 400, 'description' => 'The number of docs for the target instance must be 0.'], ['code' => 'Console.MigrateError', 'message' => 'An instance can only have one migration task.', 'http_code' => 400, 'description' => 'An instance can only have one migration task.'], ['code' => 'Console.MigrateExistError', 'message' => 'Only one migration task can exist in an instance.', 'http_code' => 400, 'description' => 'Only one migration task can exist in the current instance.'], ['code' => 'Console.MigrateTypeError', 'message' => 'Migration instance type error.', 'http_code' => 400, 'description' => 'Both instances must be of the same type.'], ['code' => 'Console.ModifyTokenTimesExceed', 'message' => 'You can only modify the token once every day.', 'http_code' => 400, 'description' => ''], ['code' => 'Console.NoPermissionError', 'message' => 'You are not authorized to perform this operation.', 'http_code' => 403, 'description' => ''], ['code' => 'Console.NotAllowedModifyToken', 'message' => 'You are not allowed to modify token today.', 'http_code' => 403, 'description' => ''], ['code' => 'Console.OrderStatusError', 'message' => 'Current Order status not supported this opreate.', 'http_code' => 409, 'description' => 'User order error, please confirm that the order is valid'], ['code' => 'Console.PidDescError', 'message' => 'The maximum character length of this PidDesc parameter is 32.', 'http_code' => 400, 'description' => ''], ['code' => 'Console.PidError', 'message' => 'The number of PID bindings of the current instance exceeds 50.', 'http_code' => 400, 'description' => ''], ['code' => 'Console.TaskAlreadyExist', 'message' => 'A task that is in progress already exists.', 'http_code' => 409, 'description' => ''], ['code' => 'DeniedRequest', 'message' => 'Your request was denied due to instance flow control.', 'http_code' => 403, 'description' => ''], ['code' => 'EmptyMeta', 'message' => 'The body content has an empty meta field.', 'http_code' => 400, 'description' => ''], ['code' => 'ExtractFeatureTimeout', 'message' => 'The request timed out while extracting features.', 'http_code' => 500, 'description' => ''], ['code' => 'IncorrectOrientation', 'message' => 'The image contains incorrect rotation flags in the meta data.', 'http_code' => 400, 'description' => ''], ['code' => 'InstanceOverQuota', 'message' => 'The number of items exceeds the limit.', 'http_code' => 400, 'description' => ''], ['code' => 'InstanceStatusError', 'message' => 'The current instance status does not support this operation.', 'http_code' => 400, 'description' => ''], ['code' => 'InternalOssError', 'message' => 'An internal OAS error occurred.', 'http_code' => 500, 'description' => ''], ['code' => 'InternalSwiftError', 'message' => 'An internal SWIFT error occurred.', 'http_code' => 500, 'description' => ''], ['code' => 'InternalTableStoreError', 'message' => 'An internal Table Store error occurred.', 'http_code' => 500, 'description' => ''], ['code' => 'InvalidCategory', 'message' => 'The specified category is invalid.', 'http_code' => 400, 'description' => ''], ['code' => 'InvalidCategoryId', 'message' => 'The specified CategoryId parameter is invalid.', 'http_code' => 400, 'description' => ''], ['code' => 'InvalidCrop', 'message' => 'The specified Crop parameter is invalid.', 'http_code' => 400, 'description' => ''], ['code' => 'InvalidCustomContent', 'message' => 'The specified CustomContent is invalid.', 'http_code' => 400, 'description' => ''], ['code' => 'InvalidFilterClause', 'message' => 'The specified filtering condition is invalid.', 'http_code' => 400, 'description' => ''], ['code' => 'InvalidInstance', 'message' => 'The specified instance name is invalid.', 'http_code' => 400, 'description' => ''], ['code' => 'InvalidIntAttr', 'message' => 'The specified int_attr field is invalid.', 'http_code' => 400, 'description' => ''], ['code' => 'InvalidIntAttr', 'message' => 'The specified parameter IntAttr is not valid.', 'http_code' => 400, 'description' => 'Invalid IntAttr'], ['code' => 'InvalidIntAttr2', 'message' => 'The specified parameter IntAttr2 is not valid.', 'http_code' => 400, 'description' => 'Invalid IntAttr2'], ['code' => 'InvalidIntAttr3', 'message' => 'The specified parameter IntAttr3 is not valid.', 'http_code' => 400, 'description' => 'Invalid IntAttr3'], ['code' => 'InvalidIntAttr4', 'message' => 'The specified parameter IntAttr4 is not valid.', 'http_code' => 400, 'description' => 'Invalid'], ['code' => 'InvalidMetaItem', 'message' => 'The meta field is invalid.', 'http_code' => 400, 'description' => ''], ['code' => 'InvalidNum', 'message' => 'The specified Num parameter is invalid.', 'http_code' => 400, 'description' => ''], ['code' => 'InvalidNumParameter', 'message' => 'The specified parameter num is invalid.', 'http_code' => 400, 'description' => ''], ['code' => 'InvalidParameterReturnPicFormat', 'message' => 'The specified parameter returnPicFormat is invalid', 'http_code' => 400, 'description' => ''], ['code' => 'InvalidParameterReturnPicType', 'message' => 'The specified parameter returnPicType is invalid', 'http_code' => 400, 'description' => ''], ['code' => 'InvalidParameterTitleIndex', 'message' => 'The specified parameter titleIndex is invalid.', 'http_code' => 400, 'description' => ''], ['code' => 'InvalidPicContent', 'message' => 'The image size exceeds 4 MB.', 'http_code' => 400, 'description' => ''], ['code' => 'InvalidPicList', 'message' => 'The specified pic_list parameter is invalid.', 'http_code' => 400, 'description' => ''], ['code' => 'InvalidPicName', 'message' => 'The specified PicName is invalid.', 'http_code' => 400, 'description' => ''], ['code' => 'InvalidPicUrl', 'message' => 'The specified parameter PicUrl is not valid.', 'http_code' => 400, 'description' => ''], ['code' => 'InvalidPrimaryPicContent', 'message' => 'The specified parameter PrimaryPicContent is not valid.', 'http_code' => 400, 'description' => 'Invalid PrimaryPicContent parameter'], ['code' => 'InvalidProductId', 'message' => 'The specified ProductId is invalid.', 'http_code' => 400, 'description' => ''], ['code' => 'InvalidProductId', 'message' => 'The parameter ProductId no specified.', 'http_code' => 400, 'description' => 'Invalid ProductId'], ['code' => 'InvalidSecondaryPicContent', 'message' => 'The specified parameter SecondaryPicContent is not valid.', 'http_code' => 400, 'description' => 'Invalid SecondaryPicContent parameter'], ['code' => 'InvalidStart', 'message' => 'The specified Start parameter is invalid.', 'http_code' => 400, 'description' => ''], ['code' => 'InvalidStartParameter', 'message' => 'The specified parameter start is invalid.', 'http_code' => 400, 'description' => ''], ['code' => 'InvalidStrAttr', 'message' => 'The specified StrAttr is invalid.', 'http_code' => 400, 'description' => ''], ['code' => 'InvalidStrAttr', 'message' => 'The specified parameter StrAttr is not valid.', 'http_code' => 400, 'description' => 'Invalid StrAttr'], ['code' => 'InvalidStrAttr2', 'message' => 'The specified parameter StrAttr2 is not valid.', 'http_code' => 400, 'description' => 'Invalid'], ['code' => 'InvalidStrAttr3', 'message' => 'The specified parameter StrAttr3 is not valid.', 'http_code' => 400, 'description' => 'Invalid StrAttr3'], ['code' => 'InvalidStrAttr4', 'message' => 'The specified parameter StrAttr4 is not valid.', 'http_code' => 400, 'description' => 'Invalid StrAttr4'], ['code' => 'InvalidText', 'message' => 'The specified parameter Text is not valid.', 'http_code' => 400, 'description' => 'Description Text cannot be null'], ['code' => 'InvalidTextLength', 'message' => 'Invalid text clause.', 'http_code' => 400, 'description' => 'The text field length must be within 512.'], ['code' => 'InvalidType', 'message' => 'The specified Type is invalid.', 'http_code' => 400, 'description' => ''], ['code' => 'InvalidUserType', 'message' => 'The specified UserType parameter is invalid.', 'http_code' => 400, 'description' => ''], ['code' => 'NeedRegisterBeforeInvoke', 'message' => 'Register for PID before invoking the service.', 'http_code' => 400, 'description' => ''], ['code' => 'NetworkException', 'message' => 'A network error occurred.', 'http_code' => 500, 'description' => ''], ['code' => 'NoCaretSeperator', 'message' => 'The body content is missing the ^ separator.', 'http_code' => 400, 'description' => ''], ['code' => 'NoPermission', 'message' => 'You are not authorized to perform this operation.', 'http_code' => 403, 'description' => ''], ['code' => 'NoPicList', 'message' => 'The body content is missing the pic_list parameter.', 'http_code' => 400, 'description' => ''], ['code' => 'NoSpecifiedAddPic', 'message' => 'You must specify an image.', 'http_code' => 400, 'description' => ''], ['code' => 'NoSpecifiedItemId', 'message' => 'You must specify item_id.', 'http_code' => 400, 'description' => ''], ['code' => 'NoSpecifiedPic', 'message' => 'The content of an image is not specified in the HTTP POST body.', 'http_code' => 400, 'description' => ''], ['code' => 'NoSpecifiedPicContent', 'message' => 'You must specify PicContent.', 'http_code' => 400, 'description' => ''], ['code' => 'NoSpecifiedPicName', 'message' => 'You must specify PicName.', 'http_code' => 400, 'description' => ''], ['code' => 'NoSpecifiedProductId', 'message' => 'You must specify ProductId.', 'http_code' => 400, 'description' => ''], ['code' => 'NoSpecifiedSearchPic', 'message' => 'You must specify a search image.', 'http_code' => 400, 'description' => ''], ['code' => 'OverflowMaxResultNum', 'message' => 'The specified number of total results exceeds the maximum of 500.', 'http_code' => 400, 'description' => ''], ['code' => 'OverflowMaxReturnNum', 'message' => 'The specified number of results for each request exceeds the maximum of 100.', 'http_code' => 400, 'description' => ''], ['code' => 'PicNotExist', 'message' => 'The specified image does not exist.', 'http_code' => 400, 'description' => ''], ['code' => 'PictureError', 'message' => '[download] Img Download Failed.', 'http_code' => 500, 'description' => 'Picture download failed, please check the picture'], ['code' => 'PidNotExist', 'message' => 'The specified Pid parameter does not exist.', 'http_code' => 400, 'description' => ''], ['code' => 'RequestTimeout', 'message' => 'The request timed out.', 'http_code' => 500, 'description' => ''], ['code' => 'SearchTimeout', 'message' => 'The request timed out.', 'http_code' => 400, 'description' => ''], ['code' => 'ServerInternalError', 'message' => 'An internal error occurred.', 'http_code' => 500, 'description' => ''], ['code' => 'TimeoutForTransferImage', 'message' => 'Image transfer timed out.', 'http_code' => 400, 'description' => ''], ['code' => 'UnknownException', 'message' => 'An internal server error occurred.', 'http_code' => 500, 'description' => ''], ['code' => 'UnsupportedInstanceType', 'message' => 'The instance type is not supported.', 'http_code' => 500, 'description' => ''], ['code' => 'UnsupportedOperationType', 'message' => 'The specified action is not supported.', 'http_code' => 500, 'description' => ''], ['code' => 'UnsupportedPicCategory', 'message' => 'The picture category is not supported.', 'http_code' => 400, 'description' => ''], ['code' => 'UnsupportedPicFormat', 'message' => 'The specified image format is invalid.', 'http_code' => 400, 'description' => ''], ['code' => 'UnsupportedPicPixels', 'message' => 'The specified pixels is not supported.', 'http_code' => 400, 'description' => ''], ['code' => 'UnsupportedPictureFormat', 'message' => 'The format of the specified picture is not supported.', 'http_code' => 400, 'description' => ''], ['code' => 'UnsupportedInstanceType', 'message' => 'The instance type is not supported.', 'http_code' => 400, 'description' => ''], ['code' => 'UnsupportedOperationType', 'message' => 'The specified action is not supported.', 'http_code' => 400, 'description' => ''], ['code' => 'PictureError', 'message' => '[download] Img Download Failed.', 'http_code' => 400, 'description' => 'Picture download failed, please check the picture'], ['code' => 'Console.OssError', 'message' => 'OSS information error.', 'http_code' => 400, 'description' => 'oss information error'], ], 'changeSet' => [], 'ram' => [ 'productCode' => 'ImageSearch', 'productName' => 'Image Search', 'ramCodes' => ['imagesearch'], 'ramLevel' => 'RESOURCE', 'ramConditions' => [], 'ramActions' => [ [ 'apiName' => 'SearchByPic', 'description' => '', 'operationType' => '', 'ramAction' => [ 'action' => 'imagesearch:SearchByPic', 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ ['validationType' => 'always', 'product' => 'ImageSearch', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], [ 'apiName' => 'SearchByUrl', 'description' => '', 'operationType' => '', 'ramAction' => [ 'action' => 'imagesearch:SearchByUrl', 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ ['validationType' => 'always', 'product' => 'ImageSearch', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], [ 'apiName' => 'GetProductInfoByIds', 'description' => '', 'operationType' => '', 'ramAction' => [ 'action' => 'imagesearch:GetProductInfoByIds', 'authLevel' => 'operate', 'actionConditions' => [], 'resources' => [ ['validationType' => 'always', 'product' => 'ImageSearch', 'resourceType' => 'All Resource', 'arn' => '*'], ], ], ], ], 'resourceTypes' => [], ], ];