Request structure

Updated at:

The Image Recognition service accepts HTTP and HTTPS requests. Request parameters must be included in the URL. Both requests and responses are encoded using the UTF-8 character set.

The following example shows an unencoded URL request:
https://imagerecog.cn-shanghai.aliyuncs.com/?Action=DetectImageElements&<Common request parameters>
  • https: The communication protocol for the request.
  • imagerecog.cn-shanghai.aliyuncs.com: The endpoint of the Image Recognition service.
  • cn-shanghai: The region ID. For a list of supported regions and their endpoints, see Endpoints.
  • Action=DetectImageElements: The API operation to invoke.
  • <Common request parameters>: The common request parameters required for all API operations. For more information, see Common request parameters.