Dianping (大众点评) API skill for searching restaurants and businesses, viewing shop details, deals/coupons, and reading recommended dishes. Use this skill when: (1) the user asks about restaurants, food, or local businesses in Chinese cities, (2) the user wants to search dianping.com, (3) the user needs shop ratings, reviews, prices, deals, or addresses from 大众点评, (4) any query involving Chinese dining recommendations or local business lookup.
零依赖的HTTP API,用于访问大众点评。无需浏览器引擎,无需pip安装——只需curl(macOS/Linux系统自带)。
仅需dper和dplet两个Cookie。存储在~/.dianping/cookies.json中。
bash
所有命令输出JSON到标准输出,便于AI解析。
bash
python3 dianping-api/scripts/dianpingapi.py search <关键词> [--cityid N]
响应:
json
{
keyword: 世纪大道淮扬菜,
city_id: 1,
count: 11,
shops: [
{
shop_id: l7UgWvw6yZ7ytaly,
name: 九厨·淮扬(陆家嘴紫金山店),
rating: 4.5,
review_count: 455,
avg_price: 155
}
]
}
bash
python3 dianping-api/scripts/dianpingapi.py shop
响应:
json
{
shop_id: l7UgWvw6yZ7ytaly,
name: 九厨·淮扬(陆家嘴紫金山店),
score_text: 口味:4.7 环境:4.8 服务:4.7,
avg_price: 155,
review_count: 455条,
category: 淮扬菜,
region: 世纪大道,
address: 东方路778号金陵紫金山大酒店2楼,
route: 距地铁世纪大道站12口步行400m,
phone: 65,
recommended_dishes: [九厨桂花香酥烤鸭, 淮安特色一品狮子头, ...],
scores: {taste: 4.7, environment: 4.8, service: 4.7}
}
bash
python3 dianping-api/scripts/dianpingapi.py deals
响应:
json
{
shop_id: l7UgWvw6yZ7ytaly,
name: 九厨·淮扬(陆家嘴紫金山店),
deals: [
{title: 【午市专享】100元代金券, price: 79.0, original_price: 100.0},
{title: 九厨淮扬精选宝宝餐, price: 0.1, original_price: 29.9},
{title: 招牌烤鸭+醉沼虾+牛肉粒2-3人餐, price: 279.0, original_price: 500.0}
],
services: [],
tags: []
}
python
import sys; sys.path.insert(0, dianping-api/scripts)
from dianpingapi import apisearch, apishop, apideals
| 城市 | ID | 城市 | ID | 城市 | ID | 城市 | ID |
|---|---|---|---|---|---|---|---|
| 上海 | 1 | 北京 | 2 | 大连 | 3 | 广州 | 4 |
| 杭州 |
所有错误返回{error: ...}。常见情况:
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 dianping-search-1776300602 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 dianping-search-1776300602 技能
skillhub install dianping-search-1776300602
文件大小: 21.34 KB | 发布时间: 2026-4-17 14:39