1. Product Related
Shanjing Ecommerce Api
🇺🇸 English
  • latest
  • 🇺🇸 English
  • Access Guide
    • Platform Overview
    • Become a Developer
  • Taobao & Tmall API
    • Authentication
      • Obtain Token
      • Refresh Token
    • Product Related
      • Taobao/Tmall Product Details API
        GET
      • Taobao/Tmall Product Keyword Search Interface
        GET
      • Taobao/Tmall Image Search for Similar Products Interface
        GET
      • Upload image to Taobao/Tmall for product search
        POST
    • Order Related
      • Taobao/Tmall Collision Database Interface
      • Taobao/Tmall Pre-create Order Interface
      • Taobao/Tmall Order Cancellation Interface
      • Taobao/Tmall Official Order Creation Interface
      • Taobao/Tmall Order Query Interface
  1. Product Related

Upload image to Taobao/Tmall for product search

POST
/rest/taobao-global/upload/image
Please submit image_base64 via POST method to get imageId for subsequent image search interfaces. The Base64 encoding must be the image file encoding of jpg, jpeg, png, webp formats, with a size limit of 3MB.

Request

Authorization
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or
Header Params

Body Params multipart/form-data

Request Code 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 'https://ecommerce-api.shanjing-inc.com/rest/taobao-global/upload/image' \
--header 'x-app-key;' \
--header 'x-timestrap;' \
--header 'x-sign-method;' \
--header 'x-signature;' \
--header 'x-access-token;' \
--header 'Authorization: Bearer <token>' \
--form 'image_base64="图片Base64串";type=false'

Responses

🟢200Success
application/json
Bodyapplication/json

Example
{
    "errorCode": "string",
    "errorMsg": "string",
    "data": {
        "imageId": "string"
    }
}
🟢200Failed
Modified at 2026-03-14 06:46:03
Previous
Taobao/Tmall Image Search for Similar Products Interface
Next
Taobao/Tmall Collision Database Interface
Built with