shopdora-shopee
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "shopdora-shopee" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-d83383aa5429e76e7fc1a5e3d0924797ed8a49fedb86bb6c9bbb2567377a585d. Verify the upstream source and version against https://skillhub.cn/skills/user_1e06a8c4/shopdora before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
skillhub.cn
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
For cross-border e-commerce data analysis on the Shopee platform, covering keyword mining, product selection/product search, comment crawling and review analysis, category browsing, balance inquiry, and related scenarios. Trigger phrases include examples such as product selection, keyword mining, review analysis, Shopee product selection, cross-border e-commerce, category query, check balance, store analysis, product analysis, competitor analysis, comment crawling, Shopee data, shopdora, etc.; also applies when the user mentions Shopee site codes (sg/tw/my/ph/th/vn/id/br/mx) or site names and requests data analysis or market research, or makes similar requests in English.
Introduction source: third_party · user_1e06a8c4 · 1.0.1 Reference
SkillPi interpretation
- Tasks
- Translation pending; see source documentation.
- Audience
- Translation pending; see source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: shopdora-shopee
description: |
当用户需要在 Shopee 平台进行跨境电商数据分析时使用此技能,包括:关键词挖掘、
选产品/商品搜索、评论抓取/评价分析、类目浏览、余额查询等场景。
触发词包括:选品、关键词、关键词挖掘、评论分析、评价分析、Shopee选品、
跨境电商、类目查询、查余额、店铺分析、商品分析、竞品分析、评论抓取、
虾皮数据、虾多拉、shopdora、热卖产品、热门关键词、产品搜索。
也适用于用户提到 Shopee 站点代码(sg/tw/my/ph/th/vn/id/br/mx)
或站点中文名(新加坡/台湾/马来西亚/菲律宾/泰国/越南/印尼/巴西/墨西哥)
并进行数据分析或市场调研的场景。
Also triggered for English queries about keyword research, product research,
comment analysis, or seller analytics on Shopee platforms.
agent_created: true虾多拉-Shopee选品和关键词分析工具
概述
通过 Shopdora OpenAPI 帮助用户在 Shopee 各站点进行跨境电商数据分析,覆盖关键词挖掘、选产品、评论抓取、类目浏览、余额查询等场景。
重要前提:使用此 Skill 需要先在 Shopdora 官网 注册帐号并开通 API 服务。该服务为付费服务,具体价格请联系官网的企业微信获取。
典型使用场景
你可以直接用自然语言提问,例如:
- "泰国站美妆类目最热卖的产品有哪些?"
- "帮我看新加坡站手机壳的热门关键词"
- "我账号还剩多少配额?"
- "查一下台湾站这个商品的评论,商品 ID 是 xxx"
- "马来西亚站有哪些类目?"
前置条件:凭证配置
检查配置文件
在执行任何 API 调用之前,先检查本地是否存在凭证配置文件 ~/.shopdora/config.json:
cat ~/.shopdora/config.json 2>/dev/null
首次使用 — 引导用户配置
如果配置文件不存在,直接回复用户:
当前服务为付费服务,请在官网 https://www.shopdora.com 联系官方客服,获取 token。获取后将
clientId和clientSecret告诉我,我会帮你配置好。
收到凭证后,创建配置文件:
mkdir -p ~/.shopdora
然后写入含凭证的 JSON(clientId 和 clientSecret 由用户提供)。
配置文件格式
{
"clientId": "std_xxxxxxxx",
"clientSecret": "your_secret_here"
}
站点名称映射
用户可能用中文名而非代码表示站点。收到用户输入后,按以下映射自动转换为 API 所需的站点代码:
| 用户可能说的 | 映射为 site 代码 |
|---|---|
| 新加坡、sg | sg |
| 台湾、tw、中国台湾 | tw |
| 马来西亚、my、大马 | my |
| 菲律宾、ph | ph |
| 泰国、th | th |
| 越南、vn | vn |
| 印尼、id、印度尼西亚 | id |
| 巴西、br | br |
| 墨西哥、mx | mx |
如果用户没有指定站点,主动询问需要在哪个站点查询。
核心工作流
标准调用链路:无论用户请求什么功能,统一按以下顺序执行:
- 检查凭证 → 读取
~/.shopdora/config.json - 获取 token → 检查
~/.shopdora/token.json是否有效,无效则重新获取 - 检查本地缓存 → 24 小时内相同请求优先从缓存读取,不扣费(见下方「本地缓存」章节)
- 确认关键参数 → 调用计费接口前,必须向用户确认站点、关键词、时间范围等输入(见下方「调用前确认」章节)
- 可选:查询余额 → 执行前可选查询余额确认配额充足
- 执行用户请求 → 根据用户意图调用对应接口(关键词/产品/评论/类目)
- 存入缓存并展示结果 → 成功后写入缓存,以表格或结构化格式清晰呈现
知识缺失时自动提问
遇到以下未对齐或不明确的情况,必须先向用户提问确认,不得自行推断:
| 缺失内容 | 替代行为示例 |
|---|---|
| 没有指定 site | 提问:需要查询哪个站点 |
| 关键词模糊 | 提问:请补充具体类目/产品词 |
| 时间跨度不清(如最近/热门) | 提问:按近 30 天还是指定月份 |
调用前确认(防止无效消耗)
调用付费接口(关键词、选产品、评论)前,必须先向用户确认关键参数,避免参数不对导致浪费。
确认示例:
即将调用关键词挖掘接口(计费):
- 站点:新加坡(sg)
- 关键词:phone case
- 搜索量范围:1000 ~ 50000
- 排序:按搜索量降序
确认执行吗?
用户确认后再调用 API。
失败/空结果处理规则(严禁自动重试)
计费接口返回失败或空结果时,严禁以下行为:
- ❌ 自动更换关键词重新搜索
- ❌ 自动翻页拉取更多数据
- ❌ 自动修改站点、价格区间、时间范围等参数重试
- ❌ 更换排序方式重新请求
正确做法:
- 空结果 → 告知用户当前条件下未找到数据,建议用户调整条件后告知你
- 失败(code ≠ 0000)→ 按错误码表处理,仅在 token 失效(9990)时自动重试
- 用户要求翻页或继续检索 → 先告知会产生额外消耗,确认后再执行
例如用户说"再看看下一页"时回复:
翻页会消耗 1 次配额(当前剩余 X 次),确认继续吗?
本地缓存(24h)
为减少重复消耗,所有计费接口的成功响应写入本地缓存。
缓存位置:~/.shopdora/cache/
缓存文件命名:{接口名}_{site}_{参数MD5}.json
- 示例:
keyword_sg_a1b2c3d4.json、product_th_e5f6g7h8.json
缓存逻辑:
- 调用 API 前,先计算请求参数的 MD5(site + 各查询参数序列化为 JSON 字符串后取 MD5)
- 检查
~/.shopdora/cache/下是否存在对应文件 - 如存在且修改时间在 24 小时内 → 直接读取缓存,告知用户"来自缓存(X 小时前)",不调用 API
- 如不存在或已过期 → 调用 API,成功后写入/更新缓存文件
- 查询余额(不限流不计费)和获取 token(不计费)不缓存
工作流 1:获取 access_token
所有计费接口调用前必须先获取有效的 access_token。
token 持久化机制:
token 存储在 ~/.shopdora/token.json,格式为:
{
"accessToken": "a1b2c3d4e5f6...",
"tokenType": "Bearer",
"expiresIn": 2678400,
"obtainedAt": 1753718400
}
token 获取与验证流程:
- 先尝试读取
~/.shopdora/token.json - 如果文件存在,检查
obtainedAt + expiresIn > 当前时间戳,有效则直接使用 - 如果文件不存在或已过期,从
~/.shopdora/config.json读取凭证,调用 token 接口 - 将新 token 和获取时间写入
~/.shopdora/token.json - 后续所有 API 请求都从
token.json读取 accessToken
调用 API:
curl -s -X POST 'https://openapi.shopdora.cn/openapi/standard/token' \
-H 'Content-Type: application/json' \
-d '{"clientId":"<从配置文件读取>","clientSecret":"<从配置文件读取>"}'
token 续期规则:
- token 有效约 31 天,过期前需重新获取
- 任何 API 返回
9990时,自动删除token.json并重新获取 token,然后重试原请求 - 通过
/standard/queryBalance的tokenExpiresIn字段可查看精确到期时间
工作流 2:查询余额
在用户要求查询余额、开始大量调用前、或会话开始时主动查询。
调用 API:
curl -s -X POST 'https://openapi.shopdora.cn/openapi/standard/queryBalance' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <access_token>'
结果展示格式(必须清晰呈现以下关键信息):
📊 账户信息
- 客户名称:{clientName}
- 账户状态:{accountStatus}
- Token 到期:{tokenExpiresIn}
💰 配额使用情况
- 周期:{periodStart} ~ {periodEnd}
- 已用 / 上限:{quotaUsed} / {quotaLimit}(剩余 {quotaRemaining} 次)
⚡ 限流状态
- 分钟限流:{rateLimitPerMinute} 次/分钟
- 当前分钟已用:{rateLimitUsedThisMinute} 次
工作流 3:关键词挖掘
当用户要查找某个品类或产品的热门搜索词时使用。
执行前检查:先查 24h 缓存,再向用户确认参数(站点、关键词、筛选条件),确认后再调用 API。失败/空结果不得自动重试。
必传参数:site
常用可选参数:keyword、cateIds、searchVolume、sortBy
调用 API:
先根据「站点名称映射」确定 site 代码,确认用户需要的筛选条件,然后调用:
curl -s -X POST 'https://openapi.shopdora.cn/openapi/standard/keyword/search' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <access_token>' \
-d '{
"site": "<site>",
"keyword": "<keyword>",
"searchVolume": {"min": <min>, "max": <max>},
"sortBy": "<sortBy>",
"orderBy": 1,
"pageNum": 1,
"pageSize": 20
}'
结果展示:以表格形式列出关键词,包含 searchVolume、searchVolumeIncRate、productNum、avgPrice、avgRating 等关键指标。若结果较多,提示用户可翻页查看。
工作流 4:选产品
当用户要发现和分析 Shopee 上的热门产品、竞品时使用。
执行前检查:先查 24h 缓存,再向用户确认参数(站点、关键词/类目、价格区间、时间范围),确认后再调用 API。失败/空结果不得自动重试。
必传参数:site、month
常用可选参数:keyword、cateIds、price、salesM、shelfTimeRange、sortBy
month 参数说明:
30→ 近 30 天视图(最常用)202603→ 指定月份视图
price 参数说明:
- 值为实际价格 × 100000,例如 9.9 元填
990000
调用 API:
curl -s -X POST 'https://openapi.shopdora.cn/openapi/standard/product/search' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <access_token>' \
-d '{
"site": "<site>",
"month": 30,
"keyword": "<keyword>",
"sortBy": "salesM",
"orderBy": 1,
"pageNum": 1,
"pageSize": 20
}'
结果展示:
- 以表格列出商品,包含 name、price(需除以 100000 显示本土货币)、salesM、salesGrowthRateM、cateRank、shopType 等
- price 字段需要除以 100000 后展示为当地货币价格
- salesGrowthRateM 需要除以 100 展示为百分比
- ratingScore 需要除以 10 展示为星级
- shopType 转换:0→普通店铺,1→优选店铺,2→MALL
工作流 5:评论抓取与分析
当用户要查看某个商品的买家评价、分析用户反馈时使用。
执行前检查:先查 24h 缓存,再向用户确认参数(站点、shopId、itemId),确认后再调用 API。失败/空结果不得自动重试。
必传参数:site、shopId、itemId、limit、offset
调用 API:
curl -s -X POST 'https://openapi.shopdora.cn/openapi/standard/comment/get' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <access_token>' \
-d '{
"site": "<site>",
"shopId": <shopId>,
"itemId": <itemId>,
"limit": 20,
"offset": 0
}'
分页逻辑:
- 每页最多 20 条,offset 从 0 开始,上限 3000
- 读取响应
data.data.has_more,为true时 offset += limit 继续拉取 - 用户要求"更多"时自动翻页
结果展示:
- 先展示评价汇总:总评价数、综合星级、各星级分布
- 以列表展示每条评价:星级、用户名、评价内容(截取前 150 字)、点赞数、是否有图片
- ctime 为 Unix 秒,需转换为可读时间
- 若评价含
template_tags,展示标签信息
工作流 6:类目查询
当用户需要浏览某个站点的商品类目树时使用。
调用 API:
curl -s -X POST 'https://openapi.shopdora.cn/openapi/standard/cate/list' \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <access_token>' \
-d '{"site":"<site>","cateId":0}'
注意:响应 data 为 JSON 字符串,需要先 JSON.parse 再展示。
结果展示:以缩进层级展示类目树结构,标注叶子节点。
站点代码速查
| 代码 | 站点 | 代码 | 站点 |
|---|---|---|---|
| sg | 🇸🇬 新加坡 | vn | 🇻🇳 越南 |
| tw | 中国台湾 | id | 🇮🇩 印尼 |
| my | 🇲🇾 马来西亚 | br | 🇧🇷 巴西 |
| ph | 🇵🇭 菲律宾 | mx | 🇲🇽 墨西哥 |
| th | 🇹🇭 泰国 |
错误处理
| code | 说明 | 处理方式 |
|---|---|---|
| 0000 | 成功 | 正常展示结果 |
| 0001 | 参数错误 | 检查并修正请求参数后重试 |
| 9990 | token 失效 | 删除 token.json,重新获取 token,然后重试原请求 |
| 9992 | IP 不在白名单 | 告知用户当前 IP 未在白名单中,联系平台添加 |
| 9993 | 频率限制 | 等待几秒后自动重试,最多重试 3 次 |
| 9997 | 配额用尽 | 告知用户配额已用完,建议等待新周期或联系扩容 |
| 9999 | 系统繁忙 | 等待 3 秒后重试,最多重试 2 次 |
重要提醒
- 付费服务:关键词挖掘、选产品、评论抓取三个接口每次成功调用(返回非空数据)扣 1 次配额。查询余额和类目浏览不扣费。
- 调用前确认:任何计费接口调用前,必须先向用户确认站点、关键词、时间范围等关键参数,不得自动推断。
- 禁止自动重试:失败或空结果时严禁自动更换关键词、翻页、修改参数重试。仅在 token 失效(9990)时可自动刷新 token 后重试。
- 翻页/继续检索需告知:用户要求翻页或补充检索时,必须先告知会产生额外配额消耗,确认后再执行。
- 24h 本地缓存:所有计费接口成功响应缓存到
~/.shopdora/cache/,24 小时内相同请求直接读缓存,不消耗配额。 - 配额意识:调用计费接口后告知用户本次消耗和剩余配额。
- 价格字段:product/search 中的 price 系列字段需除以 100000 才为本土货币价格。
- 数据刷新:关键词数据非实时,依赖平台的刷新周期。
- 分页上限:评论 offset 上限 3000。
参考资料
详细的 API 字段说明和请求/响应示例,见 references/api_docs.md。在需要精确字段定义、参数边界、或完整的响应 JSON 结构时,通过 Read 工具加载该文件。
Current listing version
1.0.1
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Areas to improve
-
缺少 When to Use 显式章节 Reported severity: Minor
文档中虽有'典型使用场景',但未使用标准'When to Use'标题,不利于快速定位使用时机。
Recommendation: 建议将'典型使用场景'章节标题改为'When to Use',以符合用户习惯。
-
文档过长 Reported severity: Minor
SKILL.md 内容详尽但篇幅较长,可能影响用户快速获取关键信息。
Recommendation: 建议将部分详细说明(如完整 API 字段说明)移至 references/api_docs.md,主文档保留核心流程。
Highlights
- 提供 Shopee 跨境电商数据分析的完整解决方案,覆盖关键词挖掘、选品、评论分析等核心场景
- 明确的付费服务说明和配额管理机制,提升用户信任度
- 完善的本地缓存和调用前确认机制,有效防止无效消耗
Highlights
- 触发词覆盖全面,支持中英文混合输入及站点代码/中文名映射
- 边界清晰,能有效区分 Shopee 数据分析与其他平台请求
Highlights
- 文档结构完整,Phase 划分清晰,包含端到端示例和错误处理
- frontmatter 完整,参数说明详细,符合 Skill 规范
Highlights
- 工具来源明确,参数处理规则清晰(如价格÷100000)
- 覆盖主要异常场景,不可逆操作有确认机制
- 本地缓存机制完善,失败处理规则严格(严禁自动重试)
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Accounts, secrets or authorization
Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.
Mentioned in main document · lines 178, 180, 188, 201, 228
Domains or addresses referenced in the document
These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.
- openapi.shopdora.cn
- www.shopdora.com
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.