当前位置:网站首页>新评论接口——京东评论接口
新评论接口——京东评论接口
2022-08-03 12:13:00 【分享干货的猫】
注册获取专属于你的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": "包装保护:包装非常好\\n画面品质:画面品质不错,打游戏高帧率也没问题\\n游戏效果:游戏效果非常好,日常打游戏或者办公都是可以的\\n外形外观:我入手的是y7000,外观大气,整体评价很不错",
"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": "很酷的一款电脑,买来给弟弟的,他上学画图用,非常喜欢。这款电脑性价比很高,运行很快,应该可以多用几年吧!盯了很久的一款电脑,屏幕很大。",
"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": "收到了货,挺激动的,电脑手感特别好,首先是颜值不错,开机还是语音提醒,非常方便实用,玩游戏也特别顺畅,速度也特别快,总体不错五星好评",
"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": "好喜欢的笔记本!大气、有质感!性能超强!屏幕分辨率非常舒适!颜色很真实,眼不累!妥妥的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": "买到的是正品,很nice,这家店品控很稳,想买的可以抓紧下单了,屏幕有护眼模式,联想游戏模式,性能三档调节,风扇静音,颜值极高,接口多",
"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": "看了很多台笔记本,最终还是选择拯救者y7000,重量不重,屏幕画质很好,运行流畅,运行设计制图软件也没问题,颜值也不错!",
"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": "包装保护:包装没的说,电脑保护的非常好,看得出店家很用心做包装哟!\\n外形外观:超级好看,没想到这款拯救者外形的线条这么流畅,真的是高颜值!整个电脑的设计感很强,非常符合我的审美。\\n画面品质:我录了视频,可以看到画面品质很高。\\n运行速度:没的说,一个字就是快!!!\\n用了几天才来评价的,很满意这个电脑!!!",
"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外形外观:很靓丽。\\n运行速度:很快很炫。\\n游戏效果:还是非常ok的。\\n\\n想要玩游戏可以选择。",
"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": "电脑包装很厚实,加了泡沫,外观整体很喜欢,很有设计感的一款机器,运行速度很快,一些大型软件没啥问题。",
"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": "电脑发货很快,用起来爽的飞起,看电影,制作pr ps 不卡喔,非常值得入手,想要买的小宝贝不要错过啦,抓紧下单哦。",
"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"}
边栏推荐
- asdn涨薪技术之apifox+Jenkins如何玩转接口自动化测试
- 【倒计时5天】探索音画质量提升背后的秘密,千元大礼等你来拿
- 899. 有序队列
- Blazor Server(6) from scratch--policy-based permission verification
- Matlab学习12-图像处理之图像增强
- From scratch Blazor Server (6) - authentication based on strategy
- 码率vs.分辨率,哪一个更重要?
- [Verilog] HDLBits Problem Solution - Verification: Writing Testbenches
- fastposter v2.9.0 programmer must-have poster generator
- 距LiveVideoStackCon 2022 上海站开幕还有3天!
猜你喜欢
Matlab学习13-图像处理之可视化GUI程序
4500 words sum up, a software test engineer need to master the skill books
第3章 搭建短视频App基础架构
基于Sikuli GUI图像识别框架的PC客户端自动化测试实践
广州番禺:暑期防溺水,安全不放假
面试官:SOA 和微服务的区别?这回终于搞清楚了!
JUC(三):锁核心类AQS ing
"Digital Economy Panorama White Paper" Financial Digital User Chapter released!
距LiveVideoStackCon 2022 上海站开幕还有3天!
c语言进阶篇:内存函数
随机推荐
-树的高度-
Take you understand the principle of CDN technology
深度学习:文本CNN-textcnn
(through page) ali time to upload the jar
PC client automation testing practice based on Sikuli GUI image recognition framework
bash for循环
技术总监需要会些什么?也太难了!
解决oracle安装在linux中jdk的冲突
hystrix 服务熔断和服务降级
第四课 标识符、关键字、变量、变量的分类和作用域、常量
Feature dimensionality reduction study notes (pca and lda) (1)
LeetCode-142. 环形链表 II
Filebeat 如何保持文件状态?
ssh 免密登录了解下
字符串本地化和消息字典(二)
awk入门教程
一次内存泄露排查小结
无监督学习KMeans学习笔记和实例
使用.NET简单实现一个Redis的高性能克隆版(一)
"Digital Economy Panorama White Paper" Financial Digital User Chapter released!