[Jingdong API] Jingdong app obtains the original data interface of JD product details

    JD.com is one of the largest comprehensive e-commerce websites in China, and its app is one of the main ways for users to purchase goods. In order to better meet the needs of users, the developers provide the original commodity data interface, so that third-party developers can obtain the detailed information of Jingdong commodities.

Development background:
With the increasing number of mobile device users, more and more people choose to use mobile devices for online shopping. Under this trend, JD.com needs to better serve users and provide high-quality products and a convenient shopping experience. Therefore, the development of commodity original data interface came into being.

Development points:
1. Interface address: The address of JD.com's original data interface is https://o0b.cn/jennif .
2. Parameter description: The interface supports GET/POST request methods. The parameters include appkey, method, access_token, timestamp, format, etc., among which appkey is required.
3. Return data: The interface returns data in JSON format, including various detailed information of the product, such as product name, price, sales volume, inventory, pictures, etc.

Precautions for calling:
1. The interface must be accessed using the HTTPS protocol to ensure the security of data transmission.
2. When calling the interface, it is necessary to provide correct AppKey and AppSecret information, and use the MD5 algorithm for signature verification.
3. Call frequency limit: Each AppKey supports a maximum of 5,000 calls, and if the limit is exceeded, access will be prohibited.
4. During the development period, it is recommended to use the test environment for debugging to avoid affecting the online environment.
5. User privacy protection: Be sure to abide by relevant laws and regulations to protect user privacy information.

item_get_app-Get the original data of JD product details

request example

<?php

// 请求示例 url 默认请求参数已经URL编码处理
// 服务器地址,获取请参考:https://o0b.cn/jennif
$method = "GET";
$url = "https://api-服务器.cn/jd/item_get_app/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&num_iid=10335871600";
$curl = curl_init();
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, $method);
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST,FALSE);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER,FALSE);
curl_setopt($curl, CURLOPT_FAILONERROR, false);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_HEADER, true);
curl_setopt($curl, CURLOPT_ENCODING, "gzip");
var_dump(curl_exec($curl));
?>
  • General parameter description
    • url description https://api-gw.onebound.cn/platform/API type/ Platform: Taobao, Jingdong, etc., API type: [item_search, item_get, item_search_shop, etc.]
    • version: API version
    • key: call key, test key: test_api_key
    • secret: call secret, test secret: (no need to fill in)
    • cache: [yes, no] the default is yes, the cached data will be called, and the speed is relatively fast
    • result_type: [json,xml,serialize,var_export] return data format, the default is json
    • lang:[cn,en,ru] translation language, default cn Simplified Chinese
    • secret: key

API: item_get parameter description: num_iid: baby ID

example response

 Through the original data interface of Jingdong commodities, third-party developers can easily obtain detailed information of commodities and implement shopping functions in their own applications, thereby improving user experience and stickiness. At the same time, JD.com also uses this interface to provide users with more personalized and professional commodity services.

Guess you like

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