Taobao API interface: Taobao product details data interface

Interface Overview
Common interface: taobao.item_get, used to obtain product details data.
Return information: You can obtain a lot of information about the product, such as product name, price, sales, evaluation, store information, etc. Specifically including product ID, title, description, price, inventory, sales, main picture, detail page picture, brand, specification, place of shipment, express delivery fee, etc.

——On the road of growth, we are all fellow travelers. I hope this article about the Taobao product details information interface for product selection can help you. I look forward to sharing more e-commerce knowledge with you, please remember to follow Taobaoapi2014.

How to use the interface
1. Register and apply for permissions
You need to register an account on the Taobao open platform and apply for corresponding API permissions, which usually involves submitting company information, development plans, etc., and waiting for review.
2. Determine interface parameters
Required parameters:
num_iid: Taobao product ID, used to uniquely identify the product, obtained through product links or other methods.
is_promotion: Whether to obtain the promotional price, a Boolean value, you can decide whether to pass this parameter according to your needs.
Other optional public parameters (part):
key: Call key, must be spliced ​​in the URL in get mode.
secret: Call key.
api_name: API interface name (such as item_search, item_get, item_search_shop, etc.).
cache: whether to call cached data (yes or no, default is yes, faster).
result_type: return data format, default is json, the content output by jsonu can be read directly in Chinese.
lang: translation language, default is cn simplified Chinese.
version: api version.
3. Call example (using Python as an example)
The following is a sample code for calling Taobao product details data interface using Python's requests library. Please note that the apikey and apisecret in the code need to be replaced with the actual values ​​you applied for:

import requests # Request example url, the default request parameters have been url encoded url = "https://api-wx.taobaoapi2014.cn/taobao/item_get/?key=<your own apikey>&secret=<your own apisecret>&num_iid=商品ID&is_promotion=1" headers = { "accept-encoding": "gzip", "connection": "close" } if __name__ == "__main__": r = requests.get(url, headers=headers) json_obj = r.json() print(json_obj)

Notes

This API currently supports the following basic interfaces:

item_get Get Taobao product details
item_get_pro Get Taobao product details advanced version
item_review Get Taobao product reviews
item_fee Get Taobao product courier fees
item_password Get Taobao password real URL
item_list_updown Get Taobao product launch and launch time in batches
seller_info Get Taobao store details
item_search Search Taobao products by keyword
item_search_tmall Search Tmall products by keyword
item_search_pro Advanced keyword search Taobao products
item_search_img Search Taobao products by image (Pai Li Tao)
item_search_shop Get all products in the store
item_search_seller Search store list
item_search_guang Love shopping
item_search_suggest Get search term recommendations
item_search_jupage Daily specials
item_search_coupon Coupon query
cat_get Get Taobao category details
item_cat_get Get Taobao product categories
item_search_samestyle Search for the same product
item_search_similar Search for similar products
item_sku Get sku details
item_recommend Get a list of recommended products
brand_cat Get a list of brand categories
brand_cat_top Get a list of recommended brands by category
brand_cat_list Get a list of brands in a specified category
brand_keyword_list Get a list of brands with a specified keyword
brand_info Get brand-related information
brand_product_list Get products of a specified brand
custom Custom API operations
buyer_cart_add Add to cart
buyer_cart_remove Delete cart items
buyer_cart_clear Clear cart
buyer_cart_list Get a list of cart items
buyer_cart_order Save cart items as orders
buyer_order_list Get a list of purchased orders
buyer_order_detail Get purchased order details
buyer_order_express Get the logistics of the purchased goods order
buyer_order_message Get the buyer's message for the purchased order
buyer_address_list List of delivery addresses
buyer_address_clear Clear the delivery address
buyer_address_remove Delete the delivery address
buyer_address_modify Modify the delivery address
buyer_address_add Add a delivery address
buyer_info Buyer information
buyer_token Buyer token
seller_order_list Get the list of sold goods orders
seller_order_detail Get the details of the sold goods order
seller_order_close The seller closes a transaction
seller_order_message Get or modify the notes of the sold order
seller_auction_list List of goods that can be put on and off the shelves
seller_auction Put goods on and off the shelves
seller_item_add Upload goods
upload_img Upload pictures to Taobao
img2text Picture recognition product interface
tbk_order_query Taobao customer order query
item_list_weight Batch obtain product information
item_history_price Get product history price information
item_get_app Get Taobao app product details original data

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值