Yiwugou platform product details data collection interface document

Yiwugo (yiwugo.com) platform whole site product details data package yiwugo.item_get-Yiwugo product details interface, the interface can collect parameters: product title, product price, product preferential price, product coupons, promotional information, product pictures, Product sales, product sku attributes, product descriptions, product inventory, store ID, product attribute pictures and other data on the page can be collected. The packaging code is introduced below:

1. Request method: HTTP GET POST

2. Public parameters:

name type must describe
key String yes Call key (must be spliced ​​in the URL in GET mode)
secret String yes Call key (copy v: Taobaoapi2014)
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, the cached data will be called, and the speed is relatively fast
result_type String no [json,jsonu,xml,serialize,var_export] returns the data format, the default is json, and 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

3. Request parameters:

Request parameter: num_iid=931405691

Parameter description: num_iid: Product ID

 4. Request code examples, support high concurrent requests (CURL, PHP, PHPsdk, Java, C#, Python...)

# coding:utf-8
"""
Compatible for python2.x and python3.x
requirement: pip install requests
"""
from __future__ import print_function
import requests
# 请求示例 url 默认请求参数已经做URL编码
url = "https://api-vx.taobaoapi2014.cn/yiwugo/item_get/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&num_iid=931405691"
headers = {
    "Accept-Encoding": "gzip",
    "Connection": "close"
}
if __name__ == "__main__":
    r = requests.get(url, headers=headers)
    json_obj = r.json()
    print(json_obj)

5. Due to the character limit of the article, the response example will not be displayed for the time being. Code exchanges are welcome.

Guess you like

Origin blog.csdn.net/tbprice/article/details/130131253