京东 商品搜索
通过关键词搜索京东商品,支持分页。用于发现商品并收集商品ID以供后续查询。
GET
/v1/jd/search_item_list_v1
$0.03
- 价格
- $0.03 / 次成功调用,失败不收费
- 接口 ID
jd.search_item_list_v1
参数
-
keywordstring 必填搜索关键词。
示例
咖啡 -
pagestring 可选用于分页的页码。
示例
1
代码示例
curl -G "https://api.mofa-ai.com/v1/jd/search_item_list_v1" \
-H "Authorization: Bearer $MOFA_API_KEY" \
--data-urlencode 'keyword=咖啡' \
--data-urlencode 'page=1'
import os
import requests
resp = requests.get(
"https://api.mofa-ai.com/v1/jd/search_item_list_v1",
headers={"Authorization": f"Bearer {os.environ['MOFA_API_KEY']}"},
params={
"keyword": "咖啡",
"page": "1",
},
timeout=60,
)
body = resp.json()
if body["success"]:
print(body["cost_usd"], body["data"])
else:
print(body["error"], body["message"])
const url = new URL("https://api.mofa-ai.com/v1/jd/search_item_list_v1");
url.search = new URLSearchParams({
keyword: "咖啡",
page: "1",
});
const resp = await fetch(url, {
headers: { Authorization: `Bearer ${process.env.MOFA_API_KEY}` },
});
const body = await resp.json();
if (body.success) console.log(body.cost_usd, body.data);
else console.error(body.error, body.message);
响应示例
请求参数 {"page": "1", "keyword": "咖啡"}
JSON
{
"success": true,
"code": 0,
"message": "success",
"request_id": "req_5f1c2a9be04d7c3a81f6e2d0",
"endpoint": "jd.search_item_list_v1",
"cost_usd": 0.03,
"data": {
"code": 0,
"data": {
"pageSize": 0,
"products": [
{
"cc": "20万+",
"fp": "",
"id": "100149382956",
"pp": "",
"sp": "",
"xp": 0,
"zy": 1,
"bId": "879295",
"exp": "https://sh.jd.com/g/5sS1_JNA1GE721e?pos_offset=1",
"foi": "",
"gcp": 96,
"gzy": 0,
"sid": "2aa4b55d-3fa3-462b-b564-d14bad4def0d",
"…": "+23",
"cid1": "36720",
"cid2": "37056",
"cid3": "37061",
"cjxp": 0,
"fxDy": 1,
"jxzy": 0,
"live": 0,
"click": "https://sh.jd.com/r/5sS1_JcADlhO98y.0SGMZwg?ac=MjEwN2MxOTJhYjgz&pos_offset=1",
"flash": "",
"gifts": [],
"pCode": "ynszmsy",
"posId": 268,
"price": "139.00",
"reqId": "10100975476-121149-1794095982663",
"sales": "",
"title": "四只猫咖啡拿铁蓝山特浓卡布黑咖啡速溶咖啡搅拌杯 保温杯 130杯",
"adType": 3,
"global": "0",
"images": [],
"isType": 0,
"shopId": "1000344141",
"slogan": "",
"tagUrl": "",
"coupons": [],
"freight": 0,
"landUrl": "https://item.jd.com/100149382956.html",
"presell": 0,
"seckill": "",
"skuType": "",
"themeId": 0,
"followed": false,
"imageUrl": "jfs/t1/523478/16/7676/144469/6aab64a9F2f3d3200/02583203200cad94.jpg",
"promoTag": "",
"shopName": "四只猫咖啡京东自营旗舰店",
"venderId": "1000344141",
"adSkuType": 1,
"discounts": [],
"sellPoint": "",
"themeDesc": "",
"themeName": "",
"isJdMarket": 1,
"monthSales": "",
"shortTitle": "",
"copywriting": "",
"lowestPrice": 0,
"skuRankInfo": "",
"onShelvesTime": 1729560928000
},
{
"cc": "20万+",
"fp": "",
"id": "100118335111",
"pp": "",
"sp": "",
"xp": 0,
"zy": 1,
"bId": "879295",
"exp": "https://sh.jd.com/g/5sS1_JRA1GE721f?pos_offset=2",
"foi": "",
"gcp": 96,
"gzy": 0,
"sid": "2aa4b55d-3fa3-462b-b564-d14bad4def0d",
"…": "+23",
"cid1": "36720",
"cid2": "37056",
"cid3": "37061",
"cjxp": 0,
"fxDy": 1,
"jxzy": 0,
"live": 0,
"click": "https://sh.jd.com/r/5sS1_JgADlhO98z.0SEW7u6?ac=Mjc0NDQzMDlhMDc3&pos_offset=2",
"flash": "",
"gifts": [],
"pCode": "ynszmsy",
"posId": 268,
"price": "79.90",
"reqId": "10100975476-121149-1794095982663",
"sales": "",
"title": "四只猫咖啡蓝山 拿铁 特浓咖啡100条 低糖低脂速溶咖啡粉 三合一 共1500g",
"adType": 3,
"global": "0",
"images": [],
"isType": 0,
"shopId": "1000344141",
"slogan": "",
"tagUrl": "",
"coupons": [],
"freight": 0,
"landUrl": "https://item.jd.com/100118335111.html",
"presell": 0,
"seckill": "",
"skuType": "",
"themeId": 0,
"followed": false,
"imageUrl": "jfs/t1/552228/11/5708/656957/6ae1a0a2Fed09c945/08ee5dc5dccb08b4.jpg",
"promoTag": "",
"shopName": "四只猫咖啡京东自营旗舰店",
"venderId": "1000344141",
"adSkuType": 1,
"discounts": [],
"sellPoint": "",
"themeDesc": "",
"themeName": "",
"isJdMarket": 1,
"monthSales": "",
"shortTitle": "",
"copywriting": "",
"lowestPrice": 0,
"skuRankInfo": "",
"onShelvesTime": 1726042971000
},
"… +46"
],
"totalCount": 7619,
"totalPages": 159,
"currentPage": 1
},
"message": null,
"requestId": "8aa1488c7fcc4cfa9fdd83d7b874da0a",
"recordTime": "2026-11-08T07:59:43.401943806",
"requestParams": {
"body": null,
"query": {
"page": "1",
"keyword": "咖啡"
}
}
}
}
在线试用
登录后可以在这里直接调用此接口,按价格从余额扣费,失败不收费。新账户赠送 $0.50 试用额度。
京东的其他接口
-
商品详情 v1
$0.04通过已知商品ID获取京东商品详情。用于在找到其标识符后查看单个商品。
/v1/jd/get_item_detail_v1
-
商品详情 v3
$0.08通过已知商品ID检索京东商品详情。用于在产品研究或报价比较时查看已知商品信息。
/v1/jd/get_item_detail_v3
-
商品评论
$0.04获取按商品ID标识的京东商品的分页买家评论。用于查看已知商品的买家反馈。
/v1/jd/get_item_comments_v1
-
店铺商品列表
$0.04获取按店铺ID标识的京东店铺的一页商品。用于浏览卖家目录并收集商品ID以供后续查询。
/v1/jd/get_shop_item_list_v1