questionnaire-system
SKILL.md
Questionnaire System Skill
功能说明
查询网易执行平台(operation.dingwei.netease.com)的问卷系统,包括:
- 📋 查询问卷项目列表
- 🔍 查询单个问卷项目详情
- 📊 支持多种筛选条件
使用前提
必须提供有效的 Cookie,否则无法访问接口。
获取 Cookie 的方法
- 在浏览器中登录 https://operation.dingwei.netease.com
- 按 F12 打开开发者工具
- 切换到 Network 标签
- 刷新页面,找到任意 API 请求
- 右键请求 → Copy → Copy as cURL
- 提取其中的 Cookie 部分
API 1: 查询问卷项目列表
接口地址: https://operation.dingwei.netease.com/api/operation/questionnaire/list
请求方法: GET
必需 Header:
Cookie: 包含认证信息的 Cookie 字符串
请求参数
| 参数 | 类型 | 说明 | 示例 |
|---|---|---|---|
limit |
int | 每页数量 | limit=10 |
offset |
int | 偏移量 | offset=0 |
page |
int | 页码 | page=1 |
operator |
string | 操作员邮箱列表(逗号分隔) | operator=xxx@corp.netease.com,yyy@corp.netease.com |
startTime |
long | 开始时间戳(毫秒) | startTime=1772380800000 |
endTime |
long | 结束时间戳(毫秒) | endTime=1773763199059 |
projectStatus |
string | 项目状态(URL编码) | projectStatus=%E6%89%A7%E8%A1%8C%E4%B8%AD |
项目状态值:
执行中→%E6%89%A7%E8%A1%8C%E4%B8%AD已完成→%E5%B7%B2%E5%AE%8C%E6%88%90
使用示例
# 基本查询(最近的项目)
curl -H "Cookie: $COOKIE" \
"https://operation.dingwei.netease.com/api/operation/questionnaire/list?page=1&limit=10"
# 按操作员筛选
curl -H "Cookie: $COOKIE" \
"https://operation.dingwei.netease.com/api/operation/questionnaire/list?operator=xxx@corp.netease.com,yyy@corp.netease.com&page=1&limit=10"
# 按时间范围和状态筛选
curl -H "Cookie: $COOKIE" \
"https://operation.dingwei.netease.com/api/operation/questionnaire/list?startTime=1772380800000&endTime=1773763199059&projectStatus=%E6%89%A7%E8%A1%8C%E4%B8%AD&page=1&limit=10"
响应字段
| 字段 | 说明 |
|---|---|
id |
项目内部 ID |
projectId |
项目编号 |
name |
问卷名称 |
customer |
客户代码 |
customerName |
客户名称 |
url |
问卷链接 |
target |
目标样本量 |
quantity |
已完成样本量 |
state |
状态码 (3=执行中, 4=完成) |
projectStatus |
项目状态 (ongoing/finish) |
projectRunningStatus |
执行状态描述 |
startTime |
开始时间戳 |
endTime |
结束时间戳 |
innerInquiry.price |
内部询价价格 |
finalInquiry.price |
最终价格 |
API 2: 查询问卷项目详情
接口地址: https://operation.dingwei.netease.com/api/operation/questionnaire/detail/{id}
请求方法: GET
必需 Header:
Cookie: 包含认证信息的 Cookie 字符串
请求参数
| 参数 | 类型 | 说明 | 示例 |
|---|---|---|---|
id |
int | 项目内部 ID(URL路径参数) | /detail/243767 |
使用示例
# 查询项目ID为 243767 的详情
curl -H "Cookie: $COOKIE" \
-H "referer: https://operation.dingwei.netease.com/questionnaire/detail/243767" \
"https://operation.dingwei.netease.com/api/operation/questionnaire/detail/243767"
响应字段
基础信息 (base):
| 字段 | 说明 |
|---|---|
id |
项目内部 ID |
projectId |
项目编号 |
name |
问卷名称 |
customer |
客户代码 |
customerName |
客户名称 |
customerDomain |
客户域名 |
questionnaireUrl |
问卷链接 |
target |
目标样本量 |
state |
状态码 |
projectStatus |
项目状态 |
startTime |
开始时间戳 |
endTime |
结束时间戳 |
createTime |
创建时间戳 |
userName |
创建人姓名 |
userEmail |
创建人邮箱 |
operator |
运营人员邮箱 |
duration |
预计答题时长 |
innerPrice.price |
内部价格 |
finalPrice.price |
最终价格 |
json |
扩展信息(JSON字符串) |
渠道信息 (channel):
| 字段 | 说明 |
|---|---|
name |
渠道名称 |
channelCode |
渠道代码 |
advertisement |
广告位列表 |
advertisement[].name |
广告位名称 |
advertisement[].finalUrl |
投放链接 |
advertisement[].touchName |
触点名称 |
advertisement[].touchCode |
触点代码 |
advertisement[].isSend |
是否已发送 |
advertisement[].sendTime |
发送时间 |
完整使用示例
场景 1: 查询 AI 相关的项目列表
# 1. 设置 Cookie
COOKIE="你的 Cookie 字符串"
# 2. 查询项目列表
curl -H "Cookie: $COOKIE" \
"https://operation.dingwei.netease.com/api/operation/questionnaire/list?page=1&limit=100"
# 3. 过滤包含 "AI" 的项目(在代码中处理)
场景 2: 查询指定项目的详情
# 1. 设置 Cookie
COOKIE="你的 Cookie 字符串"
# 2. 查询项目详情(以 ID 243767 为例)
curl -H "Cookie: $COOKIE" \
-H "referer: https://operation.dingwei.netease.com/questionnaire/detail/243767" \
"https://operation.dingwei.netease.com/api/operation/questionnaire/detail/243767"
场景 3: 查询特定操作员的项目
COOKIE="你的 Cookie 字符串"
OPERATORS="wb.haohanna01@mesg.corp.netease.com,qiuyingjie@corp.netease.com"
START_TIME="1772380800000"
END_TIME="1773763199059"
STATUS="%E6%89%A7%E8%A1%8C%E4%B8%AD"
curl -H "Cookie: $COOKIE" \
"https://operation.dingwei.netease.com/api/operation/questionnaire/list?operator=$OPERATORS&startTime=$START_TIME&endTime=$END_TIME&projectStatus=$STATUS&page=1&limit=10"
相关接口
- 客户列表:
/api/operation/questionnaire/customerName/list
故障排查
| 错误码 | 说明 | 解决方案 |
|---|---|---|
| 4000 | 参数错误 | 检查参数格式 |
| 4001 | 未授权 | Cookie 无效或过期,重新登录获取 |
| 5000 | 内部错误 | 服务器错误,稍后重试 |
注意事项
- Cookie 会过期 - 需要定期更新
- 权限控制 - 只能查询有权限的项目
- 时间戳单位 - 毫秒级时间戳
- 中文编码 - 参数需要 URL 编码