JSON格式解析京东商品详情API

    在技术交流群,大家有探讨稳定获取京东淘宝商品主图、jiege、标题,及sku的完整解决方案。这个引起了我技术挑战的兴趣。

目前,自己做了压测,QPS高、出滑块概率极低,API整体稳定,可满足业务场景的性能需求。

API可输出JSON、XML等格式,能够供PHP、JSP等编程语言调用 ;现已支持一下程序MagenTo、ShopEx、ZenCart、OpenCart二次开发调用   获取key和密钥

公共参数

名称 类型 必须 描述
key String 调用key(获取key和密钥)
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=10335871600

参数说明:num_iid:JD商品ID

响应示例:

{
	"item": {
		"num_iid": "10335871600",
		"title": "安踏男鞋休闲运动鞋男士2021春季网面透气轻便板鞋慢跑步鞋子户外训练旅游 -6安踏白 42",
		"desc_short": "",
		"price": "159.00",
		"total_price": 0,
		"suggestive_price": 0,
		"orginal_price": "249.00",
		"nick": "安踏悠购专卖店",
		"num": 999,
		"min_num": 0,
		"detail_url": "https://item.jd.com/10335871600.html",
		"pic_url": "//img10.360buyimg.com/n1/jfs/t1/161425/26/11624/223402/6048750bE7b82f057/24b57f419c846302.jpg",
		"brand": "",
		"brandId": "",
		"rootCatId": 12099,
		"cid": 9756,
		"crumbs": [],
		"created_time": "",
		"modified_time": "",
		"delist_time": "",
		"desc": "






", "desc_img": [ "https://img10.360buyimg.com/imgzone/jfs/t1/38380/20/8577/216030/5cfdcf2eE3d3c15fc/9072ee4986b3f8d4.jpg", "http://img30.360buyimg.com/popWaterMark/jfs/t11302/317/3187030400/282664/5886b268/5ce3c383N6572b1da.jpg", "http://img30.360buyimg.com/popWaterMark/jfs/t29380/248/1583857170/211757/8803264c/5ce3c383Nf658d385.jpg", "http://img30.360buyimg.com/popWaterMark/jfs/t1/109234/40/8433/163092/5e6764a2E4e1a8595/47322c3588d6d0c8.jpg", "http://img30.360buyimg.com/popWaterMark/jfs/t1/89006/11/14706/167699/5e6764a2E68bdab3a/be235af214561ca7.jpg", "http://img30.360buyimg.com/popWaterMark/jfs/t1/109389/11/8312/121412/5e6764a2E0699edcb/74e48d00298808af.jpg", "http://img30.360buyimg.com/popWaterMark/jfs/t1/93399/24/14627/132014/5e6764a3E0f078e8e/8598eb9176d64a6c.jpg", "http://img30.360buyimg.com/popWaterMark/jfs/t1/107443/10/8345/114390/5e6764a3Ea1726cee/45cfa1a0f7a8df0c.jpg", "http://img30.360buyimg.com/popWaterMark/jfs/t1/96343/40/10991/241473/5e257548Ed6f96ea3/b52ab120eb9f7db0.jpg", "http://img30.360buyimg.com/popWaterMark/jfs/t1/101185/7/11047/209310/5e257548E8788bdf6/c20d5eb0405dde28.jpg", "http://img30.360buyimg.com/popWaterMark/jfs/t1/107815/5/4768/276947/5e257548Ee42f500c/0ba8cd264bd603a3.jpg", "http://img30.360buyimg.com/popWaterMark/jfs/t1/95922/19/10937/254828/5e257549Eaad6ebf6/7d1400f5908cb55e.jpg", "https://img30.360buyi

你可能感兴趣的:(京东详商品详情,json)