Java "hands in hand" JD product details data, JD product details interface, JD API interface application guide

The JD product details API is an application programming interface provided by the JD platform to developers. Through the API, product details on the JD platform can be obtained.

JD.com’s product details API can obtain product title, price, sales volume, reviews, details page and other information. After developers register a developer account on the JD Open Platform and obtain the key to access the API interface, they can call the product details on the JD e-commerce platform through the API interface and display it on the website or application.

Collection scene

Enter a keyword search on the Taobao homepage (taobao.com), collect the product list page data obtained after the search, and then click in to get the product details page data. The keyword in the example is [mobile phone], which can be changed according to needs. It also supports automatic batch input of multiple keywords. Click one of the products again to enter the product details page. 

Collection field

Collection fields include keyword text value, product title, store name, product price, discount price, number of payers, sales volume, product link, store name, brand, shipping location, inventory, sku specifications, sku attributes, detailed description, etc.

Code display

JD.item_get-Get JD 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 is shown)
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 APISDK file)

2. Request Example

 

3. Response example

 

The JD platform open platform API interface provides interface services through the HTTP protocol. Merchants can obtain information such as product details of the entire site through this interface to facilitate the management of products and stores. When calling this API, you need to apply for the App Key and obtain the Token first, and then make the call through the API URL address. This article provides a detailed analysis from the request process to parameter description. I believe readers have a more in-depth and comprehensive understanding of the API.

Guess you like

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