Tmall product details data interface is used for stocking

Tmall product details data interface can be used to load goods. The specific operation steps are as follows:

  1. Apply for an application on Taobao open platform and obtain App Key and App Secret.
  2. Use the Taobao customer product details query interface (taobao.tbk.item.info.get) of the Taobao open platform to pass in the product ID to query product details.
  3. For Tmall products, App Key and App Secret need to be used for authentication.
  4. Organize the obtained product details data into the format required by the mini program mall.
  5. Upload the organized product details data to the mini program mall.
  6. Log in to the mini program mall backend, create a product, and fill in the corresponding product information, such as name, price, pictures, description, etc.
  7. According to needs, select appropriate categories and labels to classify and label products.
  8. After uploading the products, they can be displayed and sold in the mini program mall.

Tmall product details data interface code is as follows:

taobao.item_get-Get Tmall product details data return value description

1.Public parameters

name type must describe
key String yes Call key (must be spliced ​​into the URL in GET mode, demo example)
secret String yes call key
api_name String yes API interface name (included in the request address) [item_search, item_get, item_search_shop, etc.]
cache String no [yes,no] The default is yes, which will call cached data and is faster.
result_type String no [json,jsonu,xml,serialize,var_export] returns the data format, the default is json, the content output by jsonu can be read directly in Chinese
lang String no [cn,en,ru] translation language, default cn simplified Chinese
version String no API version (copy Wei: Taobaoapi2014 to get the API SDK file)

2. Request Example

 

3. Response example

 

The purpose of the Tmall product details data interface for listing is to obtain detailed information about the product, such as product name, price, picture, description, inventory, etc., and then you can purchase the product in your own application based on the obtained product information. and ordering functions, or display product information on your own website or application for sales and promotion.

Specific steps are as follows:

  1. Click Register to obtain the request key and secret address.
  2. Request parameters, including sku_id (SKU ID), num_iid (product ID), is_promotion (whether to obtain the promotional price) and other parameters.
  3. Request code examples support high concurrent requests and can be requested using programming languages ​​such as CURL, PHP, PHPsdk, Java, C#, and Python.
  4. Response example, obtain the interface response data of product information.

Guess you like

Origin blog.csdn.net/weixin_44591885/article/details/133380051