Taobao API interface: keyword search product list data interface
——On the road of growth, we are all fellow travelers. I hope this article about the Taobao product list information interface for product selection can help you. I look forward to sharing more e-commerce knowledge with you, please remember to follow Taobaoapi2014.
The following is the relevant information of Taobao keyword search product list data interface:
Basic usage steps:
Register and log in to Taobao Open Platform: You need to register as a developer on Taobao Open Platform and create an application to obtain API call permissions.
Get necessary information: Get the application's appkey (application key) and appsecret (the password corresponding to the application key), as well as accesstoken (access token used to verify identity and authorize access).
Call interface: Use the appropriate API request method (such as HTTP GET or HTTP POST) to call the product search interface. The interface path is generally https://eco.taobao.com/router/rest, but the specific path may change depending on the update of Taobao Open Platform.
Request parameters:
Keyword: This is a required parameter used to specify the keyword content of the search. The keyword is used to search the product list and return the products containing the specified keyword.
Page number (page_num or page): Specify the page number of the product list to be queried. The default is 1. If there are many products and pagination is required, you can modify this parameter to obtain data from different pages.
Number per page (page_size): specifies the number of products returned per page, the maximum value is generally 20 (may be adjusted in different periods). This parameter is used to control the number of results returned so that the appropriate amount of data can be obtained according to the needs.
Sorting method (sort): You can sort the products according to certain rules. Common values are 1 - comprehensive sorting, 2 - new product sorting, 3 - sales from high to low, 4 - sales from low to high, 5 - price from high to low, 6 - price from low to high, 7 - credit from high to low, 8 - credit from low to high (default is 1).
Minimum price (start_price) and maximum price (end_price): used to specify the price range of the returned products, used in pairs with the upper and lower limits of the price. You can filter out products that meet the price range according to your needs.
Filter conditions (filters): You can fill in multiple items, separated by commas. For example, 1 - Free shipping, 2 - Tmall, 3 - Global shopping, 4 - Consumer protection, 5 - Mobile exclusive, 6 - Taobao coins, 7 - Cash on delivery, 8-7 days return, 9 - Promotion, etc., you can filter products according to these conditions.
Location (loc): Fill in the province or city name, which can be used to filter out products in a specific area.
Return results:
total_results: Indicates the total number of products that meet the search conditions.
items: A specific list of products, including detailed information for each product, such as product item_id (product id), title (title), price (price), pic_url (product picture url), shop_title (store name), sales (sales), favorite_count (number of favorites), etc.
It should be noted that signature verification is required to call the Taobao Open Platform interface to ensure the security and legitimacy of the request. In addition, Taobao's API may be adjusted and updated according to business needs and platform policies, so when using it, you should pay attention to the official documentation of the Taobao Open Platform to obtain the latest information.