懂车帝账号详情+作品列表
最低 ¥0.03/次起即将上线需配置 API Key单价随接口累计调用量阶梯调整
POST
https://redfox.hk/story/api/dongchedi/accountWorksAPI 密钥获取与配置
获取密钥调用 API 前,请先在控制台生成 API 密钥并完成配置。在 HTTP 请求头中添加API Key 字段,密钥用于身份校验与额度计费。
获取步骤
- 前往控制台页面,进入 API 密钥管理模块。
- 若无已生成的密钥,点击生成新密钥,复制并妥善保存密钥。
- 在请求头中添加
REDFOX_API_KEY或X-API-KEY字段并填入密钥后即可调用。
API说明
Method:POST
Host:https://redfox.hk
Path:/story/api/dongchedi/accountWorks
请求头
| 名称 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| REDFOX_API_KEY | String | 否 | ak_xxxxx | |
| Content-Type | string | 是 | 请求体数据类型 | application/json |
请求参数
| 参数 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| userId | String | 是 | 用户id | 2242607004792467 |
返回值与结构
统一包装一般为 `code`、`message`/`msg`、`data`(以实际服务为准)。
响应字段
| 字段 | 类型 | 说明 | 示例 |
|---|---|---|---|
| code | integer | 响应状态码,2000表示成功 | 2000 |
| msg | string | 响应消息 | 成功 |
| data | object | ||
| account | object | 目标账号(作者)信息 | |
| authDesc | string | 账号认证说明,未认证时为空字符串 | |
| avatarUrl | string | 账号头像URL(含签名参数,有时效性) | https://p9-dcd-sign.byteimg.com/user-avatar/xxx~tplv-resize:300:300.image |
| description | null | 账号个人简介,可能为null | |
| nickname | string | 账号昵称 | 韩路聊车 |
| userId | string | 账号用户ID | 2242607004792467 |
| workList | array | 账号作品列表 | |
| articleType | integer | 作品类型编码:7-图文(ugc_article) | 2 |
| articleTypeStr | string | 作品类型标识字符串(图文) | pgc_video |
| collectCount | integer | 收藏数 | 0 |
| commentCount | integer | 评论数 | 20 |
| coverUrl | string | 封面URL,图文类型时为空字符串 | https://p3-dcd-sign.byteimg.com/motor-img/xxx~tplv-f042mdwyw7-original:480:0.png |
| durationSeconds | integer | 视频时长(秒),图文类型时为0 | 2389 |
| imageUrlList | array | 图文正文配图列表(可多张) | |
| likeCount | integer | 点赞数 | 110 |
| publishTime | integer | 发布时间(Unix时间戳,秒级) | 1791628200 |
| readCount | integer | 阅读量 | 2219 |
| shareCount | integer | 分享数 | 15 |
| title | string | 作品标题(图文类型时通常与description一致或为其摘要) | 2026年中国硬派新能源SUV,老掌沟大乱斗! |
| videoId | string | 视频ID,图文类型时为空字符串 | v02faag10004db4tlsnog65i7e8unn40 |
| workId | string | 作品唯一ID | 7694944579438625342 |
| workUrl | string | 作品详情页URL | https://www.dcdapp.com/motor/m/feed/detail?link_source=share&group_id=7694944579438625342 |
请求示例
{
"userId":"2242607004792467"//用户id
}响应示例
{
"code": 2000,
"data": {
"account": {
"authDesc": "",
"avatarUrl": "https://p9-dcd-sign.byteimg.com/user-avatar/xxx~tplv-resize:300:300.image",
"description": null,
"nickname": "韩路聊车",
"userId": "2242607004792467"
},
"workList": [
{
"articleType": 2,
"articleTypeStr": "pgc_video",
"collectCount": 0,
"commentCount": 20,
"coverUrl": "https://p3-dcd-sign.byteimg.com/motor-img/xxx~tplv-f042mdwyw7-original:480:0.png",
"description": "这一次我们找来了9台当前热门的国产新能源硬派SUV,来到华北越野圣地老掌沟一决高下。",
"durationSeconds": 2389,
"imageUrlList": [
"https://p3-dcd-sign.byteimg.com/motor-img/xxx~tplv-f042mdwyw7-original:480:0.png"
],
"likeCount": 110,
"publishTime": 1791628200,
"readCount": 2219,
"shareCount": 15,
"title": "2026年中国硬派新能源SUV,老掌沟大乱斗!",
"videoId": "v02faag10004db4tlsnog65i7e8unn40",
"workId": "7694944579438625342",
"workUrl": "https://www.dcdapp.com/motor/m/feed/detail?link_source=share&group_id=7694944579438625342"
},
{
"articleType": 7,
"articleTypeStr": "ugc_article",
"collectCount": 0,
"commentCount": 2,
"coverUrl": "",
"description": "小米YU7 GT前两天刷新了纽北SUV圈速纪录,很多朋友在关注这个车,刚好我也开过了,简单聊几句。",
"durationSeconds": 0,
"imageUrlList": [
"https://p9-dcd-sign.byteimg.com/motor-article-img/xxx.png",
"https://p3-dcd-sign.byteimg.com/motor-article-img/yyy.png"
],
"likeCount": 2,
"publishTime": 1779343763,
"readCount": 20951,
"shareCount": 0,
"title": "小米YU7 GT前两天刷新了纽北SUV圈速纪录...",
"videoId": "",
"workId": "7642212156486254654",
"workUrl": "https://www.dcdapp.com/motor/m/feed/detail?link_source=share&group_id=7642212156486254654"
}
]
},
"msg": "成功"
}常见状态码说明
调用接口时,响应体中的 code 字段对应以下状态码。完整列表请查看 API 状态码说明页。
| 状态码 | 说明 | 排查建议 |
|---|---|---|
400 | 请求参数错误 | 检查请求体、Query 参数是否与文档一致,必填项是否齐全。 |
401 | 鉴权失败 | 确认请求头已添加 REDFOX_API_KEY 或 X-API-KEY,且密钥有效、未禁用。 |
403 | 无权限访问 | 当前密钥或账号无权调用该接口,请检查密钥状态与接口权限。 |
500 | 系统内部错误 | 服务端异常,请稍后重试;持续出现请联系技术支持。 |
503 | 服务暂不可用 | 服务维护或短暂过载,请间隔一段时间后重试。 |
1001 | 缺少必要参数 | 对照「请求参数」表,补全必填字段。 |
1002 | 参数格式不正确 | 检查字段类型与格式(如 URL、日期、枚举值)是否符合说明。 |
1003 | 参数类型错误 | 确认 JSON 中数字、字符串、布尔等类型与文档定义一致。 |
3103 | 密钥不存在 | 密钥可能已删除或填写错误,请前往控制台核对并重新复制。 |
3105 | API Key 已禁用 | 在控制台启用该密钥,或创建新密钥后替换请求头中的值。 |
3201 | 积分不足 | 账户余额不足以支付本次调用,请前往控制台充值后再试。 |
3202 | 积分账户不存在 | 账号积分账户异常,请登录控制台确认账户状态。 |
4004 | 操作过于频繁,请稍后再试 | 触发频率限制,降低请求频率或增加调用间隔后重试。 |