E-commerce API sharing: Get the historical price of Taobao commodity API call example parameter description

   

In online shopping, Taobao is believed to be one of the preferred platforms for many people, and for a cautious shopper, price changes are very important. Therefore, obtaining the historical prices of Taobao commodities can help shoppers make better decisions and realize rational consumption. Obtaining the historical price of Taobao commodities can mainly help us to do the following:

1. Judging the strength of the discount: Taobao often adjusts the price according to different promotional activities. By obtaining the historical price of the product, we can understand the price before and after each promotion, analyze whether the discount is large enough, and then decide whether it is worth buying.

2. Determine commodity price fluctuations: Commodity price fluctuations are a common phenomenon. Obtaining historical commodity prices can help us draw a price curve and understand recent commodity price fluctuations, so as to determine the best time to buy.

3. Find the right price: Through the historical price of the commodity, we can find the highest point, the lowest point and the average price of the historical price, and have a good grasp of the market value of the commodity, making it easier to find a price range that suits us.

4. Identify false promotional activities: Sometimes merchants will use some false promotional activities to attract shoppers’ attention. Through the historical price of the product, we can find out whether the product has false promotional activities, so as to avoid being deceived by the merchant.

5. Compare prices of similar products of the same brand: Many brands on TAO Bao have a wide variety of products, and the prices of different categories of products under the same brand may also vary greatly. Obtaining historical prices can help you understand the pricing range of the brand, so as to better evaluate the current price Is it reasonable.

Through TAO Bao API, the historical price of the product can be obtained through the product ID.

item_history_price - Get the historical price information of the item 

request parameters

Request parameter: num_iid=584458528092

Parameter description: num_iid: commodity id

response parameters

Version: Date:

name type must example value describe

num_id

Bigint 0 Baby ID

title

String 0 product title

detail_url

String 0 baby link

pic_url

String 0 baby pictures

lower_price

Float 0 39.00 lowest price

lower_date

String 0 2020-12-22 lowest price date

current_price

Float 0 39.00 current price

change_price_remark

String 0

item

Mix 0 {"date": "2020-06-25", "price": "39.00", "discount": "",} price information

example response

"items": {
		"num_iid": "698291711589",
		"detail_url": "https://item.taobao.com/item.htm?id=698291711589",
		"item": [
			{
				"price": "459.08",
				"data": "2023-05-02 00:00:00",
				"discount": ""
			},
			{
				"price": "459.08",
				"data": "2023-05-03 00:00:00",
				"discount": ""
			},
			{
				"price": "459.08",
				"data": "2023-05-04 00:00:00",
				"discount": ""
			},
			{
				"price": "459.08",
				"data": "2023-05-05 00:00:00",
				"discount": ""
			},
			{
				"price": "439.12",
				"data": "2023-05-06 00:00:00",
				"discount": ""
			},
			{
				"price": "469.06",
				"data": "2023-05-07 00:00:00",
				"discount": ""
			},
			{
				"price": "459.08",
				"data": "2023-05-08 00:00:00",
				"discount": ""
			},
			{
				"price": "439.12",
				"data": "2023-05-09 00:00:00",
				"discount": ""
			},
			{
				"price": "469.06",
				"data": "2023-05-10 00:00:00",
				"discount": ""
			},
			{
				"price": "469.06",
				"data": "2023-05-11 00:00:00",
				"discount": ""
			},
			{
				"price": "459.08",
				"data": "2023-05-12 00:00:00",
				"discount": ""
			},
			{
				"price": "459.08",
				"data": "2023-05-13 00:00:00",
				"discount": ""
			},
			{
				"price": "459.08",
				"data": "2023-05-14 00:00:00",
				"discount": ""
			},
			{
				"price": "474.05",
				"data": "2023-05-15 00:00:00",
				"discount": ""
			},
			{
				"price": "474.05",
				"data": "2023-05-16 00:00:00",
				"discount": ""
			},
			{
				"price": "499.0",
				"data": "2023-05-17 00:00:00",
				"discount": ""
			},
			{
				"price": "469.06",
				"data": "2023-05-18 00:00:00",
				"discount": ""
			},
			{
				"price": "469.06",
				"data": "2023-05-19 00:00:00",
				"discount": ""
			},
			{
				"price": "469.06",
				"data": "2023-05-20 00:00:00",
				"discount": ""
			},
			{
				"price": "479.04",
				"data": "2023-05-21 00:00:00",
				"discount": ""
			},
			{
				"price": "499.0",
				"data": "2023-05-22 00:00:00",
				"discount": ""
			},
			{
				"price": "469.06",
				"data": "2023-05-23 00:00:00",
				"discount": ""
			},
			{
				"price": "469.06",
				"data": "2023-05-24 00:00:00",
				"discount": ""
			},
			{
				"price": "459.08",
				"data": "2023-05-25 00:00:00",
				"discount": ""
			},
			{
				"price": "479.04",
				"data": "2023-05-26 00:00:00",
				"discount": ""
			},
			{
				"price": "479.04",
				"data": "2023-05-28 00:00:00",
				"discount": ""
			},
			{
				"price": "499.0",
				"data": "2023-05-29 00:00:00",
				"discount": ""
			},
			{
				"price": "499.0",
				"data": "2023-05-30 00:00:00",
				"discount": ""
			},
			{
				"price": "469.06",
				"data": "2023-05-31 00:00:00",
				"discount": ""
			}
		],
		"_ddf": "cdy"
	},

Guess you like

Origin blog.csdn.net/Jernnifer_mao/article/details/130981865