当前位置:网站首页>The new interface, jingdong comment interface
The new interface, jingdong comment interface
2022-08-03 12:24:00 【cat sharing dry goods】
注册获取专属于你的key和secret
一、获取相关参数
请求地址: https://api-gw.onebound.cn/jd/item_review
| 名称 | 类型 | 必须 | 描述 |
|---|---|---|---|
| key | String | 是 | 调用key(必须以GET方式拼接在URL中) |
| secret | String | 是 | 调用密钥 |
| api_name | String | 是 | API接口名称(包括在请求地址中)[item_search,item_get,item_search_shop等] |
| cache | String | 否 | [yes,no]默认yes,将调用缓存的数据,速度比较快 |
| result_type | String | 否 | [json,jsonu,xml,serialize,var_export]返回数据格式,默认为json,jsonu输出的内容中文可以直接阅读 |
| lang | String | 否 | [cn,en,ru]翻译语言,默认cn简体中文 |
| version | String | 否 | API版本 |
请求参数
请求参数:num_iid=30646311745&page=1
参数说明:item_id:商品ID
page:页数
二、示例
请求示例
//using System.Net.Security;
//using System.Security.Cryptography.X509Certificates;
private const String method = "GET";
static void Main(string[] args)
{
String bodys = "";
// 请求示例 url 默认请求参数已经做URL编码
String url = "https://api-gw.onebound.cn/jd/item_review/?key=<您自己的apiKey>&secret=<您自己的apiSecret>&num_iid=71619129750&page=1";
HttpWebRequest httpRequest = null;
HttpWebResponse httpResponse = null;
if (url.Contains("https://"))
{
ServicePointManager.ServerCertificateValidationCallback = new RemoteCertificateValidationCallback(CheckValidationResult);
httpRequest = (HttpWebRequest)WebRequest.CreateDefault(new Uri(url));
}
else
{
httpRequest = (HttpWebRequest)WebRequest.Create(url);
}
httpRequest.Method = method;
if (0 < bodys.Length)
{
byte[] data = Encoding.UTF8.GetBytes(bodys);
using (Stream stream = httpRequest.GetRequestStream())
{
stream.Write(data, 0, data.Length);
}
}
try
{
httpResponse = (HttpWebResponse)httpRequest.GetResponse();
}
catch (WebException ex)
{
httpResponse = (HttpWebResponse)ex.Response;
}
Console.WriteLine(httpResponse.StatusCode);
Console.WriteLine(httpResponse.Method);
Console.WriteLine(httpResponse.Headers);
Stream st = httpResponse.GetResponseStream();
StreamReader reader = new StreamReader(st, Encoding.GetEncoding("utf-8"));
Console.WriteLine(reader.ReadToEnd());
Console.WriteLine("\n");
}
public static bool CheckValidationResult(object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors errors)
{
return true;
}响应示例
{
"items": {
"totalpage": "100",
"total_results": "0",
"page_size": 10,
"page": "1",
"item": [
{
"rate_content": "包装保护:The packaging is very good\\n画面品质:Picture quality is good,Playing games with high frame rates is no problem\\n游戏效果:The game works very well,It can be used for daily gaming or office work\\n外形外观:我入手的是y7000,外观大气,The overall evaluation is very good",
"rate_date": "2022-04-07 12:24:37",
"pics": [
"//img30.360buyimg.com/n0/s128x96_jfs/t1/198814/16/22245/78957/624e6781E1b4b70e0/18c7910a3b3ee773.jpg",
"//img30.360buyimg.com/n0/s128x96_jfs/t1/167897/25/22034/97612/624e6782Eb92a0526/9d04ab9eab867f02.jpg",
"//img30.360buyimg.com/n0/s128x96_jfs/t1/193027/5/22455/134359/624e6783Ef2ee42e8/aba70f7924a3ea37.jpg",
"//img30.360buyimg.com/n0/s128x96_jfs/t1/196947/27/21637/166180/624e6784E782b0841/8fde311e8acb326c.jpg",
"//img30.360buyimg.com/n0/s128x96_jfs/t1/204431/19/20594/155409/624e6785E9ee65f8a/e3ab8df8852f49cf.jpg"
],
"display_user_nick": "不***下",
"auction_sku": "升配【i5-11400H 16G内存 512固态】",
"add_feedback": ""
},
{
"rate_content": "A cool computer,Bought for my brother,He went to school to draw pictures,非常喜欢.This computer is very affordable,运行很快,Should last a few more years!A computer I've been staring at for a long time,屏幕很大.",
"rate_date": "2021-11-01 08:39:17",
"pics": [
"//img30.360buyimg.com/n0/s128x96_jfs/t1/212131/18/2729/10568/617f3732Edfdf3f3a/6d5a266ea4c83271.jpg",
"//img30.360buyimg.com/n0/s128x96_jfs/t1/25135/2/22185/135056/617f3732Ed12e6ce3/cd0e3041bd51bc1b.jpg",
"//img30.360buyimg.com/n0/s128x96_jfs/t1/171224/13/22540/115259/617f3733E2a526557/34b3315010f51527.jpg",
"//img30.360buyimg.com/n0/s128x96_jfs/t1/170386/12/22387/124501/617f3733E95b0d542/c2df35d24864809f.jpg",
"//img30.360buyimg.com/n0/s128x96_jfs/t1/201727/13/13786/159079/617f3734Ef3450f96/28d6ea8741853268.jpg"
],
"display_user_nick": "T***y",
"auction_sku": "标配【i5-11400H 16G内存 512固态】",
"add_feedback": ""
},
{
"rate_content": "Received the goods,挺激动的,The computer feels very good,First of all, it looks good,Turn on or voice reminder,非常方便实用,Playing games is also very smooth,The speed is also very fast,Overall a good five star rating",
"rate_date": "2021-10-09 12:04:16",
"pics": [
"//img30.360buyimg.com/n0/s128x96_jfs/t1/210554/2/4271/175717/616114bdE4f93e549/604d792c899c03ea.jpg",
"//img30.360buyimg.com/n0/s128x96_jfs/t1/205143/4/10164/160633/616114beE93db76ef/1ffd331d60fed988.jpg",
"//img30.360buyimg.com/n0/s128x96_jfs/t1/205372/31/10259/55789/616114beE76c763dc/8959468804a42387.jpg",
"//img30.360buyimg.com/n0/s128x96_jfs/t1/108865/37/19041/196556/616114bfE694b93a5/d3629ea8d092a4c2.jpg",
"//img30.360buyimg.com/n0/s128x96_jfs/t1/201453/32/10708/40713/616114bfE0b53499e/adeff5f3af601672.jpg"
],
"display_user_nick": "****5",
"auction_sku": "定制【i5-11400H 8G内存 512G固态】",
"add_feedback": ""
},
{
"rate_content": "Lovely notebook!大气、有质感!性能超强!The screen resolution is very comfortable!Colors are real,Eyes are not tired!妥妥的100分!???",
"rate_date": "2021-11-07 23:13:03",
"pics": [
"//img30.360buyimg.com/n0/s128x96_jfs/t1/205775/20/14439/484273/6187ecfdE16205fcd/68fad1f3533edce3.jpg",
"//img30.360buyimg.com/n0/s128x96_jfs/t1/213620/28/3502/274629/6187ecfdE998c85a0/c0269c99d806a10c.jpg",
"//img30.360buyimg.com/n0/s128x96_jfs/t1/118278/8/21881/323769/6187ecfdEba611373/c4754fe9f2982479.jpg",
"//img30.360buyimg.com/n0/s128x96_jfs/t1/197885/32/16374/378187/6187ecfdEdf6b04cd/339708194569e8bd.jpg",
"//img30.360buyimg.com/n0/s128x96_jfs/t1/205770/25/14450/357376/6187ecfdE5d7d4e92/1e532541919ea5a3.jpg"
],
"display_user_nick": "****u",
"auction_sku": "标配【i5-11400H 16G内存 512固态】",
"add_feedback": ""
},
{
"rate_content": "Bought genuine,很nice,The quality control of this store is very stable,If you want to buy, you can place an order now,The screen has an eye protection mode,Lenovo Game Mode,Performance adjustment in three gears,The fan is silent,颜值极高,接口多",
"rate_date": "2021-10-27 17:36:25",
"pics": [
"//img30.360buyimg.com/n0/s128x96_jfs/t1/212124/14/2155/121855/61791d97E2b0b1297/6ba00b21336d04c1.jpg",
"//img30.360buyimg.com/n0/s128x96_jfs/t1/213868/25/2102/188933/61791d97E69eb0920/f8d8c95491d16077.jpg",
"//img30.360buyimg.com/n0/s128x96_jfs/t1/114947/13/28503/56632/61791d98E3c8afabb/211371fabef37120.jpg",
"//img30.360buyimg.com/n0/s128x96_jfs/t1/211543/1/6926/60209/61791d98E25dd731e/22858797bb3412f8.jpg",
"//img30.360buyimg.com/n0/s128x96_jfs/t1/221517/40/271/47035/61791d99E2cd619b1/4b8075e96df15416.jpg"
],
"display_user_nick": "****a",
"auction_sku": "标配【i5-11400H 16G内存 512固态】",
"add_feedback": ""
},
{
"rate_content": "I looked at a lot of laptops,In the end, the savior was choseny7000,重量不重,Screen quality is good,运行流畅,Running design drawing software is no problem,颜值也不错!",
"rate_date": "2022-04-20 10:18:40",
"pics": [
"//img30.360buyimg.com/n0/s128x96_jfs/t1/109474/20/29634/25163/625f6d7aE519f5fb4/863eeab8b0d024ec.jpg",
"//img30.360buyimg.com/n0/s128x96_jfs/t1/128737/25/28423/64377/625f6d7bE9277fd7c/06d4834143322aaf.jpg",
"//img30.360buyimg.com/n0/s128x96_jfs/t1/94574/26/19461/73108/625f6d7dE943a2d33/87bc0432b736c0b1.jpg",
"//img30.360buyimg.com/n0/s128x96_jfs/t1/192488/17/22962/84894/625f6d7eE159f2c12/9223a1bd55a56be3.jpg",
"//img30.360buyimg.com/n0/s128x96_jfs/t1/92040/14/19868/79352/625f6d7fEe2cf2d9f/761127138c9011b0.jpg"
],
"display_user_nick": "1***m",
"auction_sku": "升配【i5-11400H 16G内存 512固态】",
"add_feedback": ""
},
{
"rate_content": "包装保护:The packaging doesn't say anything,The computer is very well protected,It can be seen that the store is very careful with the packaging!\\n外形外观:超级好看,I didn't expect the lines of this savior's shape to be so smooth,Really high quality!The design of the whole computer is very strong,非常符合我的审美.\\n画面品质:我录了视频,You can see that the picture quality is very high.\\n运行速度:没的说,One word is fast!!!\\nIt took a few days to evaluate,Very satisfied with this computer!!!",
"rate_date": "2021-08-12 19:21:48",
"pics": [
"//img30.360buyimg.com/n0/s128x96_jfs/t1/181467/35/18970/376799/6115044aE70c67e10/aa066d2616f2489d.jpg",
"//img30.360buyimg.com/n0/s128x96_jfs/t1/187097/1/17945/334767/6115044aEde1f65f9/42148570606b458e.jpg",
"//img30.360buyimg.com/n0/s128x96_jfs/t1/198702/4/2801/313994/6115044bE638777ad/3021ca781f92535c.jpg",
"//img30.360buyimg.com/n0/s128x96_jfs/t1/194673/7/17992/285141/6115044aE03a50ff2/4068c3442d5fee1a.jpg",
"//img30.360buyimg.com/n0/s128x96_jfs/t1/200574/17/2789/396791/6115044aE35f5e932/cffc320e20fbb266.jpg"
],
"display_user_nick": "赵***_",
"auction_sku": "标配【i5-11400H 16G内存 512固态】",
"add_feedback": ""
},
{
"rate_content": "包装保护:玩好.\\n外形外观:very beautiful.\\n运行速度:Very fast.\\n游戏效果:还是非常ok的.\\n\\nYou can choose to play games.",
"rate_date": "2021-10-16 14:27:51",
"pics": [
"//img30.360buyimg.com/n0/s128x96_jfs/t1/205912/12/11469/80972/616a70e4E17d1ded8/2ee0d9e817f69ae6.jpg",
"//img30.360buyimg.com/n0/s128x96_jfs/t1/156606/20/20827/90574/616a70e5Edaacb73a/84c14824cf7be81c.jpg",
"//img30.360buyimg.com/n0/s128x96_jfs/t1/218234/23/568/79569/616a70e5E2585447e/aad953e1c6d8dfc7.jpg",
"//img30.360buyimg.com/n0/s128x96_jfs/t1/197274/22/13488/48286/616a70e6E472d0bb0/86b2aaa5e60f0c27.jpg",
"//img30.360buyimg.com/n0/s128x96_jfs/t1/211419/24/5491/42563/616a70e6E4b31da32/04933cf088a2e8c7.jpg"
],
"display_user_nick": "化***萌",
"auction_sku": "标配【i5-11400H 16G内存 512固态】",
"add_feedback": ""
},
{
"rate_content": "The computer packaging is thick,Added foam,I like the overall look,A machine with great design,运行速度很快,Some large software is fine.",
"rate_date": "2021-12-17 08:09:46",
"pics": [
"//img30.360buyimg.com/n0/s128x96_jfs/t1/175916/27/23969/124726/61bbd548E7cd457d0/f0c54a4044815e78.jpg",
"//img30.360buyimg.com/n0/s128x96_jfs/t1/215562/20/7949/92272/61bbd549Ee4974575/e7ead8a5748c6304.jpg",
"//img30.360buyimg.com/n0/s128x96_jfs/t1/143989/32/23464/168051/61bbd549Ecd9cab08/5cf10cf3f7708b35.jpg",
"//img30.360buyimg.com/n0/s128x96_jfs/t1/212544/37/7982/165904/61bbd549E253aa8db/3a94fc07019a4f87.jpg",
"//img30.360buyimg.com/n0/s128x96_jfs/t1/219014/3/8057/148997/61bbd54aE2344c02d/23a4a5b13397568e.jpg"
],
"display_user_nick": "小***_",
"auction_sku": "升配【i5-11400H 16G内存 512固态】",
"add_feedback": ""
},
{
"rate_content": "Computer shipped quickly,It's cool to fly,看电影,制作pr ps Not stuck,非常值得入手,Don't miss the little ones who want to buy,Hurry up and place an order.",
"rate_date": "2021-10-31 17:49:27",
"pics": [
"//img30.360buyimg.com/n0/s128x96_jfs/t1/170534/39/22420/241435/617e66a1E67888541/e99530915d03ada7.jpg",
"//img30.360buyimg.com/n0/s128x96_jfs/t1/217107/33/2553/281198/617e66a2E1b499643/b8beef2d40e091ec.jpg",
"//img30.360buyimg.com/n0/s128x96_jfs/t1/165489/33/28616/345050/617e66a4E4ddbf03c/0e902a2fdd851553.jpg",
"//img30.360buyimg.com/n0/s128x96_jfs/t1/218592/27/2637/278439/617e66a5Eba9706cd/f7cb237b5e75dea6.jpg",
"//img30.360buyimg.com/n0/s128x96_jfs/t1/220729/12/2541/259525/617e66a6E893035e2/1e382d5a32031014.jpg"
],
"display_user_nick": "路***吃",
"auction_sku": "标配【i5-11400H 16G内存 512固态】",
"add_feedback": ""
}
]
},
"secache": "47467850af4270be411f0e3d3f1c2d00",
"secache_time": 1659495688,
"secache_date": "2022-08-03 11:01:28",
"translate_status": "",
"translate_time": 0,
"language": {
"default_lang": "cn",
"current_lang": "cn"
},
"error": "",
"reason": "",
"error_code": "0000",
"cache": 0,
"api_info": "today:98 max:10100 all[159=98+44+17];expires:2030-12-31",
"execution_time": "0.46",
"server_time": "Beijing/2022-08-03 11:01:28",
"client_ip": "106.6.35.126",
"call_args": {
"num_iid": "30646311745",
"data": "1",
"page": 1
},
"api_type": "jd",
"translate_language": "zh-CN",
"translate_engine": "google_new",
"server_memory": "3.51MB",
"request_id": "gw-1.62e9e50850704",
"last_id": "1124973751"
}异常示例
{
"error": "item-not-found",
"reason": "商品没找到",
"error_code": "2000",
"success": 0,
"cache": 0,
"api_info": "today:0 max:10000",
"execution_time": 0.081,
"server_time": "Beijing/2020-06-10 23:44:00",
"call_args": [],
"api_type": "taobao",
"request_id": "15ee0ffc041242"}边栏推荐
猜你喜欢

4500字归纳总结,一名软件测试工程师需要掌握的技能大全

Knowledge Graph Question Answering System Based on League of Legends

Five super handy phone open-source automation tools, which is suitable for you?

B站回应“HR 称核心用户都是 Loser”:该面试官去年底已被劝退,会吸取教训加强管理

面试突击71:GET 和 POST 有什么区别?

shell编程条件语句

How can I get a city's year-round weather data for free?Precipitation, temperature, humidity, solar radiation, etc.

Apache APISIX 2.15 版本发布,为插件增加更多灵活性

PolarFormer: Multi-camera 3D Object Detection with Polar Transformers 论文笔记

如何免费获得一个市全年的气象数据?降雨量气温湿度太阳辐射等等数据
随机推荐
JUC(三):锁核心类AQS ing
Vs Shortcut Keys---Explore Different Programming
第十五章 源代码文件 REST API 简介
业界新标杆!阿里开源自研高并发编程核心笔记(2022最新版)
《数字经济全景白皮书》金融数字用户篇 重磅发布!
【Verilog】HDLBits题解——验证:阅读模拟
信创建设看广州|海泰方圆亮相2022 信创生态融合发展论坛
数据库系统原理与应用教程(075)—— MySQL 练习题:操作题 151-159(十九):综合练习
使用.NET简单实现一个Redis的高性能克隆版(一)
AMS simulation
PC client automation testing practice based on Sikuli GUI image recognition framework
期货公司开户关注的关键点
特征工程学习笔记
深度学习跟踪DLT (deep learning tracker)
899. 有序队列
R语言ggplot2可视化:使用ggpubr包的ggsummarystats函数可视化箱图(通过ggfunc参数设置)、在可视化图像的下方添加描述性统计结果表格
常用lambda表达式
链游NFT元宇宙游戏系统开发技术方案及源码
3年软件测试经验,不懂自动化基础...不知道我这种测试人员是不是要被淘汰了?
Filebeat 如何保持文件状态?