English
Product Documentation1688 APITaobao/Tmall API
Product Documentation1688 APITaobao/Tmall API
中文
  1. 1688 Product Search
  • 1688 Solution Introduction
  • 1688 Product Search
    • Image upload By Get
      GET
    • Image upload By Post
      POST
    • Image search
      GET
    • keyword search
      GET
    • Product details search
      GET
  • 1688 Order Manage
    • Preview order
      POST
    • Create order
      POST
    • Cancel order
      POST
    • View order details
      POST
    • Buyer confirms receipt
      POST
  • 1688 Oder Pay
    • Get payment links for orders in batches
      GET
    • Initiate password-free payment
      POST
  • 1688 Message Service
    • 1688 Message Service
  1. 1688 Product Search

Image upload By Post

POST
/alibaba/upload/image
Image upload interface, obtain imageId for subsequent image search interface, production environment request address: https://openapi.dajisaas.com/alibaba/upload/image

Request

Query Params
appKey
string 
required
DAJI AppKey
appSecret
string 
optional
appSecret (For Testing Only) – Use the sign signature in production environments.
sign
string 
optional
Signature: Sort the request parameters in dictionary order and append the appSecret key. This field can be omitted during testing.
pic_url
string 
optional
Provide the complete image URL. This parameter is mutually exclusive with image_base64; if both are provided, image_base64 takes precedence.
Example:
https://img.alicdn.com/bao/uploaded/i3/684174095/O1CN019WLF1n1g7YYWtonEu_!!0-item_pic.jpg
image_base64
string 
optional
The Base64-encoded image must be in JPG (.jpg/.jpeg), PNG (.png), or WEBP (.webp) format, and its size must not exceed 3MB.

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://openapi.dajisaas.com/alibaba/upload/image?appKey=&appSecret=&sign=&pic_url=https://img.alicdn.com/bao/uploaded/i3/684174095/O1CN019WLF1n1g7YYWtonEu_!!0-item_pic.jpg&image_base64='

Responses

🟢200成功
application/json
Body
code
integer 
required
返回码
message
string 
required
消息
data
object 
required
业务数据
imageId
string 
required
图片ID
timestamp
integer 
required
时间戳
traceId
string 
required
traceId
Example
{
  "code": 200,
  "message": "操作成功",
  "data": {
    "imageId": "1164408192156408878"
  },
  "timestamp": 1724224057972,
  "traceId": "6b9849c1a5b0"
}
🟠404记录不存在
🟠400参数不正确
Previous
Image upload By Get
Next
Image search
Built with